Contributors mailing list archives

contributors@odoo-community.org

Browse archives

Avatar

report changes:upgrading modules from v9 to v10 (swiss bank payment slip)

by
redCOR AG, Robert Rottermann
- 26/12/2016 10:43:57
Hi tehere,

I would like to upgrade to upgrade some modules from v9 to v10. Having an actual 
need, I wanted to start with l10n_ch_payment_slip and therefore base_transaction_id.

Now I found out, that the layout of the files needed to create the reposts has 
been altered significantly.

So I had to change the import statement in l10n_ch_payment_slip like so:

# -*- coding: utf-8 -*-
# © 2012-2016 Camptocamp SA
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models
try:
     # v9
     from openerp.addons.base.ir.ir_actions import ir_actions_report_xml as root
except ImportError:
     # v10
     from odoo.addons.report.models.ir_actions_report_xml import 
ir_actions_report as root

however this does not help much, as later on the module fails complaining that 
ir_actions_report has no attribute _columns.

Is there some documentation to be found, how to tackle such a task?


thanks

and happy holidays ..

robert

Follow-Ups