← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 862218] Re: when tried to cancel Employee payslip

 

fix released in revision 5315. Beware that the patch is slightly
different that the one proposed above.

Thanks,
Quentin

** Changed in: openobject-addons
       Status: Fix Committed => Fix Released

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

Title:
  when tried to cancel Employee payslip

Status in OpenERP Addons (modules):
  Fix Released

Bug description:
  HR > payroll > Employee payslip > cancel(Button)
      #(when payroll accounting is installed)

  Traceback (most recent call last):
    File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 119, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 193, in exec_workflow
      res = self.exec_workflow_cr(cr, uid, obj, method, *args)
    File "/home/han/rdtool/server/trunk/openerp/osv/osv.py", line 186, in exec_workflow_cr
      return wf_service.trg_validate(uid, obj, args[0], method, cr)
    File "/home/han/rdtool/server/trunk/openerp/workflow/wkf_service.py", line 124, in trg_validate
      res2 = instance.validate(cr, id, ident, signal)
    File "/home/han/rdtool/server/trunk/openerp/workflow/instance.py", line 48, in validate
      workitem.process(cr, witem, ident, signal, force_running, stack=stack)
    File "/home/han/rdtool/server/trunk/openerp/workflow/workitem.py", line 61, in process
      ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
    File "/home/han/rdtool/server/trunk/openerp/workflow/workitem.py", line 174, in _split_test
      _join_test(cr, t[0], t[1], ident, stack)
    File "/home/han/rdtool/server/trunk/openerp/workflow/workitem.py", line 182, in _join_test
      create(cr,[activity], inst_id, ident, stack)
    File "/home/han/rdtool/server/trunk/openerp/workflow/workitem.py", line 41, in create
      process(cr, res, ident, stack=stack)
    File "/home/han/rdtool/server/trunk/openerp/workflow/workitem.py", line 53, in process
      result = _execute(cr, workitem, activity, ident, stack)
    File "/home/han/rdtool/server/trunk/openerp/workflow/workitem.py", line 107, in _execute
      wkf_expr.execute(cr, ident, workitem, activity)
    File "/home/han/rdtool/server/trunk/openerp/workflow/wkf_expr.py", line 68, in execute
      return _eval_expr(cr, ident, workitem, activity['action'])
    File "/home/han/rdtool/server/trunk/openerp/workflow/wkf_expr.py", line 58, in _eval_expr
      ret = eval(line, env, nocopy=True)
    File "/home/han/rdtool/server/trunk/openerp/tools/safe_eval.py", line 286, in safe_eval
      return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
    File "", line 1, in <module>
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 344, in function_proxy
      return attr(self._cr, self._uid, [self._id], *args, **kwargs)
    File "/home/han/rdtool/addons/trunk/hr_payroll_account/hr_payroll_account.py", line 66, in cancel_sheet
      move_pool.unlink(cr, uid, move_ids, context=context)
    File "/home/han/rdtool/addons/trunk/account/account.py", line 1325, in unlink
      for move in self.browse(cr, uid, ids, context=context):
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 4015, in browse
      return self._list_class([browse_record(cr, uid, id, self, cache, context=context, list_class=self._list_class, fields_process=fields_process) for id in select], context=context)
    File "/home/han/rdtool/server/trunk/openerp/osv/orm.py", line 317, in __init__
      raise BrowseRecordError(_('Wrong ID for the browse record, got %r, expected an integer.') % (id,))
  BrowseRecordError: Wrong ID for the browse record, got False, expected an integer.

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