From 1f6801d4245f68544dfd67655b43ae49ecee8db2 Mon Sep 17 00:00:00 2001 From: Raf Ven Date: Thu, 1 Mar 2018 09:36:43 +0100 Subject: [PATCH] [MIG] account_partner_required: Migration to 11.0 --- account_partner_required/README.rst | 12 +++++++-- account_partner_required/__init__.py | 1 - account_partner_required/__manifest__.py | 27 +++++++++++-------- account_partner_required/models/__init__.py | 1 - account_partner_required/models/account.py | 15 ++++++----- account_partner_required/tests/__init__.py | 21 --------------- .../tests/test_account_partner_required.py | 1 - 7 files changed, 34 insertions(+), 44 deletions(-) diff --git a/account_partner_required/README.rst b/account_partner_required/README.rst index dd3f5b7f..66ee8160 100644 --- a/account_partner_required/README.rst +++ b/account_partner_required/README.rst @@ -1,5 +1,5 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl :alt: License: AGPL-3 ======================== @@ -46,11 +46,19 @@ help us smashing it by providing a detailed and welcomed feedback. Credits ======= +Images +------ + +* Odoo Community Association: `Icon `_. + Contributors ------------ * Stéphane Bidoul * Alexis de Lattre +* Raf Ven + +Do not contact contributors directly about support or help with technical issues. Maintainer ---------- diff --git a/account_partner_required/__init__.py b/account_partner_required/__init__.py index cde864ba..a9e33722 100644 --- a/account_partner_required/__init__.py +++ b/account_partner_required/__init__.py @@ -1,3 +1,2 @@ -# -*- coding: utf-8 -*- from . import models diff --git a/account_partner_required/__manifest__.py b/account_partner_required/__manifest__.py index fa9ba307..4cb24c9c 100644 --- a/account_partner_required/__manifest__.py +++ b/account_partner_required/__manifest__.py @@ -1,19 +1,24 @@ -# -*- coding: utf-8 -*- # © 2014-2016 Acsone (http://acsone.eu). # © 2016 Akretion (http://www.akretion.com/) # @author Stéphane Bidoul # @author Alexis de Lattre +# © 2018 DynApps (https://odoo.dynapps.be/) # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { - 'name': 'Account partner required', - 'version': '10.0.1.0.0', - 'category': 'Accounting', - 'license': 'AGPL-3', - 'summary': "Adds an option 'partner policy' on account types", - 'author': "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)", - 'website': 'http://acsone.eu/', - 'depends': ['account_type_menu'], - 'data': ['views/account.xml'], - 'installable': True, + "name": "Account partner required", + "version": "11.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "summary": "Adds an option 'partner policy' on account types", + "author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)", + "website": "http://acsone.eu/", + "depends": [ + "account_type_menu", + ], + "data": [ + "views/account.xml", + ], + "installable": True, + "application": False, } diff --git a/account_partner_required/models/__init__.py b/account_partner_required/models/__init__.py index 300089bd..612263b7 100644 --- a/account_partner_required/models/__init__.py +++ b/account_partner_required/models/__init__.py @@ -1,3 +1,2 @@ -# -*- coding: utf-8 -*- from . import account diff --git a/account_partner_required/models/account.py b/account_partner_required/models/account.py index dbeff893..2eace437 100644 --- a/account_partner_required/models/account.py +++ b/account_partner_required/models/account.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2014-2016 Acsone (http://acsone.eu) # © 2016 Akretion (http://www.akretion.com/) # @author Stéphane Bidoul @@ -13,12 +12,14 @@ from odoo.exceptions import ValidationError class AccountAccountType(models.Model): _inherit = "account.account.type" - partner_policy = fields.Selection([ - ('optional', 'Optional'), - ('always', 'Always'), - ('never', 'Never'), - ], string='Policy for Partner Field', - required=True, default='optional', + partner_policy = fields.Selection( + selection=[ + ('optional', 'Optional'), + ('always', 'Always'), + ('never', 'Never')], + string='Policy for Partner Field', + required=True, + default='optional', help="Set the policy for the partner field : if you select " "'Optional', the accountant is free to put a partner " "on an account move line with this type of account ; " diff --git a/account_partner_required/tests/__init__.py b/account_partner_required/tests/__init__.py index 7b3bbb52..99322026 100644 --- a/account_partner_required/tests/__init__.py +++ b/account_partner_required/tests/__init__.py @@ -1,23 +1,2 @@ -# -*- encoding: utf-8 -*- -############################################################################## -# -# Account partner required module for OpenERP -# Copyright (C) 2014 Acsone (http://acsone.eu). -# @author Stéphane Bidoul -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## from . import test_account_partner_required diff --git a/account_partner_required/tests/test_account_partner_required.py b/account_partner_required/tests/test_account_partner_required.py index c1921d16..0fdc8aa8 100644 --- a/account_partner_required/tests/test_account_partner_required.py +++ b/account_partner_required/tests/test_account_partner_required.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2014-2016 Acsone (http://acsone.eu) # © 2016 Akretion (http://www.akretion.com/) # @author Stéphane Bidoul