From cd5b138574f1d221b2cfa6664f7e47977dadb1bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 18 Apr 2008 11:13:03 +0200 Subject: [PATCH] Accounts on tax are mandatory --- invoice.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/invoice.py b/invoice.py index 28c1b67e86..34ca60c07b 100644 --- a/invoice.py +++ b/invoice.py @@ -499,15 +499,13 @@ class Invoice(OSV): val['base_sign'] = tax['tax'].invoice_base_sign val['tax_code'] = tax['tax'].invoice_tax_code.id val['tax_sign'] = tax['tax'].invoice_tax_sign - val['account'] = tax['tax'].invoice_account.id or \ - line.account.id + val['account'] = tax['tax'].invoice_account.id else: val['base_code'] = tax['tax'].refund_base_code.id val['base_sign'] = tax['tax'].refund_base_sign val['tax_code'] = tax['tax'].refund_tax_code.id val['tax_sign'] = tax['tax'].refund_tax_sign - val['account'] = tax['tax'].refund_account.id or \ - line.account.id + val['account'] = tax['tax'].refund_account.id key = (val['base_code'], val['base_sign'], val['tax_code'], val['tax_sign'], val['account'], val['description'])