What are the changes that have to be made to the code on modules from v12 so they can be run on v13?
I understand that @api.one was removed from v13. Is there anything else? Is there some place where Odoo Developers post this sort of changes?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
What are the changes that have to be made to the code on modules from v12 so they can be run on v13?
I understand that @api.one was removed from v13. Is there anything else? Is there some place where Odoo Developers post this sort of changes?
Hi,
There are lot of changes in v13,
* Remove all the decorators @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.
* Check that all "compute" methods of non-stored computed fields assign a value in any case to the field, even if it is a falsy one
* Computed stored fields will keep their previous value if not assigned during the compute method, so don't rely on any expected default value
* Replace sudo(user): "deprecated use of sudo(user), use with_user(user) instead
Like this there are many changes, you can checkout the below links and see,
2. 12.0- → 13.0
Thanks
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
mar 15
|
5151 | ||
|
2
mar 15
|
4463 | ||
|
0
mar 15
|
3490 | ||
|
0
apr 25
|
859 | ||
|
2
gen 24
|
2155 |