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

55 lines
2.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">
<div class="oe_title" position="before">
<field name="image_medium" widget="image" class="oe_avatar"/>
</div>
<field name="product_id" position="after">
<field name="short_text" string="Kurztext"/>
</field>
<field name="ref" position="after">
<field name="assembled" string="Zusammengebaut"/>
<field name="weight"/>
<field name="intrastat_id" options="{'no_quick_create':True}"/>
<field name="notes"/>
</field>
</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">
<field name="partner_id" position="after">
<field name="dlv_partner_ref" string="Interne Referenz"/>
</field>
<field name="origin" position="after">
<field name="shopping_cart_ref" string="Warenkorb" attrs="{'readonly': True}"/>
<label for="picking_signature" string="Signature" class="oe_edit_only"/>
<h2>
<field name="picking_signature" widget="signature" style="width: 500px; height: 200px"/>
</h2>
</field>
<xpath expr="//button[@name='do_print_picking']" position="before">
<button name="%(dp_custom.action_wizard_sign_delivery)d" type="action" string="Sign Delivery" attrs="{'invisible':['|', ('state', '!=', 'done'),]}"/>
</xpath>
<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>