Reviewers: ,


Please review this at http://codereview.tryton.org/362001/

Affected files:
  M purchase.py


Index: purchase.py
===================================================================

--- a/purchase.py
+++ b/purchase.py
@@ -24,11 +24,12 @@

         super(Purchase, self).init(module_name)

-    def create_invoice(self, purchase):
+    def create_invoice(self, purchase, invoice_type):
         invoice_obj = Pool().get('account.invoice')
         invoice_line_obj = Pool().get('account.invoice.line')

-        invoice_id = super(Purchase, self).create_invoice(purchase)
+        invoice_id = super(Purchase, self).create_invoice(purchase,
+            invoice_type)

         if invoice_id:
             invoice = invoice_obj.browse(invoice_id)



--
[email protected] mailing list

Reply via email to