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 wan't to know if it's possible to know the mode of a form : if it's in edit mode or in view mode? I need this information to change the "edit" mode of a widget that I implement! If it's not in edit mode, the user can't edit information, but if it's in edit mode, he can change these information!
Moreover, when the user click on button "Save", how can I saved the information of my widget in the BDD? What is the function to redefined to do that?
Thank you in advance!
Best regards, Corentin Dijoux
I forgot this messages! I find the solution, but i didn't think to post the solution here.
The function call each time you click on the "Save" button is the "do_save" function (that you can modify to save your information). The function to call after each change (o change the state of the "Save" button) is : "this.on_ui_change()".
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: 3/20/14, 1:00 PM|
|Seen: 2977 times|
|Last updated: 3/16/15, 8:10 AM|