diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2019-02-21 10:57:13 +0000 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2019-02-21 10:57:13 +0000 |
| commit | c98dc505d61aee9c5f7da43c02c8fc03b33b07c7 (patch) | |
| tree | 384c667ea47d4114e6f1e33b6b70bae3061d41ac | |
| parent | 4339101afe090330b491d6f9f89ef9d787716d1c (diff) | |
[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`
| -rw-r--r-- | addons/hr_skills/views/hr_views.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/hr_skills/views/hr_views.xml b/addons/hr_skills/views/hr_views.xml index b85d4f4d0e4..e5cc42bfc4e 100644 --- a/addons/hr_skills/views/hr_views.xml +++ b/addons/hr_skills/views/hr_views.xml @@ -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"/> |
