Skip to content
Snippets Groups Projects
Commit 39d1d301 authored by Sébastien Theys's avatar Sébastien Theys
Browse files

[IMP] event_sale: add "editable" on SO when removing event_sale

Previously, removing event_sale would keep the updated groups_id. We want to have a way to get rid of it, which is now by removing the module.
parent 23163a9c
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,15 @@
</record>
<!-- the presence of 'event user' makes the order lines non-editable -->
<record id="sale.view_order_form_editable_list" model="ir.ui.view">
<record id="view_order_form_inherit_event_sale_group_event_user" model="ir.ui.view">
<field name="name">sale.order.form.inherit.event_sale.group_event_user</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="groups_id" eval="[(4, ref('event.group_event_user'))]"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree" position="attributes">
<attribute name="editable"/>
</xpath>
</field>
</record>
</odoo>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment