跳至内容
菜单
此问题已终结
4 回复
1867 查看

Hi.


Can you help me to confirm if it is possible to enable the cancel quote option from the action button in the main menu.





形象
丢弃
最佳答案

Hi,
You can create a server action in the database for this.

* navigate to server actions menu
* hit new button, name it as Cancel
* select model as sale.order
* let it execute python code

Add the below code:
for record in records:
     record.action_cancel()

See:  Add Contextual Action Using Server Action To Ease Your Work In Odoo



Thanks

形象
丢弃
最佳答案

click menu:setting-->click:Activate the developer mode-->clcik menu:Technical -->click menu:Server Actions-->search:Cancel quotaions-->click data--> click button: Remove Contextual Action
After that, refresh the browser page.

形象
丢弃
编写者 最佳答案

Thank you. I am currently on version 13 of odoo community.

形象
丢弃
最佳答案

Hi,

Are you referring to this option? if yes, it's available by default. need not enable from anywhere

Thanks

形象
丢弃
相关帖文 回复 查看 活动
2
4月 25
1705
2
10月 22
3528
2
9月 25
320
3
9月 25
435
3
9月 25
479