Skip to content

Commit 7584c84

Browse files
committed
[IMP] hr_skills: cleanup certification reporting
1 parent 2b79121 commit 7584c84

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
@@ -593,7 +593,7 @@
593593
<field name="res_model">hr.employee.skill</field>
594594
<field name="path">certifications</field>
595595
<field name="domain">[('is_certification', '=', True)]</field>
596-
<field name="context">{'show_employee': True}</field>
596+
<field name="context">{'show_employee': True, 'search_default_group_by_type': 1}</field>
597597
<field name="view_mode">list,form</field>
598598
<field name="view_ids" eval="[(5, 0, 0),
599599
(0, 0, {'view_mode': 'list', 'view_id': False}),
@@ -608,6 +608,12 @@
608608
sequence="7"
609609
groups="hr.group_hr_user"/>
610610

611+
<menuitem
612+
id="hr_employee_skill_report_menu"
613+
name="Skills"
614+
parent="hr.hr_menu_hr_reports"
615+
sequence="15"/>
616+
611617
<menuitem
612618
id="hr_skill_learning_menu"
613619
name="Learning"

0 commit comments

Comments
 (0)