I want to remove/hide the create button from the POS orders view. I tried the following code but doesn't worked.
<record model="ir.ui.view" id="misc_view_pos_pos_form">
<field name="name">misc.pos.order</field>
<field name="model">pos.order</field>
<field name="inherit_id" ref="point_of_sale.view_pos_pos_form"/>
<field name="arch" type="xml">
<xpath expr='//form' position='attributes'>
<attribute name="create">false</attribute>
</xpath>
</field>
</record>
I don't have any idea what I am doing wrong!!