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')]}"
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Ordering Line Items
Diselesaikan
|
|
1
Okt 24
|
4124 | |
|
1
Jun 24
|
1426 | ||
|
4
Apr 20
|
10242 | ||
|
1
Nov 15
|
6386 | ||
|
1
Okt 15
|
9155 |