Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
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
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/11/16, 4:02 AM|
|Seen: 356 times|
|Last updated: 5/11/16, 9:06 AM|