跳至內容
選單
此問題已被標幟
1 回覆
537 瀏覽次數

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.

頭像
捨棄
最佳答案

Refactor to use the new standard

Best practice. If the model was removed, Odoo has likely replaced the functionality elsewhere.

✅ Your module was using account.account.type to:

  • Define types for accounts
  • Group or filter accounts by type
  • Show labels on the UI

🔁 Then refactor to use:

  • account.account.internal_type → replaces the old type system (receivable, payable, bank, etc.)
  • account.account.internal_group → use for grouping (like asset, equity, expense)
  • You can also check Odoo’s current data in account_account_template.xml for examples.

Update your fields and domain filters accordingly.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
4月 25
494
0
12月 18
2950
1
11月 24
861
0
11月 24
15
0
9月 24
1164