button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
此问题已终结
2
回复
8291
查看
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
|
3131 | ||
|
|
1
9月 23
|
3593 | ||
|
|
5
7月 25
|
10226 | ||
|
|
3
1月 24
|
16875 | ||
|
|
1
4月 23
|
228 |