[FIX] hr_skills: Set tree mode for widgets in mobile

In mobile, a many2one field is displayed as a kanban view
instead of a tree view.
However skills and resumé widgets have been designed
to work for tree views.
=> traceback when displaying the widgets in mobile.

Fix: force the mode to `tree`
This commit is contained in:
Lucas Lefèvre
2019-02-21 10:57:13 +00:00
parent 4339101afe
commit c98dc505d6
+4 -4
View File
@@ -49,7 +49,7 @@
<!-- This field uses a custom tree view rendered by the 'hr_resume' widget.
Adding fields in the tree arch below makes them accessible to the widget
-->
<field class="" nolabel="1" name="resume_line_ids" widget="hr_resume">
<field mode="tree" nolabel="1" name="resume_line_ids" widget="hr_resume">
<tree>
<field name="line_type_id"/>
<field name="name"/>
@@ -62,7 +62,7 @@
</div>
<div class="col-lg-4 o_group_skills">
<separator string="Skills"/>
<field nolabel="1" name="employee_skill_ids" widget="hr_skills">
<field mode="tree" nolabel="1" name="employee_skill_ids" widget="hr_skills">
<tree>
<field name="skill_type_id" invisible="1"/>
<field name="skill_id"/>
@@ -89,7 +89,7 @@
<!-- This field uses a custom tree view rendered by the 'hr_resume' widget.
Adding fields in the tree arch below makes them accessible to the widget
-->
<field class="" nolabel="1" name="resume_line_ids" widget="hr_resume">
<field mode="tree" nolabel="1" name="resume_line_ids" widget="hr_resume">
<tree>
<field name="line_type_id"/>
<field name="name"/>
@@ -102,7 +102,7 @@
</div>
<div class="col-lg-4 o_group_skills">
<separator string="Skills"/>
<field nolabel="1" name="employee_skill_ids" widget="hr_skills">
<field mode="tree" nolabel="1" name="employee_skill_ids" widget="hr_skills">
<tree>
<field name="skill_type_id" invisible="1"/>
<field name="skill_id"/>