Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
585 Vizualizări

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.

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
apr. 25
642
1
nov. 22
4232
0
oct. 19
4339
7
iul. 19
41854
0
dec. 18
3045