Skip to content

Commit 08e1162

Browse files
committed
[IMP] hr_skills: cleanup certification reporting
1 parent f6be425 commit 08e1162

File tree

3 files changed

+32
-2
lines changed

3 files changed

+32
-2
lines changed

addons/hr_skills/report/hr_employee_certification_report_views.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,28 @@
4444
</search>
4545
</field>
4646
</record>
47+
48+
<record id="hr_employee_certification_report_action" model="ir.actions.act_window">
49+
<field name="name">Certification</field>
50+
<field name="res_model">hr.employee.certification.report</field>
51+
<field name="search_view_id" ref="hr_employee_certification_report_view_search"/>
52+
<field name="view_mode">list,pivot</field>
53+
<field name="context">{
54+
'search_default_employee': 1,
55+
}</field>
56+
<field name="help" type="html">
57+
<p class="o_view_nocontent_empty_folder">
58+
</p><p>
59+
This report will give you an overview of the certification per Employee.
60+
Create them in configuration and add them on the Employee.
61+
</p>
62+
</field>
63+
</record>
64+
65+
<menuitem
66+
id="hr_employee_certification_report_menu"
67+
name="Certifications"
68+
action="hr_employee_certification_report_action"
69+
parent="hr_skills.hr_employee_skill_report_menu"
70+
sequence="25"/>
4771
</odoo>

addons/hr_skills/report/hr_employee_skill_report_views.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,6 @@
8989
id="hr_employee_skill_inventory_report_menu"
9090
name="Skills Inventory"
9191
action="hr_employee_skill_report_action"
92-
parent="hr.hr_menu_hr_reports"
92+
parent="hr_skills.hr_employee_skill_report_menu"
9393
sequence="15"/>
9494
</odoo>

addons/hr_skills/views/hr_views.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@
595595
<field name="res_model">hr.employee.skill</field>
596596
<field name="path">certifications</field>
597597
<field name="domain">[('is_certification', '=', True), ('company_id', 'in', allowed_company_ids)]</field>
598-
<field name="context">{'show_employee': True}</field>
598+
<field name="context">{'show_employee': True, 'search_default_group_by_type': 1}</field>
599599
<field name="view_mode">list,form</field>
600600
<field name="view_ids" eval="[(5, 0, 0),
601601
(0, 0, {'view_mode': 'list', 'view_id': False}),
@@ -610,6 +610,12 @@
610610
sequence="7"
611611
groups="hr.group_hr_user"/>
612612

613+
<menuitem
614+
id="hr_employee_skill_report_menu"
615+
name="Skills"
616+
parent="hr.hr_menu_hr_reports"
617+
sequence="15"/>
618+
613619
<menuitem
614620
id="hr_skill_learning_menu"
615621
name="Learning"

0 commit comments

Comments
 (0)