[IMP] sale_mrp: Improved multi and passed id insted of browse record

bzr revid: pso@tinyerp.com-20101022093903-40reflpmwuqjono7
This commit is contained in:
pso 2010-10-22 15:09:03 +05:30
parent 14798ab61e
commit ea4f948713
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ class mrp_production(osv.osv):
for production in productions:
res[production.id] = False
if production.move_prod_id:
parent_move_line = get_parent_move(production.move_prod_id)
parent_move_line = get_parent_move(production.move_prod_id.id)
if parent_move_line:
move = move_obj.browse(cr, uid, parent_move_line)
if field_name == 'name':
@ -73,7 +73,7 @@ class mrp_production(osv.osv):
_columns = {
'sale_name': fields.function(_ref_calc, method=True, multi='sale_name', type='char', string='Sale Name', help='Indicate the name of sale order.'),
'sale_ref': fields.function(_ref_calc, method=True, multi='sale_ref', type='char', string='Sale Reference', help='Indicate the Customer Reference from sale order.'),
'sale_ref': fields.function(_ref_calc, method=True, multi='sale_name', type='char', string='Sale Reference', help='Indicate the Customer Reference from sale order.'),
}
mrp_production()