Convert Invoice.update_taxes into dualmethod

issue5334
review294221003
This commit is contained in:
Abraham Cabezas committed 2020-07-29 22:51:13 +02:00
1 parent 6c36134232
commit 9d08ff5d2e
1 file changed
+1 -3
+1 -3
View File
@@ -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