Files
app-odoo/app_stock_barcode/views/stock_picking_views.xml
ivan deng 77de61a8ab opt
2018-03-20 05:15:06 +08:00

66 lines
3.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir.ui.view" id="app_vpicktree">
<field name="name">app.stock.picking.tree</field>
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.vpicktree"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='state']" position="before">
<field name="product_qty_total" sum="Total"/>
<field name="qty_done_total" sum="Total"/>
<field name="package_count" sum="Total"/>
<field name="package_done_count" sum="Total"/>
<field name="weight_done_total" sum="Total"/>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="app_view_picking_form">
<field name="name">app.stock.picking.form</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='origin']" position="after">
<field name="result_package_ids" widget="many2many_tags" readonly="1"/>
<label for="last_op_product"/>
<div>
<strong><field name="last_op_product"/></strong>
<button class="btn btn-primary oe_right" name="put_in_pack2" type="object" string="&#8627;放入包裹"
attrs="{'invisible': [('state', 'in', ('done', 'cancel'))]}" groups="stock.group_tracking_lot"/>
<button class="btn btn-primary oe_right mb4 mr4" name="set_current" type="object" string="刷新扫码视图"
attrs="{'invisible': [('state', 'in', ('done', 'cancel'))]}" icon="fa-refresh"/>
</div>
</xpath>
<xpath expr="//notebook/page[1]" position="before">
<page name="current_op" string="Working Product " attrs="{'invisible': [('state', 'in', ('draft', 'confirmed', 'waiting'))]}">
<field name="pack_operation_product_current_ids" options="{'reload_on_button': True}"
mode="kanban" attrs="{'invisible': [('state', 'in', ('draft', 'confirmed', 'waiting'))]}"
context="{'default_picking_id': id}"/>
</page>
</xpath>
<xpath expr="//field[@name='location_dest_id']" position="after">
<label for="" string="Statistics"/>
<div class="o_row" readonly="1">
<div class="col-xs-3">
Product<field name="qty_done_total" class="oe_inline o_form_label"/>/
<field name="product_qty_total" class="oe_inline o_form_label"/>
</div>
<div class="col-xs-3">
Package<field name="package_count" class="oe_inline o_form_label"/>/
<field name="package_done_count" class="oe_inline o_form_label"/>
</div>
</div>
<field name="weight_done_total"/>
</xpath>
<!--显示总数量-->
<xpath expr="//field[@name='pack_operation_product_ids']/tree/field[@name='product_qty']" position="attributes">
<attribute name="sum">Total</attribute>
</xpath>
<xpath expr="//field[@name='pack_operation_product_ids']/tree/field[@name='qty_done']" position="attributes">
<attribute name="sum">Total</attribute>
</xpath>
</field>
</record>
</odoo>