Skip to content

Commit 1a9a99f

Browse files
author
Adil Houmadi
committed
[IMP] : Improve doc
1 parent dcb212c commit 1a9a99f

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

web_widget_color/README.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
===========================
2-
OpenERP web_widget_color module
2+
Odoo web_widget_color module
33
===========================
44

5-
This module aims to add a color picker to openERP/Odoo.
5+
This module aims to add a color picker to Odoo.
66

77
It's a `jsColor <http://jscolor.com/>`_ lib integration.
88

@@ -37,13 +37,11 @@ This module has been ported to 8.0
3737
Usage
3838
=====
3939

40-
It adds a new data type ``color``. To apply it, simply change the field
41-
declaration as following::
40+
You need to declare a char field of at least size 7::
4241

4342
_columns = {
4443
'color': fields.char(
4544
u"Couleur",
46-
size=7,
4745
help=u"Toutes couleur valid css, exemple blue ou #f57900"
4846
),
4947
}
@@ -52,13 +50,11 @@ declaration as following::
5250

5351
color = fields.Char(
5452
string="Color",
55-
size=7,
5653
help="Choose your color"
5754
)
5855

5956

60-
In the view declaration there is nothing especial to do,
61-
add the field as any other one. Here is a part of tree view example::
57+
In the view declaration, put widget='color' attribute in the field tag::
6258

6359
...
6460
<field name="arch" type="xml">

web_widget_color/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- encoding: utf-8 -*-
22
############################################################################
33
#
4-
# OpenERP, Open Source Web Color
4+
# Odoo, Open Source Web Color
55
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
66
# Copyright (C) 2014 Anybox <http://anybox.fr>
77
# Copyright (C) 2015 Taktik SA <http://taktik.be>

web_widget_color/__openerp__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- encoding: utf-8 -*-
22
############################################################################
33
#
4-
# OpenERP, Open Source Web Widget Color
4+
# Odoo, Open Source Web Widget Color
55
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
66
# Copyright (C) 2014 Anybox <http://anybox.fr>
77
# Copyright (C) 2015 Taktik SA <http://taktik.be>
@@ -27,7 +27,7 @@
2727
'name': "Web Widget Color",
2828
'category': "web",
2929
'description': """
30-
This module aims to add a color picker to openERP/Odoo.
30+
This module aims to add a color picker to Odoo.
3131
""",
3232
'version': "1.0",
3333
'depends': ['base', 'web'],

0 commit comments

Comments
 (0)