Skip to Content
Menu
This question has been flagged
1 Reply
1691 Views

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"

Avatar
Discard
Best Answer

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.

Avatar
Discard