From c1d843e4602d468fae7e62671ebb8f116dfa6686 Mon Sep 17 00:00:00 2001 From: sebastien beau Date: Thu, 25 Aug 2011 00:18:06 +0200 Subject: [PATCH] [IMP] Purchase : add a docstring for the method create_procurement_purchase_order bzr revid: sebastien.beau@akretion.com.br-20110824221806-ue02asb0afk5mol7 --- addons/purchase/purchase.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index 1b3d0eeb839..27824fc3c67 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -762,6 +762,13 @@ class procurement_order(osv.osv): return len(res) and res[0] or 0 #TO CHECK: why workflow is generated error if return not integer value def create_procurement_purchase_order(self, cr, uid, procurement, po_vals, line, context=None): + """ Create the purchase order from the procurement + :params procurement: the procurement object generating the purchase order + :params dict po_vals: the values of the purchase order + :params dict line: the values of the purchase order line + :return: purchase order id + :rtype: int + """ po_vals.update({'order_line': [(0,0,line)]}) return self.pool.get('purchase.order').create(cr, uid, po_vals, context=context)