[v6] error creating budget lines - no account assigned

Bug #663279 reported by Carlos Ch.
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
JMA(Open ERP)

Bug Description

this is with v6 updated on 19/10
module account_budget

when I try to create budget lines (Accounting -> budgets-> budgets) I get this error:
 File "/home/cache/dev/trunk/openobject-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/cache/dev/trunk/openobject-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/cache/dev/trunk/openobject-server/bin/sql_db.py", line 75, in wrapper
    return f(self, *args, **kwargs)
  File "/home/cache/dev/trunk/openobject-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.

It seems like the error is in the _prac_amt function, line 123-125
line.analytic_account_id.id is = false and it should contain the analytic accoutn id....
where do you assign the analytic account in the budget line?

thanx

Related branches

Changed in openobject-addons:
status: New → Confirmed
Changed in openobject-addons:
assignee: nobody → JMA(Open ERP) (jma-openerp)
status: Confirmed → In Progress
Changed in openobject-addons:
milestone: none → 6.0
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks for posting.
It has been fixed by revision 4442 <email address hidden>.

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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