Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
647 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 25
593
0
thg 12 18
3048
1
thg 11 24
1000
0
thg 11 24
15
0
thg 9 24
1311