تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5527 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
Ordering Line Items تم الحل
1
أكتوبر 24
4184
1
يونيو 24
1551
4
أبريل 20
10389
1
نوفمبر 15
6570
1
أكتوبر 15
9282