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.
attribute on_write in tree view <tree colors="red:state == 'draft';black:state == 'valid'" string="Journal Items" create="true" on_write="on_create_write" version="7.0" editable="top">
why the on_write attribute used in tree view?
In on_write, we give the name of a method (here: "on_create_write" ) on the tree view’s respective model, which will be called with the id of a record after having created or edited that record. And the method should return a list of ids of other records to load or update. It is useful in an editable list view, like here editable="top"
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: 2/26/14, 12:36 AM|
|Seen: 1544 times|
|Last updated: 4/1/15, 5:49 AM|