From d99bdac6d9e16735d9b63d2594ec683ddecf46e0 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 7 Jan 2014 14:49:15 +0100 Subject: [PATCH] [REV] stock: rehab the link between a minimum stock rule and its latest procurement (could be usefull for having a fast look on it, i guess..) bzr revid: qdp-launchpad@openerp.com-20140107134915-gahkz1q7zgbvyiin --- addons/stock/procurement.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/stock/procurement.py b/addons/stock/procurement.py index 27a7b49120e..6cf274ee2d0 100644 --- a/addons/stock/procurement.py +++ b/addons/stock/procurement.py @@ -160,7 +160,7 @@ class procurement_order(osv.osv): return rule_id def _run_move_create(self, cr, uid, procurement, context=None): - ''' Returns a dictionary of values that will be sued to create a stock move from a procurement. + ''' Returns a dictionary of values that will be used to create a stock move from a procurement. This function assumes that the given procurement has a rule (action == 'move') set on it. :param procurement: browse record @@ -427,9 +427,8 @@ class procurement_order(osv.osv): context=context) self.check(cr, uid, [proc_id]) self.run(cr, uid, [proc_id]) - #TODO: check if we can remove this field because it doesn't seem used at all - #orderpoint_obj.write(cr, uid, [op.id], - # {'procurement_id': proc_id}, context=context) + orderpoint_obj.write(cr, uid, [op.id], + {'procurement_id': proc_id}, context=context) offset += len(ids) if use_new_cursor: cr.commit()