Displaying a Contract fails when Salary Structure is not set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ACF OpenERP customization |
Fix Committed
|
Critical
|
Robajz.info |
Bug Description
The following error is thrown when Salary Structure is null (not set). The default OpenERP view makes the Salary Structure field mandatory, though this is not so in the data model.
The customization made this field optional in the view and this exposed an underlying problem.
This is at revision 22 of acf_custom.
Server Traceback (most recent call last):
File "/usr/lib/
result = openerp.
File "/usr/lib/
result = ExportService.
File "/usr/lib/
res = fn(db, uid, *params)
File "/usr/lib/
return self.execute(db, uid, obj, method, *args, **kw or {})
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/
res2 = self._columns[
File "/usr/lib/
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/usr/lib/
structure_ids = contract_
File "/usr/lib/
return list(set(
File "/usr/lib/
if struct.parent_id:
File "/usr/lib/
return self[name]
File "/usr/lib/
field_values = self._table.
File "/usr/lib/
result = self._read_flat(cr, user, select, fields, context, load)
File "/usr/lib/
cr.
File "/usr/lib/
return f(self, *args, **kwargs)
File "/usr/lib/
res = self._obj.
ProgrammingError: operator does not exist: integer = boolean
LINE 1: ..._payroll_
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Changed in acf-openerp-custom-main: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → Robajz.info (robert-sevcik) |
milestone: | none → 1.0 |
Fixed in revision 23 - http:// bazaar. launchpad. net/~acf- custom- openerp/ acf-openerp- custom- main/trunk/ revision/ 23
The original method to retrieve salary structures has been overridden and modified to allow contracts without salary structures.