Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1818 Представления
hello, I want to hide or put a menu in the actions of the sale.order model depending on the state field


Аватар
Отменить
Лучший ответ

you can hide menu depends on state field replace this code for button menu


 button name="(enter your button name)" string="(enter your string)" type="object" attrs="{'invisible':['|','|',('interested','=',True),('state','!=','draft'),('state','!=','confirmed')]}" class="oe_highlight" 

Feel free for further assistance on contact@geminatecs.com

Thank you
Geminate Consultancy Services

Аватар
Отменить