From 03eadd64689b56370c46b217f1e5b0ccfc22da80 Mon Sep 17 00:00:00 2001 From: Matjaz Mozetic Date: Fri, 2 Aug 2019 20:46:03 +0200 Subject: [PATCH] [FIX] Typo (refund, invoice) in conditions --- contract/models/account_analytic_invoice_line.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/models/account_analytic_invoice_line.py b/contract/models/account_analytic_invoice_line.py index b8160a75..0170afbf 100644 --- a/contract/models/account_analytic_invoice_line.py +++ b/contract/models/account_analytic_invoice_line.py @@ -18,12 +18,12 @@ class AccountAnalyticInvoiceLine(models.Model): for inv_line in line.invoice_lines: if inv_line.invoice_id.state not in ['cancel']: if inv_line.invoice_id.type in [ - 'in_invoice', 'out_refund' + 'in_invoice', 'out_invoice' ]: qty += inv_line.uom_id._compute_quantity( inv_line.quantity, line.uom_id) elif inv_line.invoice_id.type in [ - 'out_invoice', 'in_refund' + 'out_refund', 'in_refund' ]: qty -= inv_line.uom_id._compute_quantity( inv_line.quantity, line.uom_id)