61 lines
3.5 KiB
XML
61 lines
3.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<<<<<<< HEAD:views/mrp_production_views.xml
|
|
<<<<<<< HEAD
|
|
<!-- Inherit from quality_mrp view -->
|
|
<record id="view_mrp_production_form_inherit_access_restriction" model="ir.ui.view">
|
|
=======
|
|
<record id="mrp_production_view_form_inherit_access_restriction" model="ir.ui.view">
|
|
>>>>>>> 3a96e90 (feat: Hide quality check buttons on manufacturing orders for specific user groups with exceptions for quality roles.)
|
|
=======
|
|
<record id="mrp_production_view_form_inherit_access_restriction_v19" model="ir.ui.view">
|
|
>>>>>>> 5091c7f (feat: Update module to Odoo 19 by bumping version, adapting MRP and Stock Picking views, and removing stock valuation layer access rules.):views/mrp_production_v19.xml
|
|
<field name="name">mrp.production.view.form.inherit.access.restriction</field>
|
|
<field name="model">mrp.production</field>
|
|
<field name="priority">99999</field>
|
|
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
|
<field name="arch" type="xml">
|
|
<<<<<<< HEAD:views/mrp_production_views.xml
|
|
<<<<<<< HEAD
|
|
<<<<<<< HEAD
|
|
<field name="state" position="before">
|
|
<field name="restrict_quality_check_button" invisible="1"/>
|
|
</field>
|
|
|
|
<!-- Header Button -->
|
|
<xpath expr="//button[@name='check_quality']" position="attributes">
|
|
<attribute name="invisible">not quality_check_todo or restrict_quality_check_button</attribute>
|
|
</xpath>
|
|
|
|
<!-- Smart Buttons -->
|
|
<xpath expr="//button[@name='%(quality_mrp.quality_check_action_mo)d'][1]" position="attributes">
|
|
<attribute name="invisible">not check_ids or quality_check_fail or not quality_check_todo or restrict_quality_check_button</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='%(quality_mrp.quality_check_action_mo)d'][2]" position="attributes">
|
|
<attribute name="invisible">not check_ids or quality_check_fail or quality_check_todo or restrict_quality_check_button</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='%(quality_mrp.quality_check_action_mo)d'][3]" position="attributes">
|
|
<attribute name="invisible">not check_ids or not quality_check_fail or restrict_quality_check_button</attribute>
|
|
</xpath>
|
|
|
|
=======
|
|
<xpath expr="//header" position="inside">
|
|
=======
|
|
<xpath expr="//sheet" position="inside">
|
|
>>>>>>> 4a049d1 (feat: Implement user-specific control for quality check button visibility on manufacturing orders and inventory transfers via a new `allowed_quality_checks` field on users.)
|
|
=======
|
|
<sheet position="inside">
|
|
>>>>>>> 5091c7f (feat: Update module to Odoo 19 by bumping version, adapting MRP and Stock Picking views, and removing stock valuation layer access rules.):views/mrp_production_v19.xml
|
|
<field name="hide_quality_check_button" invisible="1"/>
|
|
</sheet>
|
|
<xpath expr="//button[@name='check_quality']" position="attributes">
|
|
<attribute name="invisible">hide_quality_check_button</attribute>
|
|
</xpath>
|
|
<xpath expr="//button[@name='button_quality_alert']" position="attributes">
|
|
<attribute name="invisible">hide_quality_check_button</attribute>
|
|
</xpath>
|
|
>>>>>>> 3a96e90 (feat: Hide quality check buttons on manufacturing orders for specific user groups with exceptions for quality roles.)
|
|
</field>
|
|
</record>
|
|
</odoo>
|