Commit Graph
67 Commits
Author SHA1 Message Date
Dipali Tank 00f90a70ed [IMP] *: holidays -> leaves
The meaning of "holidays" may vary in the UK/US.
2017-08-08 11:53:03 +02:00
Yannick Tivisse bf1bfb06fe [FIX] hr_holidays: Allow a employee to reset to draft his own leaves
If a leave request is refused by the manager, the button reset to draft is displayed, but the employee cannot use it because he doesn't have the write access rights on his own leave requests

In 'refuse' state, all the form is readonly, but the employee should be have to reset his own leave to draft to modify it and re-submit it.
2016-09-20 12:01:53 +02:00
Yannick Tivisse 7fa2691175 [IMP] hr_*: Split the HR access rights by application
PURPOSE
=======

For each and every Hr application there should be one user category (One app = one category).

SPECIFICATION
=============

HR remains as it is : Employee, Officer, Manager

Each Application should have 2 access rights: User and Manager. Example for Recruitment:
- The user has access to the recruitment process
- The manager has access to the job position configuration

Each Application should grant the employee user access right (Namely the 'HR Officer')
2016-09-06 14:35:09 +02:00
Martin Trigaux 11812b0b9e [FIX] all: remove external ids fakely from base
Several modules defines records with the external ID `base.foo_bar` while it is
created inside this module (typically menus and groups).
While there is no technical reasons to do so but this may introduce issues:

- these records will not be deleted during uninstall
- if a language is loaded before the installation of the module, it won't be
  translated

The uninstallation will only remove the records with an external id linked to
this module (these would only be removed when removing base).

Installing a language before the module will drop the translations not linked
to an existing external id (as it can not be resolved).

This commit correct all the external ids tagged as from base or other incorrect
modules.
2016-09-02 16:14:26 +02:00
Ravi Gohil 46bc624479 [IMP] hr_holidays: a few code improvements
- added encoding to xml files
- replace search_read() with search() for _search_absent_employee()
- fixed setting first date of current month as default value for wizards
- reduce calls to <dict>.get()
2016-06-15 09:47:10 +02:00
Ravi Gohil 46ccb7036f [MIG] hr_holidays : migration to new api 2016-06-07 16:34:54 +02:00
Ravi Gohil ea2e476606 [MOV] hr_holidays: reorganize module directory
Also,
- removed unused hr_bel_holidays_2008.xml file
- removed unused action with xml_id 'act_hr_employee_holiday_request_approved' from hr_holidays_views.xml
2016-06-07 16:34:54 +02:00
Mohammed Shekha 783f246bde [IMP] hr_holidays: user reads only own leaves
In order to avoid all users being able to see leaves from everyone
the record rule is updated so that users see only their own leaves.

Code computing leave on employee record now uses super user to compute
it to ensure the current status of an employee is visible to other
employees.

Dashboard menus is now restricted to group hr_manager.
2016-03-04 14:57:48 +01:00
Bhavik Bagadiya d5ded74137 [IMP] hr_holidays: usability improvements
- New calendar dashboard with the leaves of every employee
- New "Leaves to Approve" menu with to-approve department leaves
- Renamed and reorder menus

Odoo Task 12913
Closes #7292
2015-09-07 18:28:09 +02:00
Christophe Simonis b67eb530b0 [FIX] hr_holidays: remove now invalid xml attribute "model" (introduced by last forward-port) 2014-08-28 17:17:10 +02:00
Christophe Simonis ada9724655 [MERGE] forward port of branch 7.0 up to 3509e15 2014-08-28 16:12:55 +02:00
Denis Ledoux 9b3f3fecfe [FIX] hr_holidays: employees cannot approve their holidays
Nor modify once approved

It wasn't possible for employees to approve their holidays themself, thanks to the GUI, but this was possible through xmlrpc calls, or when altering the html directly in the browser.
Besides, this was also possible to edit the holiday through the same trick once the holiday validated
2014-08-25 14:51:03 +02:00
jke-openerp 46b0c7aa00 [REF] Rename model crm.meeting into calendar.event
Remove 2 unsused field from calendar.event model (dir,sequence)

