c2c_budget various printing errors

Bug #427062 reported by Ferdinand
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Camptocamp

Bug Description

branch-server 1858
branch-addons official 2384
branch-addons chricar_5.0_price_unit 2457
trunk-extra-addons 3780

**************************************************
(1) printing of "Budget by periods" fails
**************************************************

Environment Information :
System : Linux-2.6.27.29-0.1-default-x86_64-with-SuSE-11.1-x86_64
OS Name : posix
LSB Version: core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 11.1 (x86_64)
Release: 11.1
Codename: n/a
Operating System Release : 2.6.27.29-0.1-default
Operating System Version : #1 SMP 2009-08-15 17:53:59 +0200
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.0
OpenERP-Client Version : 5.0.5-bzr
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/terp/OpenERP/branch/server/5.0/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/terp/OpenERP/branch/server/5.0/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/terp/OpenERP/branch/server/5.0/bin/service/web_services.py", line 639, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/terp/OpenERP/branch/server/5.0/bin/service/web_services.py", line 619, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/terp/OpenERP/branch/server/5.0/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/terp/OpenERP/branch/server/5.0/bin/wizard/__init__.py", line 117, in execute_cr
    fields[val]['selection'][idx] = (key, trans(val2))
  File "/home/terp/OpenERP/branch/server/5.0/bin/wizard/__init__.py", line 115, in <lambda>
    trans = lambda x: translate(cr, res_name, 'selection', lang, x) or x
  File "/home/terp/OpenERP/branch/server/5.0/bin/tools/translate.py", line 117, in translate
    cr.execute('select value from ir_translation where lang=%s and type=%s and name=%s and src=%s', (lang, source_type, str(name), source))
  File "/home/terp/OpenERP/branch/server/5.0/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/terp/OpenERP/branch/server/5.0/bin/sql_db.py", line 120, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: text = integer
LINE 1: ...on' and name=E'budget.by.periods,init,periods_nbr' and src=1
                                                                     ^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.

**************************************************
2 Printing BUdget Consolidation
**************************************************
Environment Information :
System : Linux-2.6.27.29-0.1-default-x86_64-with-SuSE-11.1-x86_64
OS Name : posix
LSB Version: core-2.0-noarch:core-3.2-noarch:core-2.0-x86_64:core-3.2-x86_64:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 11.1 (x86_64)
Release: 11.1
Codename: n/a
Operating System Release : 2.6.27.29-0.1-default
Operating System Version : #1 SMP 2009-08-15 17:53:59 +0200
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.0
OpenERP-Client Version : 5.0.5-bzr
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/home/terp/OpenERP/branch/server/5.0/bin/service/web_services.py", line 687, in go
    (result, format) = obj.create(cr, uid, ids, datas, context)
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/c2c_reporting_tools/reports/standard_report.py", line 125, in create
    doc = self.get_template(cr, context)
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/c2c_reporting_tools/reports/standard_report.py", line 181, in get_template
    doc.report_name = self.get_template_title(cr, context)
  File "/data/downloads/bzr/branch/server/5.0/bin/addons/c2c_budget/report/budget_consolidation.py", line 46, in get_template_title
    return _("Budget Consolidation")
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/c2c_reporting_tools/translation.py", line 62, in __call__
    result = tools.translate(cr, None, filename, 'code', lang, source) or source
TypeError: translate() takes at most 5 arguments (6 given)

Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

Hi !

Thanks to report the bug :) ! We currently are too busy to fix that immediatly... Too much work on customers projects, which is good news at least...

So, we're not able to fix it within the next weeks, I hope we'll have more time in end of october.

Regards,

Joël

Changed in openobject-addons:
status: New → Confirmed
assignee: nobody → Camptocamp (c2c)
Changed in openobject-addons:
status: Confirmed → Fix Released
milestone: none → 5.0.7
Revision history for this message
Ferdinand (office-chricar) wrote :

Hello Joël!
Is it fixed in "stable_5.0-extra-addons" ?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.