From 7ebbc2e5ea518ff6678d6e5d3b64ca3cf81fc07e Mon Sep 17 00:00:00 2001 From: Nicolas Bessi Date: Thu, 10 Jul 2014 16:24:08 +0200 Subject: [PATCH] [FIX] flake8 PEP8 of module account_cancel_invoice_check_payment_order --- .../__init__.py | 2 -- .../__openerp__.py | 15 +++++++-------- .../account_invoice.py | 15 ++++++++------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/account_cancel_invoice_check_payment_order/__init__.py b/account_cancel_invoice_check_payment_order/__init__.py index bdc0e6ae9..46ef6ced0 100644 --- a/account_cancel_invoice_check_payment_order/__init__.py +++ b/account_cancel_invoice_check_payment_order/__init__.py @@ -18,5 +18,3 @@ # ############################################################################## from . import account_invoice -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - diff --git a/account_cancel_invoice_check_payment_order/__openerp__.py b/account_cancel_invoice_check_payment_order/__openerp__.py index a0a2b6efe..57e3805a8 100644 --- a/account_cancel_invoice_check_payment_order/__openerp__.py +++ b/account_cancel_invoice_check_payment_order/__openerp__.py @@ -18,19 +18,18 @@ # ############################################################################## { - "name" : "Cancel invoice, check on payment order", - "version" : "1.0", - "depends" : ["account", - "account_payment", - "account_cancel" - ], - "author" : "Camptocamp", + "name": "Cancel invoice, check on payment order", + "version": "1.0", + "depends": ["account", + "account_payment", + "account_cancel"], + "author": "Camptocamp", "description": """ Prevents to cancel an invoice which has already been imported in a payment order. """, 'website': 'http://www.camptocamp.com', - 'data' : [], + 'data': [], 'installable': True, 'active': False, } diff --git a/account_cancel_invoice_check_payment_order/account_invoice.py b/account_cancel_invoice_check_payment_order/account_invoice.py index 2634dcb37..237706322 100644 --- a/account_cancel_invoice_check_payment_order/account_invoice.py +++ b/account_cancel_invoice_check_payment_order/account_invoice.py @@ -45,10 +45,11 @@ class account_invoice(orm.Model): payment_orders = cr.dictfetchone() if payment_orders: raise osv.except_osv( - _('Error !'), - _("Invoice already imported in the payment " - "order (%s) at %s on line %s" % - (payment_orders['payment_name'], - payment_orders['payment_date'], - payment_orders['name']))) - return super(account_invoice,self).action_cancel(cr, uid, ids, *args) + _('Error !'), + _("Invoice already imported in the payment " + "order (%s) at %s on line %s" % + (payment_orders['payment_name'], + payment_orders['payment_date'], + payment_orders['name'])) + ) + return super(account_invoice, self).action_cancel(cr, uid, ids, *args)