-
- Downloads
[FIX] hr_timesheet: avoid setting an archived employee to a timesheet in the form view
Steps to reproduce:
- Install timesheet
- Archive an employee
- Create a timesheet
Current behavior:
You can select the archived employee
Expected behavior:
You can not select the archived employee
Explanation:
In commit 17b2b07e76121ebb0be16637bf4082e457c2ac63 the employee_id
field of the timesheet was set to have context active_test to false.
To fix this issue we reset the context for this field in every
timesheet form and we add user errors if the employee is not active
while the timesheet is created or edited.
backport of odoo/odoo#94308
opw-2887727
opw-2870739
closes odoo/odoo#97760
Related: odoo/enterprise#30271
Signed-off-by:
Nasreddin Boulif (bon) <bon@odoo.com>
Showing
- addons/hr_timesheet/i18n/hr_timesheet.pot 12 additions, 0 deletionsaddons/hr_timesheet/i18n/hr_timesheet.pot
- addons/hr_timesheet/models/hr_timesheet.py 10 additions, 2 deletionsaddons/hr_timesheet/models/hr_timesheet.py
- addons/hr_timesheet/tests/test_timesheet.py 20 additions, 0 deletionsaddons/hr_timesheet/tests/test_timesheet.py
- addons/hr_timesheet/views/hr_timesheet_views.xml 2 additions, 1 deletionaddons/hr_timesheet/views/hr_timesheet_views.xml
- addons/hr_timesheet/views/project_views.xml 3 additions, 3 deletionsaddons/hr_timesheet/views/project_views.xml
- addons/l10n_ar_website_sale/static/tests/tours/website_sale_buy.js 47 additions, 0 deletions...0n_ar_website_sale/static/tests/tours/website_sale_buy.js
- addons/l10n_ar_website_sale/static/tests/tours/website_sale_complete_flow.js 19 additions, 0 deletions...ite_sale/static/tests/tours/website_sale_complete_flow.js
Loading
Please register or sign in to comment