diff options
| author | Mohammed Shekha <msh@openerp.com> | 2019-06-27 13:16:26 +0000 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2019-08-09 09:01:19 +0000 |
| commit | 25ebd80b40d52d8e6c59f264179dba35753f69da (patch) | |
| tree | 4e01341a327292e6b9a1566b89acb924ac4aa593 /addons/note/views/note_views.xml | |
| parent | 597142d12c35e2cfe40323f76b3d6c7645d7638f (diff) | |
[IMP] *: add selection_mode condition to show/hide elements in kanban
If we use a kanban view to select a record we want to hide those elements:
dropdown boxes, buttons, anchors, some widgets, kanban color.
When it was too much change and used the new attribute
"kanban_view_ref" to explicitly define which view to open in selection_mode.
When also had to create previously unexisting kanban for
fleet.vehicle.model to show name and brand.
Task ID : 1924779
Diffstat (limited to 'addons/note/views/note_views.xml')
| -rw-r--r-- | addons/note/views/note_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/note/views/note_views.xml b/addons/note/views/note_views.xml index cd504340dc9..051b7abe0e2 100644 --- a/addons/note/views/note_views.xml +++ b/addons/note/views/note_views.xml @@ -92,7 +92,7 @@ <templates> <t t-name="kanban-box"> - <div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click_edit oe_semantic_html_override oe_kanban_card"> + <div t-attf-class="#{!selection_mode ? kanban_color(record.color.raw_value) : ''} oe_kanban_global_click_edit oe_semantic_html_override oe_kanban_card"> <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color'}"/> |
