From 716018ba41eaaf1816fc0916bd5f45650e026674 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Tue, 17 Feb 2015 13:00:43 +0100 Subject: [PATCH] Fix W503 errors --- account_fiscal_position_vat_check/account_invoice.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/account_fiscal_position_vat_check/account_invoice.py b/account_fiscal_position_vat_check/account_invoice.py index 95a0e031b..62a17a7d2 100644 --- a/account_fiscal_position_vat_check/account_invoice.py +++ b/account_fiscal_position_vat_check/account_invoice.py @@ -42,10 +42,10 @@ class account_invoice(models.Model): if required by the fiscal position''' for invoice in self: if ( - invoice.type in ('out_invoice', 'out_refund') - and invoice.fiscal_position - and invoice.fiscal_position.customer_must_have_vat - and not invoice.partner_id.vat): + invoice.type in ('out_invoice', 'out_refund') and + invoice.fiscal_position and + invoice.fiscal_position.customer_must_have_vat and + not invoice.partner_id.vat): if invoice.type == 'out_invoice': type_label = _('a Customer Invoice') else: