[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) <bedo@odoo.com>
This commit is contained in:
Kacper Gasior
2023-12-07 22:48:39 +00:00
parent 2659e98a36
commit d36f23bbf3
13 changed files with 114 additions and 18 deletions
+10 -12
View File
@@ -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
@@ -32,6 +32,11 @@
<field name="name">Employment Types</field>
<field name="res_model">hr.contract.type</field>
<field name="view_mode">tree</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new employment type
</p>
</field>
</record>
</data>
</odoo>
+1 -4
View File
@@ -43,10 +43,7 @@
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No Work Locations found ! Let's create one
</p>
<p>
Work Locations are used to define more precisely where your employee is located everyday.
Create a new work location
</p>
</field>
</record>
+10
View File
@@ -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"
@@ -121,6 +121,11 @@
'search_default_group_by_state': 1
}
</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
No data to display
</p>
</field>
</record>
<record id="hr_contract_history_to_review_view_list_action" model="ir.actions.act_window">
<field name="name">Contracts to Review</field>
+18
View File
@@ -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"
@@ -82,6 +82,11 @@
No data yet!
</p>
</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
No data to display
</p>
</field>
</record>
</odoo>
+2 -2
View File
@@ -849,8 +849,8 @@
<field name="context">{'search_default_filter_date_from': 1, 'search_default_group_employee': 1, 'search_default_group_type': 1}</field>
<field name="domain">[('active', '=', True), ('active_employee','=',True)]</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No data yet!
<p class="o_view_nocontent_empty_folder">
No data to display
</p>
</field>
</record>
@@ -7,5 +7,13 @@
<field name="view_mode">tree,form</field>
<field name="domain">['|', ('res_model', '=', False), ('res_model', 'in', ['hr.leave', 'hr.leave.allocation'])]</field>
<field name="context">{'default_res_model': 'hr.leave'}</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
No data to display
</p>
<p>
Try to add some records, or make sure that there is no active filter in the search bar.
</p>
</field>
</record>
</odoo>
@@ -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."
@@ -7,6 +7,14 @@
<field name="view_mode">tree,form</field>
<field name="domain">['|', ('res_model', '=', False), ('res_model', '=', 'hr.applicant')]</field>
<field name="context">{'default_res_model': 'hr.applicant'}</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
No data to display
</p>
<p>
Try to add some records, or make sure that there is no active filter in the search bar.
</p>
</field>
</record>
<menuitem id="hr_recruitment_menu_config_activity_type"
action="mail_activity_type_action_config_hr_applicant"
@@ -98,6 +98,11 @@ msgstr ""
msgid "Conflicts"
msgstr ""
#. module: hr_work_entry
#: model_terms:ir.actions.act_window,help:hr_work_entry.hr_work_entry_type_action
msgid "Create a new work entry type"
msgstr ""
#. module: hr_work_entry
#: model:ir.model.fields,field_description:hr_work_entry.field_hr_user_work_entry_employee__create_uid
#: model:ir.model.fields,field_description:hr_work_entry.field_hr_work_entry__create_uid
@@ -228,6 +233,11 @@ msgstr ""
msgid "Name"
msgstr ""
#. module: hr_work_entry
#: model_terms:ir.actions.act_window,help:hr_work_entry.hr_work_entry_action
msgid "No data to display"
msgstr ""
#. module: hr_work_entry
#: model_terms:ir.ui.view,arch_db:hr_work_entry.hr_work_entry_view_form
msgid "Note: Validated work entries cannot be modified."
@@ -301,6 +311,13 @@ msgstr ""
msgid "To"
msgstr ""
#. module: hr_work_entry
#: model_terms:ir.actions.act_window,help:hr_work_entry.hr_work_entry_action
msgid ""
"Try to add some records, or make sure that there is no active filter in the "
"search bar."
msgstr ""
#. module: hr_work_entry
#: model_terms:ir.ui.view,arch_db:hr_work_entry.hr_work_entry_view_search
msgid "Type"
@@ -17,6 +17,14 @@
<field name="context">{
'search_default_work_entries_error': True
}</field>
<field name="help" type="html">
<p class="o_view_nocontent_empty_folder">
No data to display
</p>
<p>
Try to add some records, or make sure that there is no active filter in the search bar.
</p>
</field>
</record>
<record id="hr_work_entry_view_calendar" model="ir.ui.view">
@@ -149,6 +157,11 @@
<field name="res_model">hr.work.entry.type</field>
<field name="view_mode">tree,kanban,form</field>
<field name="search_view_id" ref="hr_work_entry_type_view_search"/>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new work entry type
</p>
</field>
</record>
<record id="hr_work_entry_type_view_tree" model="ir.ui.view">