Giter Site home page Giter Site logo

account_financial_report_webkit 7.0: TypeError: translate_call() takes exactly 2 arguments (3 given) about account-financial-reporting HOT 10 CLOSED

akhayyat avatar akhayyat commented on August 19, 2024
account_financial_report_webkit 7.0: TypeError: translate_call() takes exactly 2 arguments (3 given)

from account-financial-reporting.

Comments (10)

sbidoul avatar sbidoul commented on August 19, 2024

This issue happened at some point because a version mismatch.

Please make sure you have the latest version of openerp 7.0 from github as well as the latest 7.0 branch of OCA/account_financial_report.

from account-financial-reporting.

akhayyat avatar akhayyat commented on August 19, 2024

The current github 7.0 branch does solve the problem indeed. However, the Debian packages provided by OpenERP/Odoo stop at 7.0-20141004.

Does this mean that I cannot use this module with a deb-packaged version of OpenERP 7.0?

from account-financial-reporting.

sbidoul avatar sbidoul commented on August 19, 2024

That is weird because 20141004 is today, so it should be the latest.

from account-financial-reporting.

akhayyat avatar akhayyat commented on August 19, 2024

It is weird, because they started getting produced again starting at 20141003! The latest version before that is 20140804. My bad for not checking what I was typing!

from account-financial-reporting.

vishpepala avatar vishpepala commented on August 19, 2024

I am already using the old version 7.0-20131230-002457. Now I have to use this module. I cannot change entire code since I have modified a lot. Can you please explain what are the exact files I have to replace?
Please guide me.

from account-financial-reporting.

vishpepala avatar vishpepala commented on August 19, 2024

I just replaced "account_financial_report_webkit" module with your latest module from github. Still issue persist. Please help.

from account-financial-reporting.

RoelAdriaans avatar RoelAdriaans commented on August 19, 2024

@vishpepala you can replace the file addons/addons/report_webkit/webkit_report.py and restart openerp. That might fix the issue. Just had the same problem, and replacing only that module worked.

from account-financial-reporting.

vishpepala avatar vishpepala commented on August 19, 2024

@RoelAdriaans-B-informed Thank you very much. I will try this first thing in the morning and update you. Tons of thanks again. :-)

from account-financial-reporting.

ashwin-raj avatar ashwin-raj commented on August 19, 2024

Hi Guys,
I also have the same issue. I replaced the webkit_report.py file. still the issue is coming. Currently I am using python 2.7. May I know how to resolve the problem.

from account-financial-reporting.

ashwin-raj avatar ashwin-raj commented on August 19, 2024

My error message is,
{"message": "OpenERP Server Error", "code": 200, "data": {"debug": "Server \nClient Traceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/openerp/addons/web/http.py", line 285, in dispatch\n r = method(self, *_self.params)\n File "/usr/lib/python2.7/dist-packages/openerp/addons/web_pdf_preview/controllers/init.py", line 31, in index\n result = super(WebPdfReports, self).index(req, action, token)\n File "/usr/lib/python2.7/dist-packages/openerp/addons/web/controllers/main.py", line 1769, in index\n req.session._db, req.session._uid, req.session._password, report_id)\n File "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 30, in proxy_method\n result = self.session.send(self.service_name, method, *args)\n File "/usr/lib/python2.7/dist-packages/openerp/addons/web/session.py", line 91, in send\n raise xmlrpclib.Fault(code_string % (e.name, e.value), '')\nFault: <Fault warning -- Webkit render\n\n\n\nTraceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/openerp/addons/account_financial_report_webkit/report/webkit_parser_header_fix.py", line 228, in create_single_pdf\n \n File "/usr/lib/python2.7/dist-packages/mako/template.py", line 443, in render\n return runtime.render(self, self.callable, args, data)\n File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 807, in _render\n *_kwargs_for_callable(callable, data))\n File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context\n _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in exec_template\n callable(context, _args, *kwargs)\n File "memory:0x7f01b9ceecd0", line 33, in render_body\n <div class="act_as_cell">${('Chart of Account')}</div>\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n: ''>\n", "fault_code": "warning -- Webkit render\n\n\n\nTraceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/openerp/addons/account_financial_report_webkit/report/webkit_parser_header_fix.py", line 228, in create_single_pdf\n \n File "/usr/lib/python2.7/dist-packages/mako/template.py", line 443, in render\n return runtime.render(self, self.callable, args, data)\n File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 807, in _render\n **kwargs_for_callable(callable, data))\n File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 839, in _render_context\n _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)\n File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 865, in exec_template\n callable(context, _args, *kwargs)\n File "memory:0x7f01b9ceecd0", line 33, in render_body\n <div class="act_as_cell">${('Chart of Account')}</div>\nTypeError: translate_call() takes exactly 2 arguments (3 given)\n", "type": "server_exception"}}

from account-financial-reporting.

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.