CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
i have a problem i try to create a related field from an existing related field :
'related_fieldv7': fields.related('field1_id', 'field2_id', type="many2one", relation="model", string="Blabla Field", readonly=True),
i want to create a new related field based on the precedent using api v8
Why you want create relation to the field already related to something ? (if "primary" field will be empty all related fields will be, if you change value in the last field how will it behave?)
On the other hand you should create relation as normal i guess regardless of the existing relation to the primary/first field.
About This Community
Odoo Training Center
|Asked: 5/11/16, 4:02 AM|
|Seen: 508 times|
|Last updated: 5/11/16, 9:06 AM|