summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorJinal Patel <jip@odoo.com>2019-02-06 11:32:01 +0000
committerMohammed Shekha <msh@openerp.com>2019-06-18 09:28:23 +0000
commit756aa60ecfc14d16975d3c5d74f9952bfea8d4db (patch)
tree9e8fc5139a3a64a123f3f5513a8607f40105d932 /addons/web/static/src/xml
parent7bf0994e19565b7c157554bbfbf4d2ea90267832 (diff)
[IMP] web, project: improve examples background on kanban quick create column
This commit makes the use of the kanban more intuitive by changing the view's example background columns labels. kanbanExamplesRegistry will have object as a value instead of array, ghostColumns and examples will be the key where ghostColumns defines column titles for example background on column quick create and examples will be array of examples which will be displayed on click of See Examples link in quick create column If ghoseColumns are not defined then dynamically ghost columns will be generated with titles like Column 1, Column2... task- 1937198 closes odoo/odoo#30911 Signed-off-by: Jérome Maes (jem) <jem@openerp.com> Co-authored-by: Mohammed Shekha <msh@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/kanban.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/kanban.xml b/addons/web/static/src/xml/kanban.xml
index 3a01370443f..424408f9340 100644
--- a/addons/web/static/src/xml/kanban.xml
+++ b/addons/web/static/src/xml/kanban.xml
@@ -191,9 +191,9 @@
<div class="o_kanban_example_background_container">
<div class="o_kanban_example_background">
<div class="o_kanban_examples">
- <t t-foreach="_.range(1,5)" t-as="num">
+ <t t-foreach="ghostColumns" t-as="column">
<div class="o_kanban_examples_group">
- <h6><b>Column <t t-esc="num"/></b></h6>
+ <h6><b><t t-esc="column"/></b></h6>
<t t-foreach="_.random(2,6)">
<t t-call="KanbanView.ExamplesBackground.RecordGhost"/>
</t>