Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
2727 Переглядів

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">

...

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
бер. 15
5375
3
серп. 22
11884
2
лют. 19
4098
1
черв. 17
7509
2
черв. 16
6001