From 1be2fe79ade91ca156504da2fe5ca894372ce491 Mon Sep 17 00:00:00 2001 From: Josse Colpaert Date: Wed, 24 Jul 2013 19:33:32 +0200 Subject: [PATCH] [WIP] Put rule_id with push rules also bzr revid: jco@openerp.com-20130724173332-kddt1nbzolgwvibl --- addons/stock_location/stock_location.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/stock_location/stock_location.py b/addons/stock_location/stock_location.py index 447849353b3..aba1c594e4f 100644 --- a/addons/stock_location/stock_location.py +++ b/addons/stock_location/stock_location.py @@ -105,7 +105,8 @@ class stock_location_path(osv.osv): 'company_id': rule.company_id and rule.company_id.id or False, 'date_expected': newdate, 'picking_id': False, - 'type': move_obj.get_type_from_usage(cr, uid, move.location_id, move.location_dest_id, context=context) + 'type': move_obj.get_type_from_usage(cr, uid, move.location_id, move.location_dest_id, context=context), + 'rule_id': rule.id, }) move_obj.write(cr, uid, [move.id], { 'move_dest_id': move_id,