From 67733aeaf45bc7bfaeb5174a7ed206e99d12d2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 8 Dec 2008 14:09:04 +0100 Subject: [PATCH] Add docstring to create_invoice --- purchase.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/purchase.py b/purchase.py index 623aa8391c..83de728435 100644 --- a/purchase.py +++ b/purchase.py @@ -647,6 +647,15 @@ class Purchase(OSV): return res def create_invoice(self, cursor, user, purchase_id, context=None): + ''' + Create invoice for the purchase id + + :param cursor: the database cursor + :param user: the user id + :param purchase_id: the id of the purchase + :param context: the context + :return: the id of the invoice or None + ''' invoice_obj = self.pool.get('account.invoice') journal_obj = self.pool.get('account.journal') invoice_line_obj = self.pool.get('account.invoice.line')