You can remove or hide the Create or Edit Button by adding attributes to your form or tree in view.xml file:
<record ...>
<form string="NAMEOFFORM" create="false" edit="false" version="7.0"> ... </form>
</record>
This way "Edit" and "Create" are removed from view for all Users.
In case you inherit from an existing view:
<record> ...
<field name="arch" type="xml">
<xpath expr='//form[@string="Product"]' position='attributes'>
<attribute name="create">false</attribute>
</xpath>
</field>
</record>
Your answer
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!
Keep Informed
About This Forum
This forum is for HiTechnologia Employees & just Odoo general knowledge purpose only.
Read GuidelinesQuestion tools
Stats
Asked: 7/4/15, 8:32 AM |
Seen: 15351 times |
Last updated: 7/4/15, 8:35 AM |