73 lines
3.6 KiB
XML
73 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<record id="action_partial_move_server" model="ir.actions.server">
|
|
<field name="name">Deliver/Receive Products</field>
|
|
<field name="model_id" ref="model_stock_move"/>
|
|
<field name="state">code</field>
|
|
<field name="code">action = obj.action_partial_move(context=context)</field>
|
|
</record>
|
|
|
|
<record id="ir_open_partial_move_wizard" model="ir.values">
|
|
<field eval="'client_action_multi'" name="key2"/>
|
|
<field eval="'stock.move'" name="model"/>
|
|
<field name="name">Deliver/Receive Products</field>
|
|
<field eval="'ir.actions.server,%d'%action_partial_move_server" name="value"/>
|
|
</record>
|
|
|
|
<record id="stock_partial_move_form" model="ir.ui.view">
|
|
<field name="name">stock.partial.move.form</field>
|
|
<field name="model">stock.partial.move</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Stock Move" version="7.0">
|
|
<separator string="Products"/>
|
|
<field name="move_ids"/>
|
|
<footer>
|
|
<button name="do_partial" string="_Validate" type="object" class="oe_highlight"/>
|
|
or
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="stock_partial_move_line_list" model="ir.ui.view">
|
|
<field name="name">stock.partial.move.line.list</field>
|
|
<field name="model">stock.partial.move.line</field>
|
|
<field name="arch" type="xml">
|
|
<tree editable="bottom" string="Product Moves">
|
|
<field name="product_id" />
|
|
<field name="quantity" />
|
|
<field name="product_uom" groups="product.group_uom"/>
|
|
<field name="location_id" />
|
|
<field name="location_dest_id" />
|
|
<field name="prodlot_id" domain="[('product_id', '=', product_id)]" groups="stock.group_production_lot"/>
|
|
<field name="update_cost" invisible="1"/>
|
|
<field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
|
|
<field name="currency" attrs="{'invisible': [('update_cost','=', False)]}" groups="base.group_multi_currency"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="stock_partial_move_line_form" model="ir.ui.view">
|
|
<field name="name">stock.partial.move.line.form</field>
|
|
<field name="model">stock.partial.move.line</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Stock Partial Move Line" version="7.0">
|
|
<group>
|
|
<field name="product_id" />
|
|
<field name="quantity" />
|
|
<field name="product_uom" />
|
|
<field name="location_id" />
|
|
<field name="location_dest_id" />
|
|
<field name="prodlot_id" domain="[('product_id', '=', product_id)]"/>
|
|
<field name="update_cost" invisible="1"/>
|
|
<field name="cost" attrs="{'invisible': [('update_cost','=', False)]}"/>
|
|
<field name="currency" attrs="{'invisible': [('update_cost','=', False)]}" groups="base.group_multi_currency"/>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</openerp>
|