[IMP] odoo: modify the default kanban view
This commit adds a div `content` around the first field in the default kanban view.
This commit is contained in:
committed by
Géry Debongnie
parent
11a4e17c9c
commit
9876a77b14
+3
-2
@@ -1247,8 +1247,9 @@ class BaseModel(object):
|
||||
"""
|
||||
|
||||
field = E.field(name=self._rec_name_fallback())
|
||||
div = E.div(field, {'class': "oe_kanban_card oe_kanban_global_click"})
|
||||
kanban_box = E.t(div, {'t-name': "kanban-box"})
|
||||
content_div = E.div(field, {'class': "o_kanban_card_content"})
|
||||
card_div = E.div(content_div, {'t-attf-class': "oe_kanban_card oe_kanban_global_click"})
|
||||
kanban_box = E.t(card_div, {'t-name': "kanban-box"})
|
||||
templates = E.templates(kanban_box)
|
||||
return E.kanban(templates, string=self._description)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user