Hello , In this post we will discuss about the difference between @api.one and @api.multi which often cause confusing among Odoo developers ,we will try to make the difference clear.
Hello , in this blog we will learn the definition of @api.constrains in Odoo and it’s use cases.
To enforce date integrity Odoo support tow type of constraints : SQL and Python we are going to talk about the Pythonic way @api.constrains. Continue reading
Hello everyone. Today I’m gonna explain you how to use @api.depends decorated method.
First of all, the fields can be computed (instead of read from the database) using the compute parameter, it must assign the computed value to the field, it uses the values of other fields from the same model or others model (unlike @api.onchange which work only with the fields in the same view), it should specify fields using depends(). Continue reading
Hello everyone. Today, we will learn how to create menuitem in odoo using api8. Here we have an axample:
- Create an xml file for your module.
Hello everyone. In this blog-post we will learn how onchange function works.
When we want to change a field’s value in a form (but hasn’t saved the form yet), onchange can be useful to automarically update other fields based on that value.
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.
Hello everyone. In this blog-post tutorial, we will learn how to override create method on odoo using API8.
The create method is invoked everytime we click on the “NEW” button and when we save through the “SAVE” button.
Let say we have a ‘Students’ model with “name” and “age” fields, we want to create a new student’s record with values like name=’Adam’ age=’10’.