As I said, when I want to create record/records for a model or for another model, do I need to override the method ?
P.S : sorry for labels, when I try to add labels for my issue, the webpage said "loading failed"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
As I said, when I want to create record/records for a model or for another model, do I need to override the method ?
P.S : sorry for labels, when I try to add labels for my issue, the webpage said "loading failed"
NJA,
You will only need to override the create method when you want to alter the behavior of the framework for your model upon record creation.
For example, upon creation of your record of the model you created, if you want to perform a check or an additional field to copy its value; you would override create().
In the core odoo modules, you can see a number of examples doing that.
Thanks.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up