odoo/ext/custom-addons/dp_custom/views/stock_views.xml

39 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="stock_production_lot_view" model="ir.ui.view">
<field name="name">stock_production_lot_view</field>
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_form"/>
<field name="arch" type="xml">
<field name="ref" position="after">
<field name="assembled" string="Zusammengebaut"/>
<field name="weight"/>
<field name="intrastat_id"/>
<field name="notes"/>
</field>
<div class="oe_title" position="before">
<field name="image_medium" widget="image" class="oe_avatar"/>
</div>
</field>
</record>
<record id="stock.view_production_lot_form" model="ir.ui.view">
<field name="priority">0</field>
</record>
<record id="view_delivery_manu_lot" model="ir.ui.view">
<field name="name">view_delivery_manu_lot</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='move_lines']/tree//field[@name='product_id']" position="after">
<field name="manu_lots_visible" invisible="1"/>
<button name="action_show_lot" string="Lot for manufactoring parts" type="object" icon="fa-list" attrs="{'invisible': [('manu_lots_visible', '=', False)]}" options="{&quot;warn&quot;: true}"/>
</xpath>
</field>
</record>
</odoo>