From 966e0c1cdd4464323d078c8a8d73a1514cdce949 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Mon, 6 Oct 2014 18:57:50 +0200 Subject: [PATCH] [IMP] account_payment_blocking headers consistency, better description, better imports --- account_banking_payment_blocking/__init__.py | 4 ++-- .../__openerp__.py | 22 ++++++++++++------- .../model/__init__.py | 2 +- .../model/account_invoice.py | 19 +++++----------- .../tests/__init__.py | 19 +++++----------- .../test_account_banking_payment_blocking.py | 19 +++++----------- 6 files changed, 35 insertions(+), 50 deletions(-) diff --git a/account_banking_payment_blocking/__init__.py b/account_banking_payment_blocking/__init__.py index 5e162df26..aa439117c 100644 --- a/account_banking_payment_blocking/__init__.py +++ b/account_banking_payment_blocking/__init__.py @@ -20,5 +20,5 @@ # ############################################################################## -import model -import tests +from . import model +from . import tests diff --git a/account_banking_payment_blocking/__openerp__.py b/account_banking_payment_blocking/__openerp__.py index 7f882573b..1e591a504 100644 --- a/account_banking_payment_blocking/__openerp__.py +++ b/account_banking_payment_blocking/__openerp__.py @@ -1,10 +1,10 @@ +# -*- encoding: utf-8 -*- ############################################################################## # -# Copyright (C) ACSONE SA/NV () -# -# All other contributions are (C) by their respective contributors -# -# All Rights Reserved +# Account Payment Blocking module for OpenERP +# Copyright (C) 2014 ACSONE SA/NV (http://acsone.eu) +# @author Stéphane Bidoul +# @author Adrien Peiffer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -25,16 +25,22 @@ 'version': '0.1', 'category': 'Banking addons', 'description': """ - Prevent invoices under litigation to be proposed in payment orders + Prevent invoices under litigation to be proposed in payment orders. + + This module uses the 'blocked' flag that is present on move lines, + to filter out lines proposed in payment orders. + + In addition it exposes this flag on the supplier invoice form + so it is easier to block an invoice. """, - 'author': 'Stéphane Bidoul', + 'author': 'ACSONE SA/NV', 'website': 'http://acsone.eu', 'depends': [ 'base', 'account_banking_payment_export' ], 'data': [ - 'view/account_invoice_view.xml' + 'view/account_invoice_view.xml' ], 'test': [ ], diff --git a/account_banking_payment_blocking/model/__init__.py b/account_banking_payment_blocking/model/__init__.py index 437ba1cb6..0ef1a3c56 100644 --- a/account_banking_payment_blocking/model/__init__.py +++ b/account_banking_payment_blocking/model/__init__.py @@ -20,5 +20,5 @@ # ############################################################################## -import payment_order_create +from . import payment_order_create from . import account_invoice diff --git a/account_banking_payment_blocking/model/account_invoice.py b/account_banking_payment_blocking/model/account_invoice.py index ec83e5c73..dff5c8933 100644 --- a/account_banking_payment_blocking/model/account_invoice.py +++ b/account_banking_payment_blocking/model/account_invoice.py @@ -1,16 +1,9 @@ -# -*- coding: utf-8 -*- +# -*- encoding: utf-8 -*- +############################################################################## # -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. +# Account Payment Blocking module for OpenERP +# Copyright (C) 2014 ACSONE SA/NV (http://acsone.eu) +# @author Adrien Peiffer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -25,7 +18,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # -# +############################################################################## from openerp.osv import orm, fields diff --git a/account_banking_payment_blocking/tests/__init__.py b/account_banking_payment_blocking/tests/__init__.py index c9d202606..625581235 100644 --- a/account_banking_payment_blocking/tests/__init__.py +++ b/account_banking_payment_blocking/tests/__init__.py @@ -1,16 +1,9 @@ -# -*- coding: utf-8 -*- +# -*- encoding: utf-8 -*- +############################################################################## # -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. +# Account Payment Blocking module for OpenERP +# Copyright (C) 2014 ACSONE SA/NV (http://acsone.eu) +# @author Adrien Peiffer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -25,7 +18,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # -# +############################################################################## from . import test_account_banking_payment_blocking diff --git a/account_banking_payment_blocking/tests/test_account_banking_payment_blocking.py b/account_banking_payment_blocking/tests/test_account_banking_payment_blocking.py index 22cee1c64..e1b3498d1 100644 --- a/account_banking_payment_blocking/tests/test_account_banking_payment_blocking.py +++ b/account_banking_payment_blocking/tests/test_account_banking_payment_blocking.py @@ -1,16 +1,9 @@ -# -*- coding: utf-8 -*- +# -*- encoding: utf-8 -*- +############################################################################## # -# -# Authors: Adrien Peiffer -# Copyright (c) 2014 Acsone SA/NV (http://www.acsone.eu) -# All Rights Reserved -# -# WARNING: This program as such is intended to be used by professional -# programmers who take the whole responsibility of assessing all potential -# consequences resulting from its eventual inadequacies and bugs. -# End users who are looking for a ready-to-use solution with commercial -# guarantees and support are strongly advised to contact a Free Software -# Service Company. +# Account Payment Blocking module for OpenERP +# Copyright (C) 2014 ACSONE SA/NV (http://acsone.eu) +# @author Adrien Peiffer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as @@ -25,7 +18,7 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # -# +############################################################################## import openerp.tests.common as common from openerp import netsvc