Code Monkey home page Code Monkey logo

Comments (6)

pedrobaeza avatar pedrobaeza commented on August 26, 2024 2

No idea. I suppose tonight. But you should work directly with git to avoid these questions.

from reporting-engine.

pedrobaeza avatar pedrobaeza commented on August 26, 2024 1

Yeah, you're right, see 96ac860

from reporting-engine.

pedrobaeza avatar pedrobaeza commented on August 26, 2024

Update your code. It was fixed in ac3a648

from reporting-engine.

anassahmed avatar anassahmed commented on August 26, 2024

Are you sure that this is really fixed?

I still get this error:

2016-08-23 12:37:09,675 19647 ERROR test openerp.service.report: Exception: type object 'report_xls' has no attribute 'xls_types'
Traceback (most recent call last):
  File "/home/anass/Documents/workspace/odoo/odoo8/openerp/service/report.py", line 93, in go
    result, format = openerp.report.render_report(cr, uid, ids, object, datas, context)
  File "/home/anass/Documents/workspace/odoo/odoo8/openerp/report/__init__.py", line 40, in render_report
    return registry['ir.actions.report.xml'].render_report(cr, uid, ids, name, data, context)
  File "/home/anass/Documents/workspace/odoo/odoo8/openerp/api.py", line 268, in wrapper
    return old_api(self, *args, **kwargs)
  File "/home/anass/Documents/workspace/odoo/odoo8/openerp/addons/base/ir/ir_actions.py", line 156, in render_report
    return new_report.create(cr, uid, res_ids, data, context)
  File "/home/anass/.local/share/Odoo/addons/8.0/report_xls/report_xls.py", line 118, in create
    return self.create_source_xls(cr, uid, ids, data, context)
  File "/home/anass/.local/share/Odoo/addons/8.0/report_xls/report_xls.py", line 148, in create_source_xls
    self.generate_xls_report(_p, _xs, data, objs, wb)
  File "/home/anass/.local/share/Odoo/addons/8.0/account_financial_report_webkit_xls/report/partner_ledger_xls.py", line 78, in generate_xls_report
    row_data = self.xls_row_template(c_specs, [x[0] for x in c_specs])
  File "/home/anass/.local/share/Odoo/addons/8.0/report_xls/report_xls.py", line 213, in xls_row_template
    'write_cell_func': report_xls.xls_types[c[3]]})
AttributeError: type object 'report_xls' has no attribute 'xls_types'

Logically, at least xls_types should be defined inside report_xls class. Except if you have another class that you inherit from and has this property (which is report_sxw, but it doesn't have this property).

I have fixed the issue by adding this variable inside the class:

    xls_types = xls_types

from reporting-engine.

anassahmed avatar anassahmed commented on August 26, 2024

Thanks, @pedrobaeza!
When should this commit be pushed to apps.odoo.com?

from reporting-engine.

anassahmed avatar anassahmed commented on August 26, 2024

I have no issue working with git, but our client has a server that we don't have access to, so we depend entirely on apps.odoo.com!

from reporting-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.