From 7c0f25bb6e523a1c97790c9c1c92eb488e7b68ad Mon Sep 17 00:00:00 2001 From: mreficent Date: Mon, 12 Aug 2019 20:06:22 +0200 Subject: [PATCH] [MIG] account_financial_report_horizontal: Migration to 11.0 --- account_financial_report_horizontal/README.rst | 8 ++++---- account_financial_report_horizontal/__init__.py | 3 +-- account_financial_report_horizontal/__manifest__.py | 5 ++--- .../data/ir_actions_report_xml.xml | 2 +- .../i18n/account_financial_report_horizontal.pot | 2 +- account_financial_report_horizontal/models/__init__.py | 1 - .../models/account_financial_report.py | 1 - account_financial_report_horizontal/report/__init__.py | 1 - .../report/report_financial.py | 5 ++--- .../report/report_financial.xml | 6 +++--- account_financial_report_horizontal/tests/__init__.py | 1 - .../tests/test_account_financial_report_horizontal.py | 10 +++++----- 12 files changed, 19 insertions(+), 26 deletions(-) diff --git a/account_financial_report_horizontal/README.rst b/account_financial_report_horizontal/README.rst index 077331da..1dc391db 100644 --- a/account_financial_report_horizontal/README.rst +++ b/account_financial_report_horizontal/README.rst @@ -1,5 +1,5 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png + :target: https://www.gnu.org/licenses/agpl :alt: License: AGPL-3 ====================================== @@ -18,7 +18,7 @@ will be in landscape mode with assets left and liabilities right. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/91/10.0 + :target: https://runbot.odoo-community.org/runbot/91/11.0 Bug Tracker =========== @@ -34,7 +34,7 @@ Credits Images ------ -* Odoo Community Association: `Icon `_. +* Odoo Community Association: `Icon `_. Contributors ------------ diff --git a/account_financial_report_horizontal/__init__.py b/account_financial_report_horizontal/__init__.py index 4cbc5614..97b33479 100644 --- a/account_financial_report_horizontal/__init__.py +++ b/account_financial_report_horizontal/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from . import report from . import models +from . import report diff --git a/account_financial_report_horizontal/__manifest__.py b/account_financial_report_horizontal/__manifest__.py index 3b79db47..c84e35c2 100644 --- a/account_financial_report_horizontal/__manifest__.py +++ b/account_financial_report_horizontal/__manifest__.py @@ -1,16 +1,15 @@ -# -*- coding: utf-8 -*- # © 2012-2016 Therp BV # © 2013 Agile Business Group sagl # # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Accounting Financial Report Horizontal", - "version": "10.0.1.0.0", + "version": "11.0.1.0.0", "author": "Therp BV,Agile Business Group,Odoo Community Association (OCA)", "category": 'Accounting & Finance', 'website': 'https://github.com/OCA/account-financial-reporting', 'license': 'AGPL-3', - "depends": ["account"], + "depends": ["account_invoicing"], 'data': [ "data/report_paperformat.xml", "data/ir_actions_report_xml.xml", diff --git a/account_financial_report_horizontal/data/ir_actions_report_xml.xml b/account_financial_report_horizontal/data/ir_actions_report_xml.xml index 1c0c8b2c..e24d2d72 100644 --- a/account_financial_report_horizontal/data/ir_actions_report_xml.xml +++ b/account_financial_report_horizontal/data/ir_actions_report_xml.xml @@ -1,6 +1,6 @@ - + diff --git a/account_financial_report_horizontal/i18n/account_financial_report_horizontal.pot b/account_financial_report_horizontal/i18n/account_financial_report_horizontal.pot index c6513ec3..49453cc4 100644 --- a/account_financial_report_horizontal/i18n/account_financial_report_horizontal.pot +++ b/account_financial_report_horizontal/i18n/account_financial_report_horizontal.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 11.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" diff --git a/account_financial_report_horizontal/models/__init__.py b/account_financial_report_horizontal/models/__init__.py index df355783..d914d870 100644 --- a/account_financial_report_horizontal/models/__init__.py +++ b/account_financial_report_horizontal/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2015 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import account_financial_report diff --git a/account_financial_report_horizontal/models/account_financial_report.py b/account_financial_report_horizontal/models/account_financial_report.py index ef887b69..2dc77508 100644 --- a/account_financial_report_horizontal/models/account_financial_report.py +++ b/account_financial_report_horizontal/models/account_financial_report.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2015 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, models diff --git a/account_financial_report_horizontal/report/__init__.py b/account_financial_report_horizontal/report/__init__.py index f27c91ff..576d436a 100644 --- a/account_financial_report_horizontal/report/__init__.py +++ b/account_financial_report_horizontal/report/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2015 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import report_financial diff --git a/account_financial_report_horizontal/report/report_financial.py b/account_financial_report_horizontal/report/report_financial.py index 09defb57..ed555f12 100644 --- a/account_financial_report_horizontal/report/report_financial.py +++ b/account_financial_report_horizontal/report/report_financial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Therp BV # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import api, models @@ -21,9 +20,9 @@ class ReportFinancial(models.AbstractModel): return self.get_account_lines(data, side='right') @api.multi - def render_html(self, docids, data): + def get_report_values(self, docids, data): data.setdefault('form', {}).update( get_left_lines=self.get_left_lines, get_right_lines=self.get_right_lines, ) - return super(ReportFinancial, self).render_html(docids, data) + return super(ReportFinancial, self).get_report_values(docids, data) diff --git a/account_financial_report_horizontal/report/report_financial.xml b/account_financial_report_horizontal/report/report_financial.xml index 17e68781..b97bebe9 100644 --- a/account_financial_report_horizontal/report/report_financial.xml +++ b/account_financial_report_horizontal/report/report_financial.xml @@ -3,11 +3,11 @@