You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[FIX] hr,sale,project(_timesheet)_holidays: improve the user/validation errors
Purpose of the commit is, User/validation errors are sometimes not
correct in English and/or quite obscure and don't help the user
understand/solve the issue. so some copywriting should help make
the experience better.
So in this commit, re-word the several validation and usererror message
and als make the timesheet_task_id field required when the
timesheet_project_id field is set,
closesodoo#70796
Taskid: 2513067
Related: odoo/enterprise#18386
Signed-off-by: LTU-Odoo <IT-Ideas@users.noreply.github.com>
Copy file name to clipboardExpand all lines: addons/project_timesheet_holidays/models/hr_holidays.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ def _default_task_id(self):
21
21
help="If checked, when validating a time off, timesheet will be generated in the Vacation Project of the company.")
22
22
timesheet_project_id=fields.Many2one('project.project', string="Project", default=_default_project_id, domain="[('company_id', '=', company_id)]", help="The project will contain the timesheet generated when a time off is validated.")
23
23
timesheet_task_id=fields.Many2one(
24
-
'project.task', string="Task for timesheet", compute='_compute_timesheet_task_id',
0 commit comments