diff options
| author | Yannick Tivisse <yti@odoo.com> | 2015-09-22 17:02:30 +0200 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2015-09-22 17:08:55 +0200 |
| commit | 0d1240684aa7b9992c313290b1fc594802aee6e8 (patch) | |
| tree | 961642891888d8519115871cb638de35d8866dcf /addons/web/static/src/js/views/form_widgets.js | |
| parent | b15775c73127b8a765f054019f3adb7d2506c746 (diff) | |
[FIX] web: kanbanSelection widget : labels are not mandatory
Coming from hr_recruitment, where kanban_state is displayed, but without the customization
Also, remove lingering options in view, and missing fields for project_issue
Diffstat (limited to 'addons/web/static/src/js/views/form_widgets.js')
| -rw-r--r-- | addons/web/static/src/js/views/form_widgets.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web/static/src/js/views/form_widgets.js b/addons/web/static/src/js/views/form_widgets.js index 074a36e76f7..1f842eb3cb8 100644 --- a/addons/web/static/src/js/views/form_widgets.js +++ b/addons/web/static/src/js/views/form_widgets.js @@ -184,9 +184,9 @@ var KanbanSelection = FieldChar.extend({ var current_stage_id = self.view.datarecord.stage_id[0]; var stage_data = { id: current_stage_id, - legend_normal: self.view.datarecord.legend_normal, - legend_blocked : self.view.datarecord.legend_blocked, - legend_done: self.view.datarecord.legend_done, + legend_normal: self.view.datarecord.legend_normal || undefined, + legend_blocked : self.view.datarecord.legend_blocked || undefined, + legend_done: self.view.datarecord.legend_done || undefined, }; _.map(self.field.selection || [], function(selection_item) { var value = { |
