Hello,
in the model res.partner, i added the field :
s_tab_partenaire = fields.One2many('s\.partner\.contact',\ 's_partner_source_id',\ string='Partenaires'\)
and\ the\ following\ class:
class\ PartnerPartner\(models\.Model\):
\ \ \ \ _name\ =\ "s.partner.contact"
_description = 'Partenaires d\' un contact'
_rec_name = 's_partner_source_id'
s_partner_source_id = fields.Many2one('res.partner', string="Contact Source", ondelete='cascade')
s_partner_cible_id = fields.Many2one('res.partner', string="Contact Cible", ondelete='cascade')
i want to display this one2many field in the res.partner form and display records with the field s_partner_source_id OR s_partner_cible_id = Id of the form
Is there a way to do that ?