Convert Invoice.update_taxes into dualmethod
issue5334 review294221003
This commit is contained in:
1 parent
6c36134232
commit
9d08ff5d2e
1 file changed
+1
-3
@@ -806,8 +806,6 @@ class Sale(
|
||||
|
||||
def create_invoice(self):
|
||||
'Create and return an invoice'
|
||||
pool = Pool()
|
||||
Invoice = pool.get('account.invoice')
|
||||
if self.invoice_method == 'manual':
|
||||
return
|
||||
|
||||
@@ -824,7 +822,7 @@ class Sale(
|
||||
invoice.lines = invoice_lines
|
||||
invoice.save()
|
||||
|
||||
Invoice.update_taxes([invoice])
|
||||
invoice.update_taxes()
|
||||
self.copy_resources_to(invoice)
|
||||
return invoice
|
||||
|
||||
|
||||
Reference in new issue
Block a user