addon hr_payroll no calculate slip with leaves
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
- When I add an absence when the employee will calculate the payroll, the OpenERP sends the above error. The possible reason is that payroll_slip_line is not being linked to an account.
- Traceback
Traceback (most recent call last):
File "/home/
result = ExportService.
File "/home/
res = fn(db, uid, *params)
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.exec_
File "/home/
return wf_service.
File "/home/
res2 = instance.
File "/home/
workitem.
File "/home/
ok = _split_test(cr, workitem, activity[
File "/home/
_join_test(cr, t[0], t[1], ident, stack)
File "/home/
create(
File "/home/
process(cr, res, ident, stack=stack)
File "/home/
result = _execute(cr, workitem, activity, ident, stack)
File "/home/
wkf_
File "/home/
return _eval_expr(cr, ident, workitem, activity['action'])
File "/home/
ret = eval(line, env, nocopy=True)
File "/home/
return eval(test_
File "", line 1, in <module>
File "/home/
return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
File "/home/
line_ids += [movel_
File "/home/
if ('account_id' in vals) and not account_
File "/home/
result = self._read_flat(cr, user, select, fields, context, load)
File "/home/
cr.execute(
File "/home/
return f(self, *args, **kwargs)
File "/home/
res = self._obj.
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ...d FROM "account_account" WHERE account_account.id IN (false)...
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
- Possible solution
add the link between the account and hday slip_line
1227 res = {
1228 'slip_id':slip.id,
1229 'name':
1230 'code':
1231 'amount_
1232 'category_
1233 'sequence'
1234 'account_
1235 'analytic_
1236 }
Hello Fábio Cerqueira
I have checked your issue with latest updated code with stable6 and trunk both but I didn't face any
problem as my end.
Would you please provide us proper steps and video or screen shot so we can reproduce same at our end.
Thanks and waiting for your reply