[WIP] Put rule_id with push rules also

bzr revid: jco@openerp.com-20130724173332-kddt1nbzolgwvibl
This commit is contained in:
Josse Colpaert 2013-07-24 19:33:32 +02:00
parent 751c6a86ce
commit 1be2fe79ad
1 changed files with 2 additions and 1 deletions

View File

@ -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,