From e9dcf8a38c600b6b0fa17fc686a96b54998d377b Mon Sep 17 00:00:00 2001 From: Geoffroy Larue Date: Mon, 15 Apr 2019 13:51:22 +0000 Subject: [PATCH] [IMP] sale_timesheet, hr_timesheet: usability Improve labelling and design in timesheet settings view. Task-1967574 --- addons/hr_timesheet/models/project.py | 2 +- .../hr_timesheet/views/res_config_settings_views.xml | 12 ++++++------ .../views/res_config_settings_views.xml | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/addons/hr_timesheet/models/project.py b/addons/hr_timesheet/models/project.py index 9a554313cca..3e7a5fc3668 100644 --- a/addons/hr_timesheet/models/project.py +++ b/addons/hr_timesheet/models/project.py @@ -144,7 +144,7 @@ class Task(models.Model): def write(self, values): # a timesheet must have an analytic account (and a project) if 'project_id' in values and self and not values.get('project_id'): - raise UserError(_('This task must be part of a project because they some timesheets are linked to it.')) + raise UserError(_('This task must be part of a project because there are some timesheets linked to it.')) return super(Task, self).write(values) @api.model diff --git a/addons/hr_timesheet/views/res_config_settings_views.xml b/addons/hr_timesheet/views/res_config_settings_views.xml index 6588b0b2d14..ef7e4f9a401 100644 --- a/addons/hr_timesheet/views/res_config_settings_views.xml +++ b/addons/hr_timesheet/views/res_config_settings_views.xml @@ -30,12 +30,12 @@
- Set time unit used to record your timesheets + Set the time unit used to record your timesheets
- +
@@ -47,23 +47,23 @@