diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-10-31 14:02:40 +0100 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-11-13 11:31:39 +0100 |
| commit | dd343c86330467ba6cfffb62e22b643a004fb764 (patch) | |
| tree | 29fe545774f616ac9226b31864659f4905a14972 /addons/web/static/src/js | |
| parent | 2e7cafd5a22706b289aa0865a8059d3741c76600 (diff) | |
[IMP] project: kanban customization
- stage model (project.task.type): add fields holding the eventual specific
legends for kanban states and star (priority) management
- project: task now have labels; you may use project to hold trainings
instead of tasks.
- project form: use label field on tasks statinfo to use the label
- project.task form: use kanban state customization using states_legend option;
- project.task kanban: use kanban column and kanban state cuztomization
using group_by_tooltip and states_legend options
- project_issue: issues now have labels, like tasks.
- issue: same kanban custo as for tasks
- update data and demo data
[IMP] web: statinfo widget now take an optional label_field option allowing
to have strings coming from another field present in the form view
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 20cba67c5a1..15f6e80f509 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -6233,7 +6233,12 @@ instance.web.form.StatInfo = instance.web.form.AbstractField.extend({ value: this.get("value") || 0, }; if (! this.node.attrs.nolabel) { - options.text = this.string + if(this.options.label_field && this.view.datarecord[this.options.label_field]) { + options.text = this.view.datarecord[this.options.label_field]; + } + else { + options.text = this.string; + } } this.$el.html(QWeb.render("StatInfo", options)); }, |
