Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I need to hide a button in tree view(one2many) but only in non-editable mode. I have tried class="oe_edit_only" but it doesn't work.
NOTE : I need to hide only in non-editable mode NOT in editable mode. Please don't suggest and mark invisible = "1" as correct answer.
Any help would be appreciated.
Thank You :)
It is not perfect solution but work around to what you want to achieve:
Odoo gives us two classes
- 'oe_edit_only' : to show element in edit mode only
- 'oe_read_only' : to show element in read mode only
so I defined a duplicate field of my one2many field and show that in only read mode and original only in edit mode.
Note: we can not use same field in xml more than one time because odoo populates value only in lastly defined field. all previous fields with same name remain blank.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/12/15, 11:54 AM|
|Seen: 1470 times|
|Last updated: 12/15/16, 6:18 AM|