From d36f23bbf31e510beab5a288f51ae78b975875d2 Mon Sep 17 00:00:00 2001 From: Kacper Gasior Date: Thu, 9 Nov 2023 09:32:44 +0000 Subject: [PATCH] [IMP] hr: add missing helpers Change adds missing helpers and alters some of their messages in differents parts of HR apps. task-3522163 closes odoo/odoo#145268 X-original-commit: a2238763d4fad99da69a96104adf26b6d8eca938 Related: odoo/enterprise#52261 Signed-off-by: Bertrand Dossogne (bedo) --- addons/hr/i18n/hr.pot | 22 +++++++++---------- addons/hr/views/hr_contract_type_views.xml | 5 +++++ addons/hr/views/hr_work_location_views.xml | 5 +---- addons/hr_contract/i18n/hr_contract.pot | 10 +++++++++ .../hr_contract_history_report_views.xml | 5 +++++ addons/hr_holidays/i18n/hr_holidays.pot | 18 +++++++++++++++ .../hr_holidays/report/hr_leave_reports.xml | 5 +++++ addons/hr_holidays/views/hr_leave_views.xml | 4 ++-- .../hr_holidays/views/mail_activity_views.xml | 8 +++++++ addons/hr_recruitment/i18n/hr_recruitment.pot | 12 ++++++++++ .../views/mail_activity_views.xml | 8 +++++++ addons/hr_work_entry/i18n/hr_work_entry.pot | 17 ++++++++++++++ .../views/hr_work_entry_views.xml | 13 +++++++++++ 13 files changed, 114 insertions(+), 18 deletions(-) diff --git a/addons/hr/i18n/hr.pot b/addons/hr/i18n/hr.pot index 6b4f63006f2..74ab3a3643c 100644 --- a/addons/hr/i18n/hr.pot +++ b/addons/hr/i18n/hr.pot @@ -856,6 +856,16 @@ msgstr "" msgid "Create a new department" msgstr "" +#. module: hr +#: model_terms:ir.actions.act_window,help:hr.hr_contract_type_action +msgid "Create a new employment type" +msgstr "" + +#. module: hr +#: model_terms:ir.actions.act_window,help:hr.hr_work_location_action +msgid "Create a new work location" +msgstr "" + #. module: hr #: model_terms:hr.job,website_description:hr.job_ceo #: model_terms:hr.job,website_description:hr.job_consultant @@ -2046,11 +2056,6 @@ msgstr "" msgid "No Tags found ! Let's create one" msgstr "" -#. module: hr -#: model_terms:ir.actions.act_window,help:hr.hr_work_location_action -msgid "No Work Locations found ! Let's create one" -msgstr "" - #. module: hr #: model_terms:hr.job,website_description:hr.job_ceo #: model_terms:hr.job,website_description:hr.job_consultant @@ -3270,13 +3275,6 @@ msgstr "" msgid "Work Locations" msgstr "" -#. module: hr -#: model_terms:ir.actions.act_window,help:hr.hr_work_location_action -msgid "" -"Work Locations are used to define more precisely where your employee is " -"located everyday." -msgstr "" - #. module: hr #: model:ir.model.fields,field_description:hr.field_hr_employee__mobile_phone #: model:ir.model.fields,field_description:hr.field_hr_employee_base__mobile_phone diff --git a/addons/hr/views/hr_contract_type_views.xml b/addons/hr/views/hr_contract_type_views.xml index 9c8bc36462b..33bd58d1bb8 100644 --- a/addons/hr/views/hr_contract_type_views.xml +++ b/addons/hr/views/hr_contract_type_views.xml @@ -32,6 +32,11 @@ Employment Types hr.contract.type tree + +

+ Create a new employment type +

+
diff --git a/addons/hr/views/hr_work_location_views.xml b/addons/hr/views/hr_work_location_views.xml index 90a2f10b0c1..78e7a990a96 100644 --- a/addons/hr/views/hr_work_location_views.xml +++ b/addons/hr/views/hr_work_location_views.xml @@ -43,10 +43,7 @@ tree,form

- No Work Locations found ! Let's create one -

-

- Work Locations are used to define more precisely where your employee is located everyday. + Create a new work location

diff --git a/addons/hr_contract/i18n/hr_contract.pot b/addons/hr_contract/i18n/hr_contract.pot index 6d7c442a62b..1c587d69180 100644 --- a/addons/hr_contract/i18n/hr_contract.pot +++ b/addons/hr_contract/i18n/hr_contract.pot @@ -736,6 +736,16 @@ msgstr "" msgid "No Contracts" msgstr "" +#. module: hr_contract +#: model_terms:ir.actions.act_window,help:hr_contract.hr_contract_history_view_list_action +msgid "No data to display" +msgstr "" + +#. module: hr_contract +#: model_terms:ir.ui.view,arch_db:hr_contract.hr_contract_view_search +msgid "Not Running" +msgstr "" + #. module: hr_contract #: model:ir.model.fields.selection,name:hr_contract.selection__hr_contract_history__under_contract_state__blocked msgid "Not Under Contract" diff --git a/addons/hr_contract/report/hr_contract_history_report_views.xml b/addons/hr_contract/report/hr_contract_history_report_views.xml index e6c7cd0b4b3..9004434ba20 100644 --- a/addons/hr_contract/report/hr_contract_history_report_views.xml +++ b/addons/hr_contract/report/hr_contract_history_report_views.xml @@ -121,6 +121,11 @@ 'search_default_group_by_state': 1 } + +

+ No data to display +

+
Contracts to Review diff --git a/addons/hr_holidays/i18n/hr_holidays.pot b/addons/hr_holidays/i18n/hr_holidays.pot index c9b524ef812..133a61b2b4a 100644 --- a/addons/hr_holidays/i18n/hr_holidays.pot +++ b/addons/hr_holidays/i18n/hr_holidays.pot @@ -2759,6 +2759,12 @@ msgstr "" #. module: hr_holidays #: model_terms:ir.actions.act_window,help:hr_holidays.act_hr_employee_holiday_type #: model_terms:ir.actions.act_window,help:hr_holidays.action_hr_available_holidays_report +#: model_terms:ir.actions.act_window,help:hr_holidays.mail_activity_type_action_config_hr_holidays +#: model_terms:ir.actions.server,help:hr_holidays.act_hr_employee_holiday_request +msgid "No data to display" +msgstr "" + +#. module: hr_holidays #: model_terms:ir.actions.act_window,help:hr_holidays.hr_leave_action_action_department msgid "No data yet!" msgstr "" @@ -4060,6 +4066,18 @@ msgstr "" msgid "Training Time Off" msgstr "" +#. module: hr_holidays +#: model:ir.model.fields.selection,name:hr_holidays.selection__hr_leave_accrual_level__action_with_unused_accruals__postponed +msgid "Transferred to the next year" +msgstr "" + +#. module: hr_holidays +#: model_terms:ir.actions.act_window,help:hr_holidays.mail_activity_type_action_config_hr_holidays +msgid "" +"Try to add some records, or make sure that there is no active filter in the " +"search bar." +msgstr "" + #. module: hr_holidays #: model:ir.model.fields.selection,name:hr_holidays.selection__hr_leave_accrual_level__week_day__tue msgid "Tuesday" diff --git a/addons/hr_holidays/report/hr_leave_reports.xml b/addons/hr_holidays/report/hr_leave_reports.xml index e50a8139ee5..81797606759 100644 --- a/addons/hr_holidays/report/hr_leave_reports.xml +++ b/addons/hr_holidays/report/hr_leave_reports.xml @@ -82,6 +82,11 @@ No data yet!

+ +

+ No data to display +

+
diff --git a/addons/hr_holidays/views/hr_leave_views.xml b/addons/hr_holidays/views/hr_leave_views.xml index ad8a23d5db3..499485d75a7 100644 --- a/addons/hr_holidays/views/hr_leave_views.xml +++ b/addons/hr_holidays/views/hr_leave_views.xml @@ -849,8 +849,8 @@ {'search_default_filter_date_from': 1, 'search_default_group_employee': 1, 'search_default_group_type': 1} [('active', '=', True), ('active_employee','=',True)] -

- No data yet! +

+ No data to display

diff --git a/addons/hr_holidays/views/mail_activity_views.xml b/addons/hr_holidays/views/mail_activity_views.xml index 6305a4c5648..56d1ec46e14 100644 --- a/addons/hr_holidays/views/mail_activity_views.xml +++ b/addons/hr_holidays/views/mail_activity_views.xml @@ -7,5 +7,13 @@ tree,form ['|', ('res_model', '=', False), ('res_model', 'in', ['hr.leave', 'hr.leave.allocation'])] {'default_res_model': 'hr.leave'} + +

+ No data to display +

+

+ Try to add some records, or make sure that there is no active filter in the search bar. +

+
diff --git a/addons/hr_recruitment/i18n/hr_recruitment.pot b/addons/hr_recruitment/i18n/hr_recruitment.pot index e80b15ee05a..40b2cd17115 100644 --- a/addons/hr_recruitment/i18n/hr_recruitment.pot +++ b/addons/hr_recruitment/i18n/hr_recruitment.pot @@ -1948,6 +1948,11 @@ msgstr "" msgid "No applications yet" msgstr "" +#. module: hr_recruitment +#: model_terms:ir.actions.act_window,help:hr_recruitment.mail_activity_type_action_config_hr_applicant +msgid "No data to display" +msgstr "" + #. module: hr_recruitment #: model_terms:ir.actions.act_window,help:hr_recruitment.action_hr_recruitment_report_filtered_department #: model_terms:ir.actions.act_window,help:hr_recruitment.action_hr_recruitment_report_filtered_job @@ -2757,6 +2762,13 @@ msgstr "" msgid "Try sending an email" msgstr "" +#. module: hr_recruitment +#: model_terms:ir.actions.act_window,help:hr_recruitment.mail_activity_type_action_config_hr_applicant +msgid "" +"Try to add some records, or make sure that there is no active filter in the " +"search bar." +msgstr "" + #. module: hr_recruitment #: model:ir.model.fields,help:hr_recruitment.field_hr_applicant__activity_exception_decoration msgid "Type of the exception activity on record." diff --git a/addons/hr_recruitment/views/mail_activity_views.xml b/addons/hr_recruitment/views/mail_activity_views.xml index ede48c3cea9..7772b78568f 100644 --- a/addons/hr_recruitment/views/mail_activity_views.xml +++ b/addons/hr_recruitment/views/mail_activity_views.xml @@ -7,6 +7,14 @@ tree,form ['|', ('res_model', '=', False), ('res_model', '=', 'hr.applicant')] {'default_res_model': 'hr.applicant'} + +

+ No data to display +

+

+ Try to add some records, or make sure that there is no active filter in the search bar. +

+
{ 'search_default_work_entries_error': True } + +

+ No data to display +

+

+ Try to add some records, or make sure that there is no active filter in the search bar. +

+
@@ -149,6 +157,11 @@ hr.work.entry.type tree,kanban,form + +

+ Create a new work entry type +

+