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.
have a form which I pass some invoice ids through context by an act_window. Invoices are set as default in an many2many field (I tried both using a default function and overriding the default_get function), but when I add a record on another one2many field in the same form, the many2many field just get cleared (I suppose it refresh itself) It does not happen with other fields which also had defaults but just with the many2many.
edit: seems that the many2many field disapearing is not related with being a default or not. It happens everytime a record in the other one2many field is inserted. But at the end of the day, when I save the whole record, the m2m records are not deleted on DB: when I open again the form, here there are again!
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/4/15, 4:56 AM|
|Seen: 1185 times|
|Last updated: 6/10/15, 2:39 AM|