2
0

[MIG] account_partner_required: Migration to 11.0

This commit is contained in:
Raf Ven 2018-03-01 09:36:43 +01:00 committed by Alexis de Lattre
parent 642b63e6c2
commit 1f6801d424
7 changed files with 34 additions and 44 deletions

View File

@ -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 <https://odoo-community.org/logo.png>`_.
Contributors
------------
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
* Alexis de Lattre <alexis.delattre@akretion.com>
* Raf Ven <raf.ven@dynapps.be>
Do not contact contributors directly about support or help with technical issues.
Maintainer
----------

View File

@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
from . import models

View File

@ -1,19 +1,24 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Acsone (http://acsone.eu).
# © 2016 Akretion (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# © 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,
}

View File

@ -1,3 +1,2 @@
# -*- coding: utf-8 -*-
from . import account

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Acsone (http://acsone.eu)
# © 2016 Akretion (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
@ -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 ; "

View File

@ -1,23 +1,2 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Account partner required module for OpenERP
# Copyright (C) 2014 Acsone (http://acsone.eu).
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
#
# 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 <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import test_account_partner_required

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# © 2014-2016 Acsone (http://acsone.eu)
# © 2016 Akretion (http://www.akretion.com/)
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>