Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
2744 Widoki

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.


Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

......

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

...

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
mar 15
5378
3
sie 22
11892
2
lut 19
4103
1
cze 17
7513
2
cze 16
6005