bzr revid: jke@openerp.com-20140115093805-1g1j1oymyxsb6kgh
2014-01-15 10:38:05 +01:00
jke-openerp eeb4e9629f [TYPO] Replace base_calendar to calendar in csv security
bzr revid: jke@openerp.com-20131219160620-kcjrqv0uald99qqe
2013-12-19 17:06:20 +01:00
jke-openerp b4af563c5e [FIX] Add right in security of hr_holidays to allow hr user to delete attendee
bzr revid: jke@openerp.com-20131126190610-ow8qwiajddi7gvdy
2013-11-26 20:06:10 +01:00
Martin Trigaux 5e051e9484 [FIX] resource: better access rights
bzr revid: mat@openerp.com-20130911142549-cpzg8588ol31b8k1
2013-09-11 16:25:49 +02:00
Thibault Delavallée 08b0784e76 [IMP] hr_holidays:
- added a workflow transition from refuse to draft, to allow resetting
a refused request
- resetting is now based on a can_reset field, taht is based on whether
it is my own request or I am an hr manager
- added an access right on crm_meeting that was preventing hr officers
to validate some requests
- improved form view to show reset to draft button accordingly
- added tests that helped trigerred the various bugs and improvements

bzr revid: tde@openerp.com-20130809144752-o21pjbc56o0t8fym
2013-08-09 16:47:52 +02:00
Xavier Morel 7a2d912964 [REM] bunch of nonsensical @model + @ref
bzr revid: xmo@openerp.com-20130429124333-p1h11fpy04y3sljy
2013-04-29 14:43:33 +02:00
Quentin (OpenERP) fc8855fa74 [MERGE] merged branch with leave request improvements
bzr revid: qdp-launchpad@openerp.com-20120831144244-40apxljf6juyv3nv
2012-08-31 16:42:44 +02:00
Meera Trambadia fb61582548 [IMP]: changed ir.rule for HR/Officer to see all Leave/Allocation request
bzr revid: mtr@tinyerp.com-20120807102905-bws5jn24hy9ucjnh
2012-08-07 15:59:05 +05:30
Meera Trambadia dbcd304455 [IMP]:changed the id,name from 'manager' to 'user'
bzr revid: mtr@tinyerp.com-20120731103215-vc0wx0kiy7d8x6ka
2012-07-31 16:02:15 +05:30
Meera Trambadia f16696174f [MERGE]: branch merged with lp:openobject-addons
bzr revid: mtr@tinyerp.com-20120731070125-n8mza516sbpta515
2012-07-31 12:31:25 +05:30
Meera Trambadia 21df649697 [IMP]:improved access rights and added ir.rule for HR/Officer
bzr revid: mtr@tinyerp.com-20120726123517-l9gc3tn9efl8wwep
2012-07-26 18:05:17 +05:30
Stephane Wirtel e3c2297d43 [FIX] hr_holidays: security fix in the rights
bzr revid: stw@openerp.com-20120726114321-xx4j4acudjmgeoe6
2012-07-26 13:43:21 +02:00
DBR (OpenERP) 5c55b2918c [IMP]hr_holiday: Set ir_rules for employee
bzr revid: dbr@tinyerp.com-20120710133127-xfjlf1qpj1pol2dx
2012-07-10 19:01:27 +05:30
DBR (OpenERP) f08d7c254b [IMP]hr_holidays:remove record rules
bzr revid: dbr@tinyerp.com-20120509101248-yu48ybdqsuu8fgiz
2012-05-09 15:42:48 +05:30
Fabien Pinckaers f27318c8af [IMP] Security Rule: removed duplicates due to inheritancies of groups
bzr revid: fp@tinyerp.com-20111212181113-mhnnbps3ip8ls6pp
2011-12-12 19:11:13 +01:00
Ujjvala Collins (OpenERP) 060b488478 [FIX] hr_xxx: Improved record rules for HR Officer to give him rights to see timesheet, attendance, expense and holidays of other users.
lp bug: https://launchpad.net/bugs/856422 fixed

bzr revid: uco@tinyerp.com-20110929092802-ohpa8xt6at02h449
2011-09-29 14:58:02 +05:30
psi (Open ERP) bf9943488e [FIX, IMP] hr_holidays: manager user not get hr request send by employee(Improve my last commit)
lp bug: https://launchpad.net/bugs/716271 fixed

bzr revid: psi@tinyerp.co.in-20110211113649-nt4yqs57agralwjr
2011-02-11 17:06:49 +05:30
psi (Open ERP) e365a48c77 [FIX] hr_holidays: manager user not get hr request send by employee
lp bug: https://launchpad.net/bugs/716271 fixed

bzr revid: psi@tinyerp.co.in-20110211100804-ppf51573o389zpmy
2011-02-11 15:38:04 +05:30
Mustufa Rangwala 2f09faba42 [MERGE] an employee shouldn't be able to see expenses and holidays of others employee
bzr revid: mra@mra-laptop-20110117102556-evp00eqczxuy5l5z
2011-01-17 15:55:56 +05:30
mtr 028530f9eb [FIX] hr_attendance,hr_expense,hr_holidays: added 'ir.rule' for group 'Employee'
lp bug: https://launchpad.net/bugs/702805 fixed

bzr revid: mtr@mtr-20110117084537-jrsy3wg68io8z8e8
2011-01-17 14:15:37 +05:30
husen f433b959c2 merged with trunk
bzr revid: husen@husen-laptop-20101230095809-cl6dkve1odgdtqtv
2010-12-30 15:28:09 +05:30
Fabien Pinckaers 65b33b9489 [FIX] Cleaning hr holidays reporting and dashbaords
bzr revid: fp@tinyerp.com-20101229165130-jfr2h23jo7mrjqzu
2010-12-29 17:51:30 +01:00
François Degrave 50cf154537 [IMP] HR employee dashboard in webclient
bzr revid: fde@openerp.com-20101229143849-03lpmdpu5fkc6e86
2010-12-29 15:38:49 +01:00
François Degrave e678fd472a [IMP] access rights, menus for HR
bzr revid: fde@openerp.com-20101228153417-ps9ql3h4lij87jx8
2010-12-28 16:34:17 +01:00
Fabien Pinckaers 1b69a14e74 fixes
bzr revid: fp@tinyerp.com-20101018143305-mw79ewcj4q0t8t17
2010-10-18 16:33:05 +02:00
Fabien Pinckaers 37680303df [IMP] ir.rule reviewed
bzr revid: fp@tinyerp.com-20101018092840-7a6wv2vw2s6a1a2s
2010-10-18 11:28:40 +02:00
AMP (OpenERP) b77cad685a [MOD/IMP] hr_holidays : Remove Leave Analysis report and changes in view file
bzr revid: amp@tinyerp.com-20101013132317-do4ylbfso07qdc66
2010-10-13 18:53:17 +05:30
DBR (OpenERP) 389a623545 [MOD/IMP] hr_* : Usability Improvement in Accessrights
bzr revid: dbr@tinyerp.com-20101007071157-z52414z1sz9h85qh
2010-10-07 12:41:57 +05:30
DBR (OpenERP) a74c490c6d [MOD/IMP] hr_holidays : Usability Improvement in Accessrights
bzr revid: dbr@tinyerp.com-20101006135154-oovxhs611nk4tzso
2010-10-06 19:21:54 +05:30
AMP (OpenERP) 746c238fde [MOD/IMP]hr_* : Usability Improvement in Dashboards
bzr revid: amp@tinyerp.com-20100923071913-32cv0gf0l2r61s0x
2010-09-23 12:49:13 +05:30
AMP (OpenERP) a640ecc89e [IMP]hr_holidays : Usability improvement in grops
bzr revid: amp@tinyerp.com-20100922062331-gchm37fo6oq60wgz
2010-09-22 11:53:31 +05:30
Vir (Open ERP) 1e9167f9a9 [IMP] hr_* : Usability improvements
bzr revid: vir@tinyerp.com-20100922053937-5gah2r12uvewy210
2010-09-22 11:09:37 +05:30
AMP (OpenERP) 3076f2e33a [MOD]hr_*: usability improvement in access rights
bzr revid: amp@tinyerp.com-20100913131824-1au2kx7na9czsh4z
2010-09-13 18:48:24 +05:30
AMP (OpenERP) 0a8c9772b6 [MOD]hr_* : usability improvement in employee access rights
bzr revid: amp@tinyerp.com-20100906063006-gcuxdswiunwokvn4
2010-09-06 12:00:06 +05:30
AMP (OpenERP) 1d15f71146 [MOD] project_timesheet,hr_* : usability improvement in access rights
bzr revid: amp@tinyerp.com-20100901132905-hslnywxf4zxogxdo
2010-09-01 18:59:05 +05:30
AMP(Open ERP) aff16ab9a5 [MOD/IMP] hr_* : Improvement in access rights
bzr revid: vir@tinyerp.com-20100813133645-w8nex9k1he2zjq9h
2010-08-13 19:06:45 +05:30
DBR (OpenERP) 5f4d7ff09b [MOD/IMP]hr_* modules access right changes in configuration
bzr revid: dbr@tinyerp.com-20100804133252-vh4vbkhmvsev0pnw
2010-08-04 19:02:52 +05:30
DBR (OpenERP) 9261375e2e [MOD/IMP]hr_* modules access right changes
bzr revid: dbr@tinyerp.com-20100804085628-58nplf4yw8zp80dj
2010-08-04 14:26:28 +05:30