Skip to Content
मेन्यू
This question has been flagged
2 Replies
5828 Views
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
Avatar
Discard
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
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
अप्रैल 24
1423
1
सित॰ 23
1829
5
जुल॰ 25
7609
3
जन॰ 24
13527
1
अप्रैल 23
227