コンテンツへスキップ
メニュー
この質問にフラグが付けられました

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.

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
1
4月 25
596
1
11月 22
4149
0
10月 19
4282
7
7月 19
41714
0
12月 18
2985