44
44
@param product id to create
50
product_obj_data = self.pool.get('product.product').browse(cr, uid, line['product_id'], context=None)
47
57
default_location_dict = self.product_id_change(cr, uid, [], product.id, context)
48
58
if (default_location_dict['value']['location_src_id'] & default_location_dict['value']['location_dest_id']):
49
59
production_order_dict = {
50
60
'name' : self.pool.get('ir.sequence').get(cr, uid, 'mrp.production'),
51
61
'date_planned' : time.strftime('%Y-%m-%d %H:%M:%S'),
52
62
'product_id' : product.id,
54
64
'product_uom' : product.uom_id.id,
55
65
'location_src_id': default_location_dict['value']['location_src_id'],
56
66
'location_dest_id': default_location_dict['value']['location_dest_id'],