跳至内容
菜单
此问题已终结
2 回复
5907 查看
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
形象
丢弃
最佳答案

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

形象
丢弃
最佳答案

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

形象
丢弃
相关帖文 回复 查看 活动
1
4月 24
1484
1
9月 23
1880
5
7月 25
7720
3
1月 24
13668
1
4月 23
227