[REVERT] reverted revision 4590, for fix 724820 which should have never landed on trunk

bzr revid: qdp-launchpad@openerp.com-20110407112235-kfqsiby1an1zvcn2
This commit is contained in:
Quentin (OpenERP)
2011-04-07 13:22:35 +02:00
parent ffee41cbed
commit 6844f1a4ce
2 changed files with 0 additions and 4 deletions
-2
View File
@@ -1553,7 +1553,6 @@ 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),
'tracking': fields.boolean('Track Lots'),
}
_constraints = [
(_check_tracking,
@@ -1744,7 +1743,6 @@ class stock_move(osv.osv):
'product_uom': product.uom_id.id,
'product_uos': uos_id,
'product_qty': 1.00,
'tracking': product.track_production,
'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:
-2
View File
@@ -1463,13 +1463,11 @@
<field name="prodlot_id" groups="base.group_extended"
context="{'location_id':location_id, 'product_id':product_id}"
domain="[('product_id','=?',product_id)]"
attrs="{'required':[('tracking','=',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="tracking" invisible="1"/>
</group>
<separator colspan="4"/>