I have a field: Many2many in one model and I want to use it in another model. What is the good practice of referring to Many2Many field?
Asked
Active
Viewed 614 times
1 Answers
3
many2many_field_name = fields.Many2many(related='partner_id.many2many_field_name')
Add this field definition to crm.lead
model, and of course replace many2many_field_name
with your desired field name in you res.partner
model in related
parameter.

arryph
- 2,725
- 10
- 15