[WIP] res should be rule_id in find_suitable_rule
bzr revid: jco@openerp.com-20130716114100-el6k49ozyt5j7k60
This commit is contained in:
parent
bfecef01b1
commit
77f7da2367
|
@ -56,7 +56,7 @@ class procurement_order(osv.osv):
|
|||
|
||||
def _find_suitable_rule(self, cr, uid, procurement, context=None):
|
||||
rule_id = super(procurement_order, self)._find_suitable_rule(cr, uid, procurement, context=context)
|
||||
if not res:
|
||||
if not rule_id:
|
||||
rule_id = self._search_suitable_rule(cr, uid, procurement, [('action', '=', 'move'), ('location_id', '=', procurement.location_id.id)], context=context)
|
||||
rule_id = rule_id and rule_id[0] or False
|
||||
return rule_id
|
||||
|
|
Loading…
Reference in New Issue