diff --git a/account_cost_center/README.rst b/account_cost_center/README.rst index ea9eab694..92ff87cb7 100644 --- a/account_cost_center/README.rst +++ b/account_cost_center/README.rst @@ -14,13 +14,13 @@ Costcenter :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Faccount--financial--tools-lightgray.png?logo=github - :target: https://github.com/OCA/account-financial-tools/tree/10.0/account_cost_center + :target: https://github.com/OCA/account-financial-tools/tree/11.0/account_cost_center :alt: OCA/account-financial-tools .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/account-financial-tools-10-0/account-financial-tools-10-0-account_cost_center + :target: https://translation.odoo-community.org/projects/account-financial-tools-11-0/account-financial-tools-11-0-account_cost_center :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/92/10.0 + :target: https://runbot.odoo-community.org/runbot/92/11.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -71,7 +71,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -104,6 +104,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/account-financial-tools `_ project on GitHub. +This module is part of the `OCA/account-financial-tools `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/account_cost_center/__init__.py b/account_cost_center/__init__.py index b44d76594..31660d6a9 100644 --- a/account_cost_center/__init__.py +++ b/account_cost_center/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import models diff --git a/account_cost_center/__manifest__.py b/account_cost_center/__manifest__.py index 71d35e2fb..ec7b842ce 100644 --- a/account_cost_center/__manifest__.py +++ b/account_cost_center/__manifest__.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2016-2018 Onestein () +# Copyright 2016-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). { @@ -9,7 +8,7 @@ 'license': 'AGPL-3', 'website': 'https://github.com/OCA/account-financial-tools/', 'category': 'Accounting', - 'version': '10.0.1.0.0', + 'version': '11.0.1.0.0', 'depends': [ 'account', 'base_view_inheritance_extension' diff --git a/account_cost_center/models/__init__.py b/account_cost_center/models/__init__.py index caabea9a2..c3ff2676c 100644 --- a/account_cost_center/models/__init__.py +++ b/account_cost_center/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import account_move_line diff --git a/account_cost_center/models/account_cost_center.py b/account_cost_center/models/account_cost_center.py index 3f8caaa16..6c53f8d55 100644 --- a/account_cost_center/models/account_cost_center.py +++ b/account_cost_center/models/account_cost_center.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2015-2018 Onestein () +# Copyright 2015-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/account_cost_center/models/account_invoice.py b/account_cost_center/models/account_invoice.py index fa86d4d25..e00f23913 100644 --- a/account_cost_center/models/account_invoice.py +++ b/account_cost_center/models/account_invoice.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2015-2018 Onestein () +# Copyright 2015-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models diff --git a/account_cost_center/models/account_invoice_line.py b/account_cost_center/models/account_invoice_line.py index baa381473..f7dbe3aa1 100644 --- a/account_cost_center/models/account_invoice_line.py +++ b/account_cost_center/models/account_invoice_line.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2015-2018 Onestein () +# Copyright 2015-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import api, fields, models @@ -11,7 +10,7 @@ class AccountInvoiceLine(models.Model): @api.model def _default_cost_center(self): return self.env['account.cost.center'].browse( - self._context.get('cost_center_id')) + self.env.context.get('cost_center_id')) cost_center_id = fields.Many2one( 'account.cost.center', diff --git a/account_cost_center/models/account_invoice_report.py b/account_cost_center/models/account_invoice_report.py index 4d161e7dc..7d13c6866 100644 --- a/account_cost_center/models/account_invoice_report.py +++ b/account_cost_center/models/account_invoice_report.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2015-2018 Onestein () +# Copyright 2015-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models @@ -13,11 +12,6 @@ class AccountInvoiceReport(models.Model): string='Cost Center', readonly=True ) - account_analytic_id = fields.Many2one( - 'account.analytic.account', - string='Analytic Account', - readonly=True - ) def _select(self): return super(AccountInvoiceReport, self)._select() + \ diff --git a/account_cost_center/models/account_move_line.py b/account_cost_center/models/account_move_line.py index a64a3c0d7..4b2778173 100644 --- a/account_cost_center/models/account_move_line.py +++ b/account_cost_center/models/account_move_line.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2015-2018 Onestein () +# Copyright 2015-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo import fields, models diff --git a/account_cost_center/tests/__init__.py b/account_cost_center/tests/__init__.py index 1b3d287d3..8ad8f7829 100644 --- a/account_cost_center/tests/__init__.py +++ b/account_cost_center/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from . import test_cost_center diff --git a/account_cost_center/tests/test_cost_center.py b/account_cost_center/tests/test_cost_center.py index 05c8007e1..4189c3e01 100644 --- a/account_cost_center/tests/test_cost_center.py +++ b/account_cost_center/tests/test_cost_center.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2017-2018 Onestein () +# Copyright 2017-2019 Onestein () # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). from odoo.tests import common diff --git a/account_cost_center/views/account_cost_center.xml b/account_cost_center/views/account_cost_center.xml index 88dd60c14..8f9dc2b8b 100644 --- a/account_cost_center/views/account_cost_center.xml +++ b/account_cost_center/views/account_cost_center.xml @@ -69,7 +69,6 @@ account.invoice.report - - - - + + +