Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
5547 Lượt xem

For example

 i want to remove delete icon in tree view if state is confirm 

else user can delete order line ..... 

how i can do it by conditional 

any tip/help ?

i know 

<tree string="My Tree" delete="false"> but how i can handle by state ?
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

My suggestion is if you don't wanna need Delete Icon in Inner tree view try to make readonly that O2m field using Attrs attributes. Try below code. I'm sure It'll help you.

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
Ordering Line Items Đã xử lý
1
thg 10 24
4188
1
thg 6 24
1570
4
thg 4 20
10398
1
thg 11 15
6583
1
thg 10 15
9292