Ir al contenido
Menú
Se marcó esta pregunta

Hello, I have a question regarding module migration.

I'm trying to migrate a module from v15 to v17. This module uses a template called account.account.type. In Odoo 15, that template was configured as the account type (that template comes from the account module). However, it turns out that this functionality no longer exists in either v16 or v17. So my question is the following:

When you try to migrate a module from one version to another, and that module has a model that no longer exists in the new version, what is the best thing to do there?

Should I add the model that no longer exists as a new one (use the _name?) and configure the views? Or what is the best thing to do?

Thank you.

Avatar
Descartar
Mejor respuesta

Hi,

When migrating from Odoo 15 to 17, you should not recreate removed models like account.account.type. Instead, adapt your module by using the updated fields available in Odoo 17. The functionality of account.account.type is now handled by the internal_group or account_type fields on the account.account model. Update your views or logic to use these fields instead.

Eg:

<field name="internal_group" domain="[('internal_group', '=', 'asset')]"/>


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
abr 25
541
1
nov 22
4093
0
oct 19
4203
7
jul 19
41629
0
dic 18
2955