mirror of https://github.com/OCA/web.git
[PORT][REF] change name of field;
parent
cb8956f769
commit
d4fcdbe29d
|
@ -123,7 +123,7 @@ class TileTile(Model):
|
|||
" ('ttype', 'in', ['float', 'int'])]")
|
||||
active=fields.Boolean(
|
||||
compute='_get_tile_info', readonly=True, search='_search_active')
|
||||
color=fields.Char(default='#0E6C7E', string='Background Color')
|
||||
background_color=fields.Char(default='#0E6C7E', oldname='color')
|
||||
font_color=fields.Char(default='#FFFFFF')
|
||||
sequence=fields.Integer(default=0, required=True)
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
<field name="field_function"/>
|
||||
<field name="field_id"/>
|
||||
<field name="user_id"/>
|
||||
<field name="background_color" widget="color"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
@ -30,7 +31,7 @@
|
|||
<field name="action_id"/>
|
||||
<field name="field_function"/>
|
||||
<field name="field_id"/>
|
||||
<field name="color" widget="color"/>
|
||||
<field name="background_color" widget="color"/>
|
||||
<field name="font_color" widget="color"/>
|
||||
</group>
|
||||
</form>
|
||||
|
@ -48,14 +49,14 @@
|
|||
<field name="model_id"/>
|
||||
<field name="action_id"/>
|
||||
<field name="count"/>
|
||||
<field name="color"/>
|
||||
<field name="background_color"/>
|
||||
<field name="font_color"/>
|
||||
<field name="field_id" />
|
||||
<field name="field_function" />
|
||||
<field name="helper" />
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div t-attf-class="oe_dashbaord_tile oe_kanban_global_click" t-attf-style="background-color:#{record.color.raw_value}" >
|
||||
<div t-attf-class="oe_dashbaord_tile oe_kanban_global_click" t-attf-style="background-color:#{record.background_color.raw_value}" >
|
||||
<div class="oe_kanban_content">
|
||||
<a type="object" name="open_link" args="[]" t-attf-style="color:#{record.font_color.raw_value};">
|
||||
<div class="tile_label">
|
||||
|
|
Loading…
Reference in New Issue