← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 668221] [NEW] Trunk -Budget module is broken

 

Public bug reported:

Installed with only invoicing and account & finance.
Added the standard budget module.

Created a Budget postion on begian account 7100

The tried to create a new budget,
Added one budget line

Try to confirm the bduget :

Environment Information : 
System : Linux-2.6.32-21-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1622 nch@xxxxxxxxxxx-20101015112119-2uvctl0bzh737x48
Traceback (most recent call last):
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/osv.py", line 130, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/orm.py", line 2961, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/orm.py", line 3113, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/fields.py", line 722, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/addons/account_budget/account_budget.py", line 135, in _prac
    res[line.id] = self._prac_amt(cr, uid, [line.id], context=context)[line.id]
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/addons/account_budget/account_budget.py", line 125, in _prac_amt
    "general_account_id=ANY(%s)", (line.analytic_account_id.id, date_from, date_to,acc_ids,))
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/sql_db.py", line 75, in wrapper
    return f(self, *args, **kwargs)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/sql_db.py", line 122, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...mount) FROM account_analytic_line WHERE account_id=false AND...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.


Noter that the buttons print budget etc gives similar error.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
Trunk -Budget module is broken
https://bugs.launchpad.net/bugs/668221
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: New

Bug description:
Installed with only invoicing and account & finance.
Added the standard budget module.

Created a Budget postion on begian account 7100

The tried to create a new budget,
Added one budget line

Try to confirm the bduget :

Environment Information : 
System : Linux-2.6.32-21-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID:	Ubuntu
Description:	Ubuntu 10.04 LTS
Release:	10.04
Codename:	lucid
Operating System Release : 2.6.32-21-generic
Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1622 nch@xxxxxxxxxxx-20101015112119-2uvctl0bzh737x48
Traceback (most recent call last):
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/service/web_services.py", line 586, in dispatch
    res = fn(db, uid, *params)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/osv.py", line 57, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/osv.py", line 140, in execute
    res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/osv.py", line 130, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/orm.py", line 2961, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/orm.py", line 3113, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/osv/fields.py", line 722, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/addons/account_budget/account_budget.py", line 135, in _prac
    res[line.id] = self._prac_amt(cr, uid, [line.id], context=context)[line.id]
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/addons/account_budget/account_budget.py", line 125, in _prac_amt
    "general_account_id=ANY(%s)", (line.analytic_account_id.id, date_from, date_to,acc_ids,))
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/sql_db.py", line 75, in wrapper
    return f(self, *args, **kwargs)
  File "/home/chanon/OPENERP/openerp-TRUNK/server/bin/sql_db.py", line 122, in execute
    res = self._obj.execute(query, params)
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...mount) FROM account_analytic_line WHERE account_id=false AND...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.


Noter that the buttons print budget etc gives similar error.





Follow ups

References