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/hr_work_entry | |
| 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/hr_work_entry')
| -rw-r--r-- | addons/hr_work_entry/views/hr_work_entry_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/hr_work_entry/views/hr_work_entry_views.xml b/addons/hr_work_entry/views/hr_work_entry_views.xml index dc987c1b9d0..bfcca473186 100644 --- a/addons/hr_work_entry/views/hr_work_entry_views.xml +++ b/addons/hr_work_entry/views/hr_work_entry_views.xml @@ -148,8 +148,8 @@ <field name="color"/> <templates> <t t-name="kanban-box"> - <div t-attf-class="#{kanban_color(record.color.raw_value)} oe_kanban_global_click"> - <div class="o_dropdown_kanban dropdown"> + <div t-attf-class="#{!selection_mode ? kanban_color(record.color.raw_value) : ''} oe_kanban_global_click"> + <div class="o_dropdown_kanban dropdown" t-if="!selection_mode"> <a class="dropdown-toggle o-no-caret btn" role="button" data-toggle="dropdown" href="#" aria-label="Dropdown menu" title="Dropdown menu"> <span class="fa fa-bars fa-lg"/> </a> |
