[IMP] stock: Scrap wizard change label of Dest. Location to Scrap Location and scrapped line does not copy the pack of the original line

bzr revid: sbh@tinyerp.com-20100830073718-yefydrjk8mpkx1vb
This commit is contained in:
sbh (Open ERP) 2010-08-30 13:07:18 +05:30
parent 7ef45585c2
commit 886e84d270
2 changed files with 4 additions and 2 deletions

View File

@ -1920,7 +1920,9 @@ class stock_move(osv.osv):
'product_uos_qty': uos_qty,
'state': move.state,
'scraped' : True,
'location_dest_id': location_id
'location_dest_id': location_id,
'tracking_id':False,
'prodlot_id':False
}
new_move = self.copy(cr, uid, move.id, default_val)
res += [new_move]

View File

@ -73,7 +73,7 @@
<form string="Scrap Move">
<separator string="Scrap Products" colspan="4"/>
<field name="product_id" colspan="4" readonly="1"/>
<field name="location_id" colspan="4" string="Dest. Location" domain="[('usage','&lt;&gt;','view'),('scrap_location','=',True)]" widget="selection"/>
<field name="location_id" colspan="4" string="Scrap Location" domain="[('usage','&lt;&gt;','view'),('scrap_location','=',True)]" widget="selection"/>
<field name="product_qty" colspan="2"/>
<field name="product_uom" nolabel="1" readonly="1"/>
<newline/>