diff --git a/web_widget_auto_color/README.rst b/web_widget_auto_color/README.rst
index d82d4e64..173c02f7 100644
--- a/web_widget_auto_color/README.rst
+++ b/web_widget_auto_color/README.rst
@@ -4,9 +4,9 @@
Web Widget Auto Color
=====================
-This module was written to offer a new autocolor widget which can be used on
-field in trees view. Using this widget causes an identical coloration for cells
-of the same value in a list view.
+This module was written to offer a new autocolor attribute which can be used on
+field in trees view. Using this attribute causes an identical coloration for
+cells of the same value in a list view.
Installation
============
@@ -18,14 +18,14 @@ To install this module, you need to:
Usage
=====
- In the view declaration, put widget='autocolor' attribute in the field tag::
+ In the view declaration, put autocolor="1" attribute in the field tag::
...
...
-
+
...
diff --git a/web_widget_auto_color/static/src/js/view_list.js b/web_widget_auto_color/static/src/js/view_list.js
index a5e16cfe..7ac1a691 100644
--- a/web_widget_auto_color/static/src/js/view_list.js
+++ b/web_widget_auto_color/static/src/js/view_list.js
@@ -54,8 +54,4 @@ openerp.web_widget_auto_color = function(instance) {
return style
}
});
-
-
- instance.web.form.widgets.add('autocolor', 'instance.web.form.AbstractField');
-
};
\ No newline at end of file
diff --git a/web_widget_auto_color/static/src/xml/templates.xml b/web_widget_auto_color/static/src/xml/templates.xml
index c98bbe6b..0ea16cf6 100644
--- a/web_widget_auto_color/static/src/xml/templates.xml
+++ b/web_widget_auto_color/static/src/xml/templates.xml
@@ -2,7 +2,7 @@
- this.attr('t-att-style', "column.widget =='autocolor' and view.auto_color_cell_style(render_cell(record, column))")
+ this.attr('t-att-style', "column.autocolor == '1' and view.auto_color_cell_style(render_cell(record, column), column)")