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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ?
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')]}"
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký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 |