Files
test/mrp_workorder/wizard/propose_change_views.xml
2023-04-14 17:42:23 +08:00

26 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_propose_change_wizard" model="ir.ui.view">
<field name="name">workorder_propose_change</field>
<field name="model">propose.change</field>
<field name="arch" type="xml">
<form string="Propose Change">
<group>
<group>
<field name="change_type" invisible="1"/>
<field name="step_id" invisible="1"/>
<field name="title" attrs="{'invisible': [('change_type', '!=', 'update_step')]}"/>
<field name="note" attrs="{'invisible': [('change_type', '!=', 'update_step')]}"/>
<field name="comment" attrs="{'invisible': [('change_type', '=', 'set_picture')]}"/>
<field name="picture" attrs="{'invisible': [('change_type', '!=', 'set_picture')]}" widget="image"/>
</group>
</group>
<footer>
<button name="process" class="btn btn-primary" type="object" string="Propose Change"/>
<button string="Discard" class="btn-default btn-secondary" special="cancel" data-hotkey="z"/>
</footer>
</form>
</field>
</record>
</odoo>