131 lines
6.5 KiB
XML
131 lines
6.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<!-- Consume, scrap move -->
|
|
|
|
<record id="view_stock_move_consume_wizard" model="ir.ui.view">
|
|
<field name="name">Consume Move</field>
|
|
<field name="model">stock.move.consume</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Consume Move" version="7.0">
|
|
<header>
|
|
<button icon='gtk-cancel' special="cancel" string="Cancel" />
|
|
<button name="do_move_consume" string="Ok" type="object" icon="gtk-ok" />
|
|
</header>
|
|
<separator string="Consume Products"/>
|
|
<div>
|
|
<field name="product_id" readonly="1"/>
|
|
<label for="product_qty"/>
|
|
<div>
|
|
<field name="product_qty"/>
|
|
<field name="product_uom" nolabel="1" readonly="1"/>
|
|
</div>
|
|
<field name="location_id"/>
|
|
</div>
|
|
</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>
|
|
|
|
<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="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Scrap Move" version="7.0">
|
|
<header>
|
|
<button icon='gtk-cancel' special="cancel" string="Cancel" />
|
|
<button name="move_scrap" string="Ok" type="object" icon="gtk-ok" />
|
|
</header>
|
|
<separator string="Scrap Products"/>
|
|
<group>
|
|
<field name="product_id" readonly="1"/>
|
|
<label for="product_qty"/>
|
|
<div>
|
|
<field name="product_qty" class="oe_inline"/>
|
|
<field name="product_uom" class="oe_inline" readonly="1"/>
|
|
</div>
|
|
<field name="location_id" string="Scrap Location" domain="[('usage','<>','view'),('scrap_location','=',True)]" widget="selection"/>
|
|
</group>
|
|
</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>
|
|
</record>
|
|
|
|
<record id="view_split_in_lots" model="ir.ui.view">
|
|
<field name="name">Split in lots</field>
|
|
<field name="model">stock.move.split</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Split in Lots" version="7.0">
|
|
<header>
|
|
<button icon='gtk-cancel' special="cancel" string="Cancel" />
|
|
<button name="split_lot" string="Ok" type="object" icon="gtk-ok" />
|
|
</header>
|
|
<group>
|
|
<field name="product_id" readonly="1"/>
|
|
<label for="qty"/>
|
|
<div>
|
|
<field name="qty" readonly="1" class="oe_inline"/>
|
|
<field name="product_uom" readonly="1" class="oe_inline"/>
|
|
</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">
|
|
<field name="name" string="Lots"/>
|
|
<field name="quantity" />
|
|
</tree>
|
|
<form string="Serial Number" version="7.0">
|
|
<group>
|
|
<field name="name" string="Lot number"/>
|
|
<field name="quantity" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
<field name="line_exist_ids" attrs="{'invisible':[('use_exist','!=',True)]}">
|
|
<tree string="Serial Numbers" editable="bottom">
|
|
<field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
|
|
<field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
|
|
</tree>
|
|
<form string="Serial Number" version="7.0">
|
|
<group>
|
|
<field name="prodlot_id" string="Lot number" domain="[('product_id','=',parent.product_id)]" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)"/>
|
|
<field name="quantity" on_change="onchange_lot_id(prodlot_id, quantity, parent.location_id, parent.product_id, parent.product_uom)" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="track_line" model="ir.actions.act_window">
|
|
<field name="name">Split in lots</field>
|
|
<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>
|
|
</record>
|
|
|
|
</data>
|
|
</openerp>
|