2010-02-19 10:51:45 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
2014-01-28 15:18:34 +00:00
|
|
|
<!-- Scrap move -->
|
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">
|
|
|
|
<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>
|
2014-01-14 09:46:51 +00:00
|
|
|
<field name="restrict_lot_id" domain="[('product_id','=',product_id)]" groups="stock.group_tracking_lot"
|
2014-01-15 16:50:00 +00:00
|
|
|
context="{'default_product_id': product_id}"/>
|
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>
|
2014-02-10 10:07:27 +00:00
|
|
|
<button name="move_scrap" string="Scrap Products" type="object" class="oe_highlight" />
|
2012-07-10 16:40:11 +00:00
|
|
|
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>
|
2014-01-14 09:46:51 +00:00
|
|
|
<field name="view_id" ref="view_stock_move_scrap_wizard"/>
|
2010-02-19 10:51:45 +00:00
|
|
|
<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
|
|
|
|
2012-06-09 21:56:28 +00:00
|
|
|
</data>
|
2010-06-21 18:40:58 +00:00
|
|
|
</openerp>
|