跳至內容
選單
此問題已被標幟
1 回覆
2852 瀏覽次數

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
5544
3
8月 22
12073
2
2月 19
4305
1
6月 17
7643
2
6月 16
6129