Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6245 Lượt xem
button id="is_approved" name="button_approved" string="Aprobar" type="object" groups="sales_team.group_sale_manager
" attrs="{'readonly': [('approved', '=', True)]}"
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

attrs="{'readonly': [('state', '=', 'disabled')]

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
1676
1
thg 9 23
2072
5
thg 7 25
8072
3
thg 1 24
14067
1
thg 4 23
227