2010-02-19 10:51:45 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<!-- Consume, scrap move -->
|
2010-06-21 18:40:58 +00:00
|
|
|
|
|
|
|
<record id="view_stock_move_consume_wizard" model="ir.ui.view">
|
2010-02-19 10:51:45 +00:00
|
|
|
<field name="name">Consume Move</field>
|
|
|
|
<field name="model">stock.move.consume</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 21:56:28 +00:00
|
|
|
<form string="Consume Move" version="7.0">
|
2012-09-12 10:00:53 +00:00
|
|
|
<group string="Consume Products">
|
2012-06-29 10:12:08 +00:00
|
|
|
<field name="product_id" readonly="1"/>
|
|
|
|
<label for="product_qty"/>
|
2012-06-09 21:56:28 +00:00
|
|
|
<div>
|
2012-09-03 06:03:33 +00:00
|
|
|
<field name="product_qty" class="oe_inline"/>
|
2012-09-03 06:18:05 +00:00
|
|
|
<field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
|
2012-06-09 21:56:28 +00:00
|
|
|
</div>
|
2012-09-03 06:18:05 +00:00
|
|
|
<field name="location_id" groups="stock.group_locations"/>
|
2012-06-19 11:20:18 +00:00
|
|
|
</group>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
|
|
|
<button name="do_move_consume" string="Ok" type="object" class="oe_highlight"/>
|
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
|
|
</footer>
|
2010-02-19 10:51:45 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="move_consume" model="ir.actions.act_window">
|
|
|
|
<field name="name">Consume Move</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">stock.move.consume</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="target">new</field>
|
|
|
|
</record>
|
2010-06-21 18:40:58 +00:00
|
|
|
|
2010-02-19 10:51:45 +00:00
|
|
|
<record id="view_stock_move_scrap_wizard" model="ir.ui.view">
|
|
|
|
<field name="name">Scrap Move</field>
|
|
|
|
<field name="model">stock.move.scrap</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-06-09 21:56:28 +00:00
|
|
|
<form string="Scrap Move" version="7.0">
|
|
|
|
<separator string="Scrap Products"/>
|
|
|
|
<group>
|
|
|
|
<field name="product_id" readonly="1"/>
|
|
|
|
<label for="product_qty"/>
|
|
|
|
<div>
|
2012-06-19 08:56:18 +00:00
|
|
|
<field name="product_qty" class="oe_inline"/>
|
2012-09-03 06:18:05 +00:00
|
|
|
<field name="product_uom" class="oe_inline" readonly="1" groups="product.group_uom"/>
|
2012-06-09 21:56:28 +00:00
|
|
|
</div>
|
2012-09-12 10:00:53 +00:00
|
|
|
<field name="location_id" string="Scrap Location" widget="selection"
|
|
|
|
domain="[('usage','!=','view'),('scrap_location','=',True)]" groups="stock.group_locations"/>
|
2010-06-21 18:40:58 +00:00
|
|
|
</group>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
|
|
|
<button name="move_scrap" string="Ok" type="object" class="oe_highlight" />
|
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel" />
|
|
|
|
</footer>
|
2010-02-19 10:51:45 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="move_scrap" model="ir.actions.act_window">
|
|
|
|
<field name="name">Scrap Move</field>
|
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">stock.move.scrap</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="target">new</field>
|
2014-03-20 11:07:41 +00:00
|
|
|
<field name="context">{'form_view_ref': False}</field>
|
2010-02-19 10:51:45 +00:00
|
|
|
</record>
|
2010-06-21 18:40:58 +00:00
|
|
|
|
2010-02-19 13:44:55 +00:00
|
|
|
<record id="view_split_in_lots" model="ir.ui.view">
|
2012-09-03 10:50:53 +00:00
|
|
|
<field name="name">Split in Serial Numbers</field>
|
2012-06-09 21:56:28 +00:00
|
|
|
<field name="model">stock.move.split</field>
|
|
|
|
<field name="arch" type="xml">
|
2012-09-12 10:00:53 +00:00
|
|
|
<form string="Split in Serial Numbers" version="7.0">
|
2012-06-09 21:56:28 +00:00
|
|
|
<group>
|
|
|
|
<field name="product_id" readonly="1"/>
|
|
|
|
<label for="qty"/>
|
|
|
|
<div>
|
2012-06-19 08:56:18 +00:00
|
|
|
<field name="qty" readonly="1" class="oe_inline"/>
|
|
|
|
<field name="product_uom" readonly="1" class="oe_inline"/>
|
2012-06-09 21:56:28 +00:00
|
|
|
</div>
|
|
|
|
<field name="location_id" invisible="1"/>
|
|
|
|
<field name="use_exist"/>
|
|
|
|
</group>
|
|
|
|
<field name="line_ids" attrs="{'invisible':[('use_exist','=',True)]}">
|
|
|
|
<tree string="Serial Numbers" editable="bottom">
|
2012-09-12 10:00:53 +00:00
|
|
|
<field name="name"/>
|
2012-06-09 21:56:28 +00:00
|
|
|
<field name="quantity" />
|
|
|
|
</tree>
|
|
|
|
<form string="Serial Number" version="7.0">
|
|
|
|
<group>
|
2012-09-12 10:00:53 +00:00
|
|
|
<field name="name"/>
|
2010-06-21 18:40:58 +00:00
|
|
|
<field name="quantity" />
|
2012-06-09 21:56:28 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
<field name="line_exist_ids" attrs="{'invisible':[('use_exist','!=',True)]}">
|
|
|
|
<tree string="Serial Numbers" editable="bottom">
|
2012-09-05 06:12:37 +00:00
|
|
|
<field name="prodlot_id" string="Serial Number" quick_create="false" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)" context="{'product_id': parent.product_id}"/>
|
|
|
|
<field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom,context)" />
|
2012-06-09 21:56:28 +00:00
|
|
|
</tree>
|
|
|
|
<form string="Serial Number" version="7.0">
|
|
|
|
<group>
|
2012-09-12 10:00:53 +00:00
|
|
|
<field name="prodlot_id" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)"/>
|
2012-09-05 06:12:37 +00:00
|
|
|
<field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom, context)" />
|
2012-06-09 21:56:28 +00:00
|
|
|
</group>
|
|
|
|
</form>
|
|
|
|
</field>
|
2012-07-10 16:40:11 +00:00
|
|
|
<footer>
|
2012-09-17 06:53:36 +00:00
|
|
|
<button name="split_lot" string="Split" type="object" class="oe_highlight"/>
|
|
|
|
or
|
|
|
|
<button string="Cancel" class="oe_link" special="cancel"/>
|
2012-07-10 16:40:11 +00:00
|
|
|
</footer>
|
2012-06-09 21:56:28 +00:00
|
|
|
</form>
|
|
|
|
</field>
|
|
|
|
</record>
|
2010-06-21 18:40:58 +00:00
|
|
|
|
2012-06-09 21:56:28 +00:00
|
|
|
<record id="track_line" model="ir.actions.act_window">
|
2012-09-12 10:00:53 +00:00
|
|
|
<field name="name">Split in Serial Numbers</field>
|
2012-06-09 21:56:28 +00:00
|
|
|
<field name="type">ir.actions.act_window</field>
|
|
|
|
<field name="res_model">stock.move.split</field>
|
|
|
|
<field name="view_type">form</field>
|
|
|
|
<field name="view_mode">form</field>
|
|
|
|
<field name="target">new</field>
|
2014-03-20 11:07:41 +00:00
|
|
|
<field name="context">{'form_view_ref': False}</field>
|
2012-06-09 21:56:28 +00:00
|
|
|
</record>
|
2010-02-19 13:44:55 +00:00
|
|
|
|
2012-06-09 21:56:28 +00:00
|
|
|
</data>
|
2010-06-21 18:40:58 +00:00
|
|
|
</openerp>
|