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.
Hi by using the developer mode how can i create a related field from another custom field and here is my eg :
- i create a new custom field named ( object ) on sale.order, so after creating an invoice i should find the same value for the ( object ).
i already made an a related field from another existing field ( name ) by adding partner_id.name on related field.
But for a custom field i found some difficult on what i should put in the case of Related field, so i hope that the community help me to find the correct way thanks.
Related Fields Always create with the Many2one Fields.
so just ensure that custom fields should be Many2one in your case.
in sort it should be like custom_field_id not custom_field_ids(12m or m2m)
NOTE: i am not saying that 12m and m2m can't be create as related field , i am saying the reference field of related fields(either 12m ,m21 or m2m ) should always be the many2one , other wise it can lead to Singleton Error
For more details Refer this image
Hope it may help in your case.
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/31/16, 5:09 AM|
|Seen: 684 times|
|Last updated: 5/31/16, 6:41 AM|