Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
5950 มุมมอง
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')]

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
เม.ย. 24
1493
1
ก.ย. 23
1908
5
ก.ค. 25
7777
3
ม.ค. 24
13722
1
เม.ย. 23
227