[7.0] bug when creating budget lines
Bug #1204082 reported by
Houssine
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
Hi,
I've encoured an error while trying to define a budget in OpenERP 7.0 with the latest sources.
To reproduce :
- create a budget
- create a budget line
- for the budget line define a analytical account, amount, dates from/ to, budgetary position(don't assign accounts for budgetary position)
If you forgot to assign accounts to budgetary position saving your line will block your budget. You won't be able anymore to edit it.
You should receive an error but it should allow you to correct or to assign account afterward. So this bug is blocking your are unable to continue creating the budget.
Thanks for you help,
Houssine
Related branches
lp://staging/~openerp-dev/openobject-addons/7.0-opw-595714-chandni
Ready for review
for merging
into
lp://staging/openobject-addons/7.0
- Houssine (community): Approve
- Vinay Rana (OpenERP): Pending requested
- Naresh(OpenERP): Pending requested
- OpenERP Core Team: Pending requested
-
Diff: 33 lines (+2/-3)2 files modifiedaccount_budget/account_budget.py (+1/-2)
account_budget/account_budget_view.xml (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-addons: | |
status: | New → In Progress |
To post a comment you must log in.
here is the stack trace shown in the logs
2013-07-23 12:25:10,500 6752 ERROR vlabus2 openerp.netsvc: Error! BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ netsvc. py", line 292, in dispatch_rpc getService( service_ name).dispatch( method, params) BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ service\ web_services. py", line 626, in dispatch BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\osv. py", line 188, in execute_kw BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\osv. py", line 131, in wrapper BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\osv. py", line 197, in execute BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\osv. py", line 185, in execute_cr BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\orm. py", line 3604, in read BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\orm. py", line 3724, in _read_flat f].get( cr, self, ids, f, user, context=context, values=res) BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ osv\fields. py", line 1133, in get BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ addons\ account_ budget\ account_ budget. py", line 139, in _prac context) [line.id] BE007199\ workspace\ openerp_ server_ 7_0_20130715\ openerp\ addons\ account_ budget\ account_ budget. py", line 119, in _prac_amt osv(_(' Error!' ),_("The Budget '%s' has no accounts!") % str(line. general_ budget_ id.name) )
The Budget 'IT' has no accounts!
Traceback (most recent call last):
File "C:\Documents and Settings\
result = ExportService.
File "C:\Documents and Settings\
res = fn(db, uid, *params)
File "C:\Documents and Settings\
return self.execute(db, uid, obj, method, *args, **kw or {})
File "C:\Documents and Settings\
return f(self, dbname, *args, **kwargs)
File "C:\Documents and Settings\
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "C:\Documents and Settings\
return getattr(object, method)(cr, uid, *args, **kw)
File "C:\Documents and Settings\
result = self._read_flat(cr, user, select, fields, context, load)
File "C:\Documents and Settings\
res2 = self._columns[
File "C:\Documents and Settings\
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "C:\Documents and Settings\
res[line.id] = self._prac_amt(cr, uid, [line.id], context=
File "C:\Documents and Settings\
raise osv.except_
except_osv: (u'Error!', u"The Budget 'IT' has no accounts!")