Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5552 มุมมอง

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')]}"

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Ordering Line Items แก้ไขแล้ว
1
ต.ค. 24
4188
1
มิ.ย. 24
1576
4
เม.ย. 20
10400
1
พ.ย. 15
6585
1
ต.ค. 15
9292