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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
2
답글
7585
화면
Hello Trong,
Find code in Comment.
I hope this will help you.
Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari
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.'))
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
1
6월 25
|
1619 | ||
|
3
7월 25
|
3265 | ||
|
1
5월 25
|
1409 | ||
|
1
5월 25
|
1660 | ||
|
4
5월 25
|
2820 |