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 want to create a new record which contains Many2many fields using data file. Can someone please point me to an example of how to set Many2many field from data file?
I tried the following code.
<record id="account_journal_check" model="account.journal">
<field name="inbound_payment_method_ids">(4, )</field>
<field name="outbound_payment_method_ids">(4, [2,3])</field>
Here the fields "inbound_payment_method_ids" and "outbound_payment_method_ids" are the Many2many field. All other fields values get populated in my form. But these two fields values are not get populated.
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: 6/6/16, 2:46 AM|
|Seen: 1958 times|
|Last updated: 9/6/16, 9:49 AM|