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

I have a button which calls a function which then will open a wizard, now I am trying to implement a server action which will call the exact same method but it doesnt open the wizard. I want to display a wizard with error message if the server action code fail

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

Hello Trong,

Find code in Comment. 

I hope this will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Ảnh đại diện
Huỷ bỏ

Try to below code for the open wizard,
return {
"type": "ir.actions.act_window",
"res_model": "Model name",
"views": “form”,
"name": "Wizard name",
}
If you want to display an error message used to UserError as per your requirement
example: raise UserError(_('Your message.'))

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 25
1705
3
thg 7 25
3330
1
thg 5 25
1470
1
thg 5 25
1735
4
thg 5 25
2870