account_usability: Fix py3o method

This commit is contained in:
Alexis de Lattre
2021-02-17 15:14:54 +01:00
parent 5c06d79b69
commit 66ebc5c6ad

View File

@@ -121,7 +121,7 @@ class AccountMove(models.Model):
res = []
has_sections = False
subtotal = 0.0
sign = self.type == 'out_refund' and -1 or 1
sign = self.move_type == 'out_refund' and -1 or 1
for line in self.invoice_line_ids:
if line.display_type == 'line_section':
# insert line