From c24f32e89d1775492c9143d087d5f177e75969a4 Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Thu, 13 Oct 2016 08:24:08 +0200 Subject: [PATCH] [MIG] Migration of report_xlsx to 10.0 (#76) [MIG] Migration of report_xlsx to 10.0 --- report_xlsx/README.rst | 12 ++++++------ report_xlsx/__manifest__.py | 8 +++----- report_xlsx/models/ir_report.py | 2 +- report_xlsx/report/report_xlsx.py | 4 ++-- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/report_xlsx/README.rst b/report_xlsx/README.rst index 2ce2e112..bd2a96e5 100644 --- a/report_xlsx/README.rst +++ b/report_xlsx/README.rst @@ -22,7 +22,7 @@ An example of XLSX report for partners: A python class :: - from openerp.addons.report_xlsx.report.report_xlsx import ReportXlsx + from odoo.addons.report_xlsx.report.report_xlsx import ReportXlsx class PartnerXlsx(ReportXlsx): @@ -55,15 +55,15 @@ A report XML record :: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/143/9.0 + :target: https://runbot.odoo-community.org/runbot/143/10.0 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 -`here `_. +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. Credits ======= diff --git a/report_xlsx/__manifest__.py b/report_xlsx/__manifest__.py index 7223a1d8..a5ba63a5 100644 --- a/report_xlsx/__manifest__.py +++ b/report_xlsx/__manifest__.py @@ -10,13 +10,11 @@ 'Odoo Community Association (OCA)', 'website': "http://acsone.eu", 'category': 'Reporting', - 'version': '9.0.1.0.0', + 'version': '10.0.1.0.0', 'license': 'AGPL-3', - 'external_dependencies': {'python': ['xlsxwriter'], - 'installable': False, -}, + 'external_dependencies': {'python': ['xlsxwriter']}, 'depends': [ 'base', ], - 'installable': False, + 'installable': True, } diff --git a/report_xlsx/models/ir_report.py b/report_xlsx/models/ir_report.py index e3793ae6..7bf10a9a 100644 --- a/report_xlsx/models/ir_report.py +++ b/report_xlsx/models/ir_report.py @@ -2,7 +2,7 @@ # Copyright 2015 ACSONE SA/NV () # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import fields, models +from odoo import fields, models class IrActionsReportXml(models.Model): diff --git a/report_xlsx/report/report_xlsx.py b/report_xlsx/report/report_xlsx.py index 285c97b5..a9891205 100644 --- a/report_xlsx/report/report_xlsx.py +++ b/report_xlsx/report/report_xlsx.py @@ -4,8 +4,8 @@ from cStringIO import StringIO -from openerp.report.report_sxw import report_sxw -from openerp.api import Environment +from odoo.report.report_sxw import report_sxw +from odoo.api import Environment import logging _logger = logging.getLogger(__name__)