How To create wizards in odoo ?

Hello , In this post were going to talk about wizards how to create and use them.

A wizard is a model that display a form view to the user usually in a dialog window, with some fields to be filled in, unlike other models wizards are declared using models.TransietModel and data used in wizard it’s expected to be useful in only until wizard is completed or canceled.

Continue reading

How to override Write Method in Odoo API8?

Hello everyone. Now I’m gonna explain you, how to override write method.
The write method is invoked everytime you click on the ‘Edit’ and ‘Save’ button in the view. Once the record is being created and then if you modify and you save record that time the write is being called. So the write method is called whenever the record is modified. The values with whitch it is being modified come in the vals argument.
Continue reading