I have some modules which expand add-ons of Odoo. For example, models in my_module
which expand crm
:
class Lead(models.Model):
_inherit = 'crm.lead'
# exmaple fields
field_1 = fields.Char(...)
field_2 = fields.Many2one(...)
# ... field 99
class Stage(models.Model):
_inherit = 'crm.stage'
# exmaple fields
field_1 = fields.Char(...)
field_2 = fields.Many2one(...)
# ... field 99
The same situation is for modules which expand hr
, product
, etc.
I need to make some changes to the models. For example, in my_module_1
, I need to change a couple of fields(type, relation), in my_module_2
, just to remove a few fields etc. Of course I also need to change views of each module. And of course I have my custom models which have dependencies with models from different apps/modules. But I have data on production which must be stored.
I did not find any information about migrations(or synchronization of modules) in Odoo.
My question is: What is the best way to update modules/apps on production(if we have many changes in fields of models and views)? Thanks in advance.