changeset 1:6bc1ce5e2ef2 4.8 tip

Fix test to create chorus invoice
author Cédric Krier <ced@b2ck.com>
date Mon, 02 Jul 2018 13:16:16 +0200
parents 645d24d0753c
children
files account.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/account.py	Mon Jun 18 10:57:12 2018 +0200
+++ b/account.py	Mon Jul 02 13:16:16 2018 +0200
@@ -110,7 +110,7 @@
         super(Invoice, cls).post(invoices)
         invoices_chorus = []
         for invoice in invoices:
-            if invoice.type == 'out' or invoice.party.chorus:
+            if invoice.type == 'out' and invoice.party.chorus:
                 invoices_chorus.append(InvoiceChorus(invoice=invoice))
         InvoiceChorus.save(invoices_chorus)