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

Hi, While migrating our code from odoo 17 to odoo 18, I am getting this error. It says that view_types is not defined in the action:

Odoo Client Error

UncaughtPromiseError

Uncaught Promise > View types not defined tree found in act_window action 169

Occured on localhost:8069 on 2024-10-15 08:17:35 GMT

Error: View types not defined tree found in act_window action 169
    at _executeActWindowAction (http://localhost:8069/web/assets/bbca879/web.assets_web.min.js:9872:26)
    at Object.doAction (http://localhost:8069/web/assets/bbca879/web.assets_web.min.js:9897:8)
    at async Object.selectMenu (http://localhost:8069/web/assets/bbca879/web.assets_web.min.js:10094:1)
`

This is my action:

<record id="action_whatsapp_connection" model="ir.actions.act_window">
<field name="name">Whatsapp Connections</field>
<field name="res_model">whatsapp.connection</field>
<field name="view_mode">tree,form</field>
</record>


Ảnh đại diện
Huỷ bỏ
Tác giả

The answer by niyas raphy fixed the issue! Thanks :D

Câu trả lời hay nhất

Hi,
Replacing tree with list will solve the issue. All the tree tags has been replaced by list in odoo 18.

Either you can do it manually or you can use the upgrade_code CLI command: Upgrade Code Command in Odoo 18

Thanks

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Why XML in odoo ? Đã xử lý
3
thg 3 25
1013
0
thg 12 22
1902
3
thg 9 20
15423
1
thg 2 18
5352
4
thg 11 24
76370