diff --git a/web_widget_color/README.rst b/web_widget_color/README.rst index fb15ffe0..dd10450d 100644 --- a/web_widget_color/README.rst +++ b/web_widget_color/README.rst @@ -1,8 +1,8 @@ =========================== -OpenERP web_widget_color module +Odoo web_widget_color module =========================== -This module aims to add a color picker to openERP/Odoo. +This module aims to add a color picker to Odoo. It's a `jsColor `_ lib integration. @@ -37,13 +37,11 @@ This module has been ported to 8.0 Usage ===== -It adds a new data type ``color``. To apply it, simply change the field -declaration as following:: +You need to declare a char field of at least size 7:: _columns = { 'color': fields.char( u"Couleur", - size=7, help=u"Toutes couleur valid css, exemple blue ou #f57900" ), } @@ -52,13 +50,11 @@ declaration as following:: color = fields.Char( string="Color", - size=7, help="Choose your color" ) -In the view declaration there is nothing especial to do, -add the field as any other one. Here is a part of tree view example:: +In the view declaration, put widget='color' attribute in the field tag:: ... diff --git a/web_widget_color/__init__.py b/web_widget_color/__init__.py index 372bd049..c18661e9 100644 --- a/web_widget_color/__init__.py +++ b/web_widget_color/__init__.py @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- ############################################################################ # -# OpenERP, Open Source Web Color +# Odoo, Open Source Web Color # Copyright (C) 2012 Savoir-faire Linux (). # Copyright (C) 2014 Anybox # Copyright (C) 2015 Taktik SA diff --git a/web_widget_color/__openerp__.py b/web_widget_color/__openerp__.py index cfaa76b8..7d1865dc 100644 --- a/web_widget_color/__openerp__.py +++ b/web_widget_color/__openerp__.py @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- ############################################################################ # -# OpenERP, Open Source Web Widget Color +# Odoo, Open Source Web Widget Color # Copyright (C) 2012 Savoir-faire Linux (). # Copyright (C) 2014 Anybox # Copyright (C) 2015 Taktik SA @@ -27,7 +27,7 @@ 'name': "Web Widget Color", 'category': "web", 'description': """ - This module aims to add a color picker to openERP/Odoo. + This module aims to add a color picker to Odoo. """, 'version': "1.0", 'depends': ['base', 'web'],