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 change the company name field back to a default value if the user press my added button in edit mode of the form.
Changes should only writen to database if the orginal save button on the form pressed.
If i change the value via self.name = "default" there is no update in the browser.
I dont't want use self.write.
What Odoo version are you using? That would make a difference in the code used.
However, I think your best bet is to look at on_change methods and how they work. I don't know if a button is going to help you out here. Especially since that usually checks for a write method for its changes and you have already mentioned you do not want to use that method.
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: 10/20/14, 10:27 AM|
|Seen: 1229 times|
|Last updated: 3/16/15, 8:10 AM|