← Back to team overview

openerp-india team mailing list archive

[Bug 1204082] Re: [7.0] bug when creating budget lines

 

here is the stack trace shown in the logs

2013-07-23 12:25:10,500 6752 ERROR vlabus2 openerp.netsvc: Error!
The Budget 'IT' has no accounts!
Traceback (most recent call last):
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\service\web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\osv.py", line 188, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\osv.py", line 131, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\osv.py", line 197, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\osv.py", line 185, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\orm.py", line 3604, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\orm.py", line 3724, in _read_flat
    res2 = self._columns[f].get(cr, self, ids, f, user, context=context, values=res)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\osv\fields.py", line 1133, in get
    result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\addons\account_budget\account_budget.py", line 139, in _prac
    res[line.id] = self._prac_amt(cr, uid, [line.id], context=context)[line.id]
  File "C:\Documents and Settings\BE007199\workspace\openerp_server_7_0_20130715\openerp\addons\account_budget\account_budget.py", line 119, in _prac_amt
    raise osv.except_osv(_('Error!'),_("The Budget '%s' has no accounts!") % str(line.general_budget_id.name))
except_osv: (u'Error!', u"The Budget 'IT' has no accounts!")

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1204082

Title:
  [7.0] bug when creating budget lines

Status in OpenERP Addons (modules):
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1204082/+subscriptions


References