From ea4f948713ef1c5a1fbc1111c4ca80471ddeccb4 Mon Sep 17 00:00:00 2001 From: pso Date: Fri, 22 Oct 2010 15:09:03 +0530 Subject: [PATCH] [IMP] sale_mrp: Improved multi and passed id insted of browse record bzr revid: pso@tinyerp.com-20101022093903-40reflpmwuqjono7 --- addons/sale_mrp/sale_mrp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale_mrp/sale_mrp.py b/addons/sale_mrp/sale_mrp.py index 9e046b1f2f5..c11f62a1f03 100644 --- a/addons/sale_mrp/sale_mrp.py +++ b/addons/sale_mrp/sale_mrp.py @@ -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()