[FIX]:internal move for no validation for production lot
bzr revid: ksa@tinyerp.co.in-20110324130654-mh2iy491rivu568y
This commit is contained in:
@@ -1553,6 +1553,7 @@ class stock_move(osv.osv):
|
||||
|
||||
# used for colors in tree views:
|
||||
'scrapped': fields.related('location_dest_id','scrap_location',type='boolean',relation='stock.location',string='Scrapped', readonly=True),
|
||||
'lot_id': fields.boolean('Track Lots'),
|
||||
}
|
||||
_constraints = [
|
||||
(_check_tracking,
|
||||
@@ -1737,10 +1738,12 @@ class stock_move(osv.osv):
|
||||
|
||||
product = self.pool.get('product.product').browse(cr, uid, [prod_id], context=ctx)[0]
|
||||
uos_id = product.uos_id and product.uos_id.id or False
|
||||
track_prod = product.track_production
|
||||
result = {
|
||||
'product_uom': product.uom_id.id,
|
||||
'product_uos': uos_id,
|
||||
'product_qty': 1.00,
|
||||
'lot_id': track_prod,
|
||||
'product_uos_qty' : self.pool.get('stock.move').onchange_quantity(cr, uid, ids, prod_id, 1.00, product.uom_id.id, uos_id)['value']['product_uos_qty']
|
||||
}
|
||||
if not ids:
|
||||
|
||||
@@ -1463,11 +1463,13 @@
|
||||
<field name="prodlot_id" groups="base.group_extended"
|
||||
context="{'location_id':location_id, 'product_id':product_id}"
|
||||
domain="[('product_id','=?',product_id)]"
|
||||
attrs="{'required':[('lot_id','=',True)]}"
|
||||
on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
|
||||
<button name="%(track_line)d"
|
||||
groups="base.group_extended"
|
||||
states="draft,waiting,confirmed,assigned"
|
||||
string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
|
||||
<field name="lot_id"/>
|
||||
</group>
|
||||
|
||||
<separator colspan="4"/>
|
||||
|
||||
Reference in New Issue
Block a user