button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
신고된 질문입니다
2
답글
8296
화면
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
|
3133 | ||
|
|
1
9월 23
|
3597 | ||
|
|
5
7월 25
|
10230 | ||
|
|
3
1월 24
|
16876 | ||
|
|
1
4월 23
|
228 |