quality_patch/wizard/quality_check_wizard_views.xml
2026-02-11 10:28:28 +07:00

21 lines
1.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="quality_check_wizard_form_failure_inherit" model="ir.ui.view">
<field name="name">quality.check.wizard.form.failure.inherit</field>
<field name="model">quality.check.wizard</field>
<field name="inherit_id" ref="quality_control.quality_check_wizard_form_failure"/>
<field name="arch" type="xml">
<xpath expr="//group[1]/group[1]" position="attributes">
<attribute name="invisible">measure_on != 'move_line' and not potential_failure_location_ids and not context.get('from_failure_form')</attribute>
</xpath>
<xpath expr="//field[@name='failure_location_id']" position="after">
<field name="failure_location_id"
invisible="potential_failure_location_ids"
domain="[('usage', '=', 'internal')]"
groups="stock.group_stock_multi_locations"
string="Failure Location (Manual)"/>
</xpath>
</field>
</record>
</odoo>