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.
When I add a many2many product Field - for example in the res.partner view - like
and I add a product to this "product_list" field, how can I tell the product that it has been added to this form?
You can easily add a bidirectional many2many relation by adding a many2many field to your product.product model:
'supplier_list': fields.many2many('res.partner', 'product_product_lieferantenprodukt','lieferantenprodukt_id', 'product_id', 'Lieferanten'),
The product will automatically 'know' that it has been added, since it is stored in a special table 'product_product_lieferantenprodukt' in your database.
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: 4/23/14, 1:26 AM|
|Seen: 697 times|
|Last updated: 3/16/15, 8:10 AM|