flectra/addons/stock/wizard/stock_picking_return_views.xml
2018-01-16 02:34:37 -08:00

39 lines
2.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<flectra>
<act_window name="Reverse Transfer" id="act_stock_return_picking"
res_model="stock.return.picking"
view_mode="form" target="new"/>
<record id="view_stock_return_picking_form" model="ir.ui.view">
<field name="name">Return lines</field>
<field name="model">stock.return.picking</field>
<field name="arch" type="xml">
<form>
<field name="move_dest_exists" invisible="1"/>
<group attrs="{'invisible': [('move_dest_exists', '=', False)]}">
<div class="oe_grey">
<p>This picking appears to be chained with another operation. Later, if you receive the goods you are returning now, make sure to <b>reverse</b> the returned picking in order to avoid logistic rules to be applied again (which would create duplicated operations)</p>
</div>
</group>
<group>
<field name="product_return_moves" nolabel="1">
<tree editable="top" create="0">
<field name="product_id" options="{'no_create': True, 'no_open': True}" force_save="1"/>
<field name="quantity"/>
<field name="uom_id" readonly="1" groups="product.group_uom"/>
</tree>
</field>
</group>
<group>
<field name="parent_location_id" invisible="1"/>
<field name="original_location_id" invisible="1"/>
<field name="location_id" options="{'no_create': True, 'no_open': True}" groups="stock.group_stock_multi_locations"/>
</group>
<footer>
<button name="create_returns" string="Return" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>
</flectra>