[IMP] mrp_subproduct: Rename the date_planned to date in stock_move

bzr revid: sbh@tinyerp.com-20100921131439-ovr5igac3gjwg9zi
This commit is contained in:
sbh (Open ERP)
2010-09-21 18:44:39 +05:30
parent a94078f37f
commit 9b6c4820eb
3 changed files with 2 additions and 3 deletions
@@ -8,7 +8,6 @@
company_id: base.main_company
date: '2010-06-24 20:10:28'
date_expected: '2010-06-24 20:10:55'
date: '2010-06-24 20:10:28'
location_dest_id: stock.stock_location_stock
location_id: stock.stock_location_stock
name: '[PC1] Basic PC'
+1 -1
View File
@@ -83,7 +83,7 @@ class mrp_production(osv.osv):
qty2 *= production.product_uos_qty / (production.bom_id.product_uos_qty or 1.0)
data = {
'name': 'PROD:'+production.name,
'date_planned': production.date_planned,
'date': production.date_planned,
'product_id': sub_product.product_id.id,
'product_qty': qty1,
'product_uom': sub_product.product_uom.id,
+1 -1
View File
@@ -177,7 +177,7 @@ class stock_return_picking(osv.osv_memory):
new_qty, move.product_uos.id),
'picking_id':new_picking, 'state':'draft',
'location_id':new_location, 'location_dest_id':move.location_id.id,
'date':date_cur, 'date':date_cur,})
'date':date_cur,})
move_obj.write(cr, uid, [move.id], {'move_history_ids2':[(4,new_move)]})
if set_invoice_state_to_none: