I want to upgrade my Odoo module V12 to V13 Please guide me how can I do that. And can I upgrade just single module in ODOO 12? Please guide me step by step.
You can try Tasks to do in the migration listed above.
13.0.1.0.0
.@api.multi
, @api.returns
, @api.one
, @api.cr
, @api.model_cr
from the code. Now they are all multi-record by default. In case of the last ones, you will need to adapt the code to the behavior change.oldname
field attributes in the code. If they were added in previous version, they have served their function any way, and now in this version it's not supported, so if you have the need, create a migration script and use openupgradelib's rename_fields
method.view_type
tag on action window XML definition. It's now always form
(tree is not supported since 11.0 any way).multi
field from ir.actions.act_window
models. Now you have binding_view_types
field for indicating in which view the action will be available: list
, form
or empty for both. If declaring the action through the accelerator tag <act_window>
, then use the attribute binding_views
. More reference in https://github.com/odoo/odoo/pull/24738/commits/33d51480688065e367eb646f12b89d721749cac9.active
field, with widget toggle_button
, the archive/unarchive actions are available without doing anything more, so you can remove it. And the new paradigm is to put instead a ribbon when archived with the code <widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
.import odoo.addons.decimal_precision as dp; x = fields.Float(digits=dp.get_precision("Account"))
), now the qualifier is put directly without the need of importing anything and simplifying syntax: x = fields.Float(digits="Account")
.Regex which can help to find the things to remove/change:
grep -nri 'oldname\|sudo([^\)]\+)\|api.multi\|api.returns\|api.one\|api.cr\|api.model_cr\|12.0\|compute=' $MODULE