diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-04-13 11:03:17 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-04-15 13:31:20 +0200 |
| commit | 64ce3df5d7e3b52ea314c21d5e61a83840ecfa2c (patch) | |
| tree | 532df86cfd1d99b8a8695b43221c74c97a8b7409 /addons/web_kanban/static/src/xml | |
| parent | c35dcb378feece6b805a0912341d7b9679a4da64 (diff) | |
[FIX] web_kanban: display add button for many2many kanban view
Diffstat (limited to 'addons/web_kanban/static/src/xml')
| -rw-r--r-- | addons/web_kanban/static/src/xml/web_kanban.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_kanban/static/src/xml/web_kanban.xml b/addons/web_kanban/static/src/xml/web_kanban.xml index 58afb9b2f55..9e42e72c6a0 100644 --- a/addons/web_kanban/static/src/xml/web_kanban.xml +++ b/addons/web_kanban/static/src/xml/web_kanban.xml @@ -13,7 +13,7 @@ </div> </t> <t t-name="KanbanView.buttons"> - <t t-if="widget.options.action_buttons !== false and widget.is_action_enabled('create')"> + <t t-if="(widget.options.action_buttons !== false and widget.is_action_enabled('create')) or (!widget.view_id and !widget.options.read_only_mode and (widget.is_action_enabled('write') || widget.is_action_enabled('create')))"> <div class="oe_kanban_buttons"> <button type="button" class="oe_kanban_button_new btn btn-primary btn-sm"> <t t-esc="widget.options.create_text || _t('Create')"/> |
