Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
5812 Zobrazení
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
dub 24
1413
1
zář 23
1827
5
čvc 25
7585
3
led 24
13518
1
dub 23
227