[MIG] account_partner_required: Migration to 11.0
This commit is contained in:
parent
642b63e6c2
commit
1f6801d424
@ -1,5 +1,5 @@
|
|||||||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
|
||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: https://www.gnu.org/licenses/agpl
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
|
|
||||||
========================
|
========================
|
||||||
@ -46,11 +46,19 @@ help us smashing it by providing a detailed and welcomed feedback.
|
|||||||
Credits
|
Credits
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
Images
|
||||||
|
------
|
||||||
|
|
||||||
|
* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
|
||||||
|
|
||||||
Contributors
|
Contributors
|
||||||
------------
|
------------
|
||||||
|
|
||||||
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||||
* Alexis de Lattre <alexis.delattre@akretion.com>
|
* 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
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import models
|
from . import models
|
||||||
|
@ -1,19 +1,24 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2014-2016 Acsone (http://acsone.eu).
|
# © 2014-2016 Acsone (http://acsone.eu).
|
||||||
# © 2016 Akretion (http://www.akretion.com/)
|
# © 2016 Akretion (http://www.akretion.com/)
|
||||||
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
# @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).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Account partner required',
|
"name": "Account partner required",
|
||||||
'version': '10.0.1.0.0',
|
"version": "11.0.1.0.0",
|
||||||
'category': 'Accounting',
|
"category": "Accounting",
|
||||||
'license': 'AGPL-3',
|
"license": "AGPL-3",
|
||||||
'summary': "Adds an option 'partner policy' on account types",
|
"summary": "Adds an option 'partner policy' on account types",
|
||||||
'author': "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)",
|
"author": "ACSONE SA/NV,Akretion,Odoo Community Association (OCA)",
|
||||||
'website': 'http://acsone.eu/',
|
"website": "http://acsone.eu/",
|
||||||
'depends': ['account_type_menu'],
|
"depends": [
|
||||||
'data': ['views/account.xml'],
|
"account_type_menu",
|
||||||
'installable': True,
|
],
|
||||||
|
"data": [
|
||||||
|
"views/account.xml",
|
||||||
|
],
|
||||||
|
"installable": True,
|
||||||
|
"application": False,
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from . import account
|
from . import account
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2014-2016 Acsone (http://acsone.eu)
|
# © 2014-2016 Acsone (http://acsone.eu)
|
||||||
# © 2016 Akretion (http://www.akretion.com/)
|
# © 2016 Akretion (http://www.akretion.com/)
|
||||||
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||||
@ -13,12 +12,14 @@ from odoo.exceptions import ValidationError
|
|||||||
class AccountAccountType(models.Model):
|
class AccountAccountType(models.Model):
|
||||||
_inherit = "account.account.type"
|
_inherit = "account.account.type"
|
||||||
|
|
||||||
partner_policy = fields.Selection([
|
partner_policy = fields.Selection(
|
||||||
('optional', 'Optional'),
|
selection=[
|
||||||
('always', 'Always'),
|
('optional', 'Optional'),
|
||||||
('never', 'Never'),
|
('always', 'Always'),
|
||||||
], string='Policy for Partner Field',
|
('never', 'Never')],
|
||||||
required=True, default='optional',
|
string='Policy for Partner Field',
|
||||||
|
required=True,
|
||||||
|
default='optional',
|
||||||
help="Set the policy for the partner field : if you select "
|
help="Set the policy for the partner field : if you select "
|
||||||
"'Optional', the accountant is free to put a partner "
|
"'Optional', the accountant is free to put a partner "
|
||||||
"on an account move line with this type of account ; "
|
"on an account move line with this type of account ; "
|
||||||
|
@ -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
|
from . import test_account_partner_required
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2014-2016 Acsone (http://acsone.eu)
|
# © 2014-2016 Acsone (http://acsone.eu)
|
||||||
# © 2016 Akretion (http://www.akretion.com/)
|
# © 2016 Akretion (http://www.akretion.com/)
|
||||||
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
# @author Stéphane Bidoul <stephane.bidoul@acsone.eu>
|
||||||
|
Loading…
Reference in New Issue
Block a user