Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odgovori
5838 Prikazi
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
Avatar
Opusti
Best Answer

Hi,

There's a disabled class which lets you disable the button in odoo. So, change the code to:

<button id="is_approved" name="button_approved" class="oe_highlight disabled" string="Aprobar" type="object" groups="sales_team.group_sale_manager"/>


Regards

Avatar
Opusti
Best Answer

attrs="{'readonly': [('state', '=', 'disabled')]

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
apr. 24
1434
1
sep. 23
1833
5
jul. 25
7632
3
jan. 24
13546
1
apr. 23
227