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

I am testing a button and JS file on Odoo. The function of the button is to show an alert when clicked, and it successfully pops up. However, after I confirm the alert dialog, an error appears.

The error mentions doActionButton, but I haven't even used it."

The error code is as follows:"


InvalidButtonParamsError: Missing type for doActionButton request

    Error: Missing type for doActionButton request

        at Object.doActionButton (web.assets_web.min.js:9993:7)

        at execute (web.assets_web.min.js:9602:279)

        at async executeButtonCallback (web.assets_web.min.js:9595:34)





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

This error i when in the view the button type is other than the two admited. It should be object or action

https://www.odoo.com/documentation/17.0/es_419/developer/reference/user_interface/view_architectures.html?highlight=button#button-display-action-buttons

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 25
324
1
thg 12 24
2672
2
thg 11 24
1004
1
thg 10 24
1640
0
thg 9 24
750