Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
5874 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
1459
1
thg 9 23
1862
5
thg 7 25
7681
3
thg 1 24
13607
1
thg 4 23
227