Odoo: [11.0] hr_leaves : Improve access rights of manager/officer

Created on 14 Mar 2018  路  3Comments  路  Source: odoo/odoo

Impacted versions:
V11

Steps to reproduce:
Login as a user with the Leaves > Officer rights and he should be linked to an employee with a different manager / department manger. This user is a manager and he needs the officerrights to approve leaves for his department.
If you create a leave request, you can approve your own leaves. [NOT OK]

Current behavior:
As a officer you can approve your own leaves. This should be only allowed by his manager

Please apply the same logic for the leaves as this one:
https://github.com/odoo/odoo/commit/3f9433228cae53b0cbeba38854286e2cd7f70a2a

11.0 Services

Most helpful comment

Hello,
This is something that we are currently working on in master here (https://github.com/odoo/odoo/pull/19270/files).
Sadly we cannot put this into the stable 11.0 version as it is a change in behaviour and not a bugfix as stated here (https://github.com/odoo/odoo/wiki/Contributing#against-which-version-should-i-submit-a-patch). @mart-e

All 3 comments

@RomainLibert I think this is of interest for you. You did the same logic at hr_expense

Hello,
This is something that we are currently working on in master here (https://github.com/odoo/odoo/pull/19270/files).
Sadly we cannot put this into the stable 11.0 version as it is a change in behaviour and not a bugfix as stated here (https://github.com/odoo/odoo/wiki/Contributing#against-which-version-should-i-submit-a-patch). @mart-e

Thanks, glad it will be solved in the next version.

Was this page helpful?
0 / 5 - 0 ratings