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

Hello,

I've added a new boolean field(with default False) to the sale_order and added a button to set it as True in the quotation form.

Now, I need to hide the "Confirm Sale" button, when the above boolean field is False, in the quotation form.

There are two such buttons in the form header.



How do I achieve this?

Thanks.


形象
丢弃
编写者 最佳答案

<xpath expr="(/form/header/button[@name='action_confirm'])[1]"position="attributes">

......

<xpath expr="(/form/header/button[@name='action_confirm'])[2]"position="attributes">

...

形象
丢弃
相关帖文 回复 查看 活动
1
3月 15
5374
3
8月 22
11878
2
2月 19
4090
1
6月 17
7504
2
6月 16
5998