[FIX] hr_holidays: better display of leave counter (opw 605016)
authorMartin Trigaux <mat@openerp.com>
Thu, 8 May 2014 12:49:46 +0000 (14:49 +0200)
committerMartin Trigaux <mat@openerp.com>
Thu, 8 May 2014 12:49:46 +0000 (14:49 +0200)
commitc636fb9dd9be1a70ac9da63b218078c9cff6c704
treefd515100dad70ab4853221d6151a3d4322116ac6
parent133c5033a092845e462b894c0d7739191480c709
[FIX] hr_holidays: better display of leave counter (opw 605016)

The number of leave requests left is based on the employee_id key in the context, when displaying the status of an hr.holidays we don't have the information in the name_get of the hr.holidays.status.
The fallback on the number of employees is done with the uid but we can not rely on it as well as the name_get on m2o field is done with superuser_id.

bzr revid: mat@openerp.com-20140508124946-ttyr84iajg9q6l0y
addons/hr_holidays/hr_holidays.py
addons/hr_holidays/hr_holidays_view.xml