button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
この質問にフラグが付けられました
2
返信
8243
ビュー
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
|
3105 | ||
|
|
1
9月 23
|
3527 | ||
|
|
5
7月 25
|
10150 | ||
|
|
3
1月 24
|
16789 | ||
|
|
1
4月 23
|
228 |