[IMP] color setting is now done using, 'web_widget_color' module;

[REM] old behaviour with random colour;
[ADD] Migration script between v 0.4 and v 1.0;
This commit is contained in:
Sylvain LE GAL
2015-04-09 02:20:58 +02:00
parent e8188d80d6
commit c83923b31a
6 changed files with 66 additions and 69 deletions

View File

@@ -27,6 +27,8 @@
<field name="model_id"/>
<field name="user_id"/>
<field name="action_id"/>
<field name="color" widget="color"/>
<field name="font_color" widget="color"/>
</group>
</form>
</field>
@@ -44,11 +46,11 @@
<field name="action_id"/>
<field name="count"/>
<field name="color"/>
<field name="font_color"/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_tile_color_#{kanban_getcolor(record.color.raw_value)} oe_dashbaord_tile oe_kanban_global_click" >
<!-- FIXME: icon is hidden and edit not working if you have no form view
need more JS in the future -->
<div t-attf-class="oe_dashbaord_tile oe_kanban_global_click" t-attf-style="background-color:#{record.color.raw_value}" >
<!-- FIXME: icon is hidden and edit not working if you have no form view need more JS in the future -->
<div class="oe_dropdown_toggle oe_dropdown_kanban">
<span class="oe_e">í</span>
<ul class="oe_dropdown_menu">
@@ -58,7 +60,7 @@
</ul>
</div>
<div class="oe_kanban_content">
<a type="object" name="open_link" args="[]">
<a type="object" name="open_link" args="[]" t-attf-style="color:#{record.font_color.raw_value};">
<div class="tile_label">
<b><field name="name"/></b>
</div>