Can't upload edited reports on OpenOffice to OpenErp V6, cause missing method on report.interface module

Asked by Mario César Señoranis

OpenERP report designer is installed, I can connect and download an existing report, but when I try to upload it to the server, it raises this error on openerp-server:

[2010-10-30 19:12:07,172][test2] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/media/datos/Proyectos/OpenERP/sources6.0/openobject-server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/media/datos/Proyectos/OpenERP/sources6.0/openobject-server/bin/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/media/datos/Proyectos/OpenERP/sources6.0/openobject-server/bin/osv/osv.py", line 130, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/media/datos/Proyectos/OpenERP/sources6.0/openobject-server/bin/addons/base_report_designer/base_report_designer.py", line 60, in upload_report
    interface.register_all(db)
AttributeError: 'module' object has no attribute 'register_all'

Methods and atributes of interface object are:

['__builtins__', '__doc__', '__file__', '__name__', '__package__', 'addons', 'etree', 'netsvc', 'os', 'pooler', 'print_xml', 're', 'render', 'report_int', 'report_rml', 'tools', 'toxml', 'urllib']

on the module report.interface there is no register_all method.

Any clue?

Best Regards

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Mario César Señoranis
Solved:
Last query:
Last reply:
Revision history for this message
Mario César Señoranis (mariocesar) said :
#1

As a workaround I comment the line, and sending report to the server is working

<code>
        db = pooler.get_db_only(cr.dbname)

        #interface.register_all(db)

        return True
</code>

Revision history for this message
Renato Lima - http://www.akretion.com (renatonlima) said :
#2

Hi Mario,

I use report_openoffice in 2 projects and I had the some problem and I fix
this module and create one branch in report_openoffice project, you can get
this branch in: bzr branch
lp:~akretion-team/report-openoffice/report-openoffice-v6.

best regards,

Renato Lima
http://www.akretion.com.br

2010/10/30 Mario César Señoranis <email address hidden>

> Question #131901 on OpenObject Server changed:
> https://answers.launchpad.net/openobject-server/+question/131901
>
> Mario César Señoranis gave more information on the question:
> As a workaround I comment the line, and sending report to the server is
> working
>
> <code>
> db = pooler.get_db_only(cr.dbname)
>
> #interface.register_all(db)
>
> return True
> </code>
>
> --
> You received this question notification because you are a member of
> OpenERP Committers, which is an answer contact for OpenObject Server.
>

Revision history for this message
Mario César Señoranis (mariocesar) said :
#3

Thank you, Renato.

so, Is this a bug?