Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 25
543
1
lis 22
4097
0
paź 19
4204
7
lip 19
41638
0
gru 18
2957