Hi good day everyone,
I hope all is well. I just want to ask how to hide and unhide the trash icon on a one2many field in odoo 10 based on a condition.
Thank you very much in advance.
Sincerely yours,
Jhonnel
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi good day everyone,
I hope all is well. I just want to ask how to hide and unhide the trash icon on a one2many field in odoo 10 based on a condition.
Thank you very much in advance.
Sincerely yours,
Jhonnel
Hi,
To hide and unhide the trash icon on a one2many field in Odoo 10 based on a condition, you can use the attrs attribute to make the icon invisible based on the specified condition:
attrs="{'invisible': [(condition)]}".
For example:
<button name="unlink" type="object" icon="fa-trash" string="Delete" attrs="{'invisible': [('your_boolean_field', '=', False)]}" />
Hope it helps
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
1
Des 23
|
2227 | |||
|
1
Apr 23
|
2219 | |||
|
Integrating paymongo payment acquirer in odoo 10.
Diselesaikan
|
1
Mar 23
|
3161 | ||
|
0
Des 22
|
2755 | |||
|
INSTALLING ODOO 10C ERROR
Diselesaikan
|
1
Okt 21
|
4679 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.