how to remove option create and edit from many2many fields? For example In the sale order line or invoice lines, there is tax ids, which is a many2many field using the widget='many2many_tags', I want to remove the create and edit form here. But need to create taxes from its tree and form view.
If you want to do it by view overriding, you can use xpath.
<xpath expr="//tree[@string='Your Tree Name']" position="attributes"> <attribute name="create">0</attribute> <attribute name="create">0</attribute> <attribute name="delete">0</attribute> <attribute name="edit">0</attribute> </xpath>
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/21/13, 4:57 AM|
|Seen: 8300 times|
|Last updated: 3/7/16, 6:08 AM|