button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
2
回复
5907
查看
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 |