23 lines
932 B
XML
23 lines
932 B
XML
<?xml version="1.0"?>
|
|
<odoo>
|
|
<record id="compensation_view" model="ir.ui.view">
|
|
<field name="name">compensation</field>
|
|
<field name="model">mrp.workorder</field>
|
|
<field name="inherit_id" ref="sf_manufacturing.view_mrp_production_workorder_tray_form_inherit_sf"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//page//field[@name='cnc_ids']" position="before">
|
|
<group>
|
|
<field name="compensation_value_x"/>
|
|
<field name="compensation_value_y"/>
|
|
</group>
|
|
<div>
|
|
<button string="一键补偿" name="compensation" type="object" confirm="是否确认下发补偿" class="btn-primary"/>
|
|
</div>
|
|
|
|
|
|
</xpath>
|
|
<!-- attrs='{"invisible": [("routing_type","!=","CNC加工")]}'-->
|
|
|
|
</field>
|
|
</record>
|
|
</odoo> |