Can not create a budget

Bug #308643 reported by nel
2
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

When I click on "New" to create a budget (using the module budget), I get a strange form then when I try to save, this error occurs:
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[01]: Traceback (most recent call last):
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[02]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/osv/osv.py", line 85, in execute_cr
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[03]: return getattr(object, method)(cr, uid, *args, **kw)
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[04]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/osv/orm.py", line 1840, in read
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[05]: result = self._read_flat(cr, user, select, fields, context, load)
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[06]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/osv/orm.py", line 1942, in _read_flat
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[07]: res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
[Tue Dec 16 17:08:44 2008] ERROR:web-services:[08]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/osv/fields.py", line 626, in get
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[09]: res = self._fnct(obj, cr, user, ids, name, self._arg, context)
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[10]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/addons/account_budget/crossovered_budget.py", line 181, in _prac
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[11]: res[line.id]=self._prac_amt(cr,uid,[line.id],context=context)[line.id]
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[12]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/addons/account_budget/crossovered_budget.py", line 171, in _prac_amt
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[13]: cr.execute("select sum(amount) from account_analytic_line where account_id=%s and (date between to_date('%s','yyyy-mm-dd') and to_date('%s','yyyy-mm-dd')) and general_account_id in (%s)", (line.analytic_account_id.id,date_from,date_to,acc_ids))
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[14]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/sql_db.py", line 76, in wrapper
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[15]: return f(self, *args, **kwargs)
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[16]: File "/home/nel/terp/trunk_bzr/openobject-server/bin/sql_db.py", line 121, in execute
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[17]: res = self._obj.execute(query, p or None)
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[18]: ProgrammingError: erreur de syntaxe sur ou près de « 2008 »
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[19]: LINE 1: ...e where account_id=14 and (date between to_date(''2008-01-01...
[Tue Dec 16 17:08:45 2008] ERROR:web-services:[20]:

Changed in openobject-addons:
status: New → Fix Released
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.