Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web_dashboard_tile/models/tile_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def _compute_data(self):
tile.primary_error = False
tile.secondary_error = False
if not tile.model_id or not tile.active:
return
continue

model = self.env[tile.model_id.model]
eval_context = self._get_eval_context()
Expand All @@ -214,7 +214,7 @@ def _compute_data(self):
"Domain Error"
)
tile.domain_error = str(e)
return
continue
fields = [
f.name for f in [tile.primary_field_id, tile.secondary_field_id] if f
]
Expand Down
49 changes: 32 additions & 17 deletions web_dashboard_tile/views/tile_tile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,44 @@
<form>
<field name="model_name" invisible="1" />
<sheet>
<h1>
<field name="name" />
</h1>
<group col="4" string="Display">
<field name="category_id" colspan="4" />
<field name="background_color" widget="color" />
<field name="font_color" widget="color" />
<div class="oe_title">
<h1 class="d-flex flex-row">
<field name="name" />
</h1>
</div>
<group string="Display">
<group colspan="2">
<field name="category_id" />
</group>
<group>
<field name="background_color" widget="color" />
</group>
<group>
<field name="font_color" widget="color" />
</group>
</group>
<group col="4" string="Technical Informations">
<field name="model_id" />
<field name="action_id" />
<group string="Technical Informations">
<group>
<field name="model_id" />
</group>
<group>
<field name="action_id" />
</group>
</group>
<group string="Domain">
<field
name="domain"
colspan="4"
colspan="2"
nolabel="1"
widget="ace"
option="{'mode': 'python'}"
/>
<field
name="domain_error"
attrs="{'invisible':[('domain_error','=',False)]}"
nolabel="1"
colspan="4"
/>
<div
colspan="2"
class="alert alert-danger"
role="alert"
attrs="{'invisible': [('domain_error', '=', False)]}"
><field nolabel="1" name="domain_error" /></div>
</group>
<notebook>
<page string="Settings">
Expand Down
Loading