[ADD] base_exception_user,sale_exception_user,stock_exception: allow certain users to ignore exceptions, add exceptions on delivery orders

This commit is contained in:
Cedric Collins
2021-09-17 15:23:06 -05:00
parent 1ee5b14ebb
commit 5274bf786f
9 changed files with 128 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" ?>
<odoo>
<record id="view_exception_rule_tree" model="ir.ui.view">
<field name="name">exception.rule.tree.inherit.user</field>
<field name="model">exception.rule</field>
<field name="inherit_id" ref="base_exception.view_exception_rule_tree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='model']" position="after">
<field name="allow_user_ignore" widget="boolean_toggle"/>
</xpath>
</field>
</record>
<record id="view_exception_rule_form" model="ir.ui.view">
<field name="name">exception.rule.form.inherit.user</field>
<field name="model">exception.rule</field>
<field name="inherit_id" ref="base_exception.view_exception_rule_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='domain']" position="after">
<field name="allow_user_ignore" widget="boolean_toggle"/>
</xpath>
</field>
</record>
</odoo>