File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
===========================
2
- OpenERP web_widget_color module
2
+ Odoo web_widget_color module
3
3
===========================
4
4
5
- This module aims to add a color picker to openERP/ Odoo.
5
+ This module aims to add a color picker to Odoo.
6
6
7
7
It's a `jsColor <http://jscolor.com/ >`_ lib integration.
8
8
@@ -37,13 +37,11 @@ This module has been ported to 8.0
37
37
Usage
38
38
=====
39
39
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::
42
41
43
42
_columns = {
44
43
'color': fields.char(
45
44
u"Couleur",
46
- size=7,
47
45
help=u"Toutes couleur valid css, exemple blue ou #f57900"
48
46
),
49
47
}
@@ -52,13 +50,11 @@ declaration as following::
52
50
53
51
color = fields.Char(
54
52
string="Color",
55
- size=7,
56
53
help="Choose your color"
57
54
)
58
55
59
56
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::
62
58
63
59
...
64
60
<field name="arch" type="xml">
Original file line number Diff line number Diff line change 1
1
# -*- encoding: utf-8 -*-
2
2
############################################################################
3
3
#
4
- # OpenERP , Open Source Web Color
4
+ # Odoo , Open Source Web Color
5
5
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6
6
# Copyright (C) 2014 Anybox <http://anybox.fr>
7
7
# Copyright (C) 2015 Taktik SA <http://taktik.be>
Original file line number Diff line number Diff line change 1
1
# -*- encoding: utf-8 -*-
2
2
############################################################################
3
3
#
4
- # OpenERP , Open Source Web Widget Color
4
+ # Odoo , Open Source Web Widget Color
5
5
# Copyright (C) 2012 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
6
6
# Copyright (C) 2014 Anybox <http://anybox.fr>
7
7
# Copyright (C) 2015 Taktik SA <http://taktik.be>
27
27
'name' : "Web Widget Color" ,
28
28
'category' : "web" ,
29
29
'description' : """
30
- This module aims to add a color picker to openERP/ Odoo.
30
+ This module aims to add a color picker to Odoo.
31
31
""" ,
32
32
'version' : "1.0" ,
33
33
'depends' : ['base' , 'web' ],
You can’t perform that action at this time.
0 commit comments