Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
494 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
apr 25
538
1
nov 22
4082
0
ott 19
4198
7
lug 19
41624
0
dic 18
2953