[trunk] hr_holidays: Can not refuse leave if its category is "by employee category"

Bug #731795 reported by Mustufa Rangwala (Open ERP)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Error:

  File "/home/mra/rdtools/addons/trunk-payroll-salary_rules-mtr/hr_holidays/hr_holidays.py", line 298, in holidays_cancel
    wf_service.trg_validate(uid, 'hr.holidays', id, 'cancel', cr)
  File "/home/mra/rdtools/server/trunk/openerp/workflow/wkf_service.py", line 78, in trg_validate
    cr.execute('select id from wkf_instance where res_id=%s and res_type=%s and state=%s', (res_id, res_type, 'active'))
  File "/home/mra/rdtools/server/trunk/openerp/sql_db.py", line 78, in wrapper
    return f(self, *args, **kwargs)
  File "/home/mra/rdtools/server/trunk/openerp/sql_db.py", line 131, in execute
    res = self._obj.execute(query, params)
ProgrammingError: can't adapt

Thank you,
mra

Related branches

Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Ashvin Rathod (OpenERP) (ara-tinyerp) wrote :

Hello Mustufa Rangwala,

Its fixed in lp:~openerp-dev/openobject-addons/trunk-bug-731795-ara branch. It will be merged soon with trunk addons.

Revision ID: <email address hidden>
Revision No: 4504

Thanks,
ara

Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.