Merge pull request #111 from grap/7.0-web_dashboard_tile-improve
[7.0] web_dashboard_tile : Fixes & Improvementspull/142/head
-
25web_dashboard_tile/__init__.py
-
86web_dashboard_tile/__openerp__.py
-
25web_dashboard_tile/demo/res_groups.yml
-
33web_dashboard_tile/demo/tile_tile.yml
-
128web_dashboard_tile/i18n/fr.po
-
119web_dashboard_tile/i18n/web_dashboard_tile.pot
-
48web_dashboard_tile/migrations/7.0.1.0/post-migration-color.py
-
95web_dashboard_tile/static/src/css/tile.css
-
BINweb_dashboard_tile/static/src/img/avg.png
-
BINweb_dashboard_tile/static/src/img/max.png
-
BINweb_dashboard_tile/static/src/img/median.png
-
BINweb_dashboard_tile/static/src/img/min.png
-
BINweb_dashboard_tile/static/src/img/screenshot_action_click.png
-
BINweb_dashboard_tile/static/src/img/screenshot_dashboard.png
-
BINweb_dashboard_tile/static/src/img/sum.png
-
145web_dashboard_tile/tile.py
-
45web_dashboard_tile/view/tile.xml
@ -1 +1,26 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2010-2013 OpenERP s.a. (<http://openerp.com>). |
|||
# Copyright (C) 2014 initOS GmbH & Co. KG (<http://www.initos.com>). |
|||
# Copyright (C) 2015-Today GRAP |
|||
# Author Markus Schneider <markus.schneider at initos.com> |
|||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
from . import tile |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2015-Today GRAP |
|||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
- !record {model: res.groups, id: base.group_no_one}: |
|||
users: |
|||
- base.user_root |
@ -0,0 +1,33 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2015-Today GRAP |
|||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
- !record {model: tile.tile, id: installed_modules}: |
|||
name: Installed Modules |
|||
model_id: base.model_ir_module_module |
|||
domain: [['state', 'in', ['installed', 'to upgrade', 'to remove']]] |
|||
action_id: base.open_module_tree |
|||
|
|||
- !record {model: tile.tile, id: installed_OCA_modules}: |
|||
name: Installed OCA Modules |
|||
model_id: base.model_ir_module_module |
|||
domain: [['state', 'in', ['installed', 'to upgrade', 'to remove']], ['author', 'ilike', 'Odoo Community Association (OCA)']] |
|||
action_id: base.open_module_tree |
@ -0,0 +1,48 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# Copyright (C) 2015-Today GRAP |
|||
# @author Sylvain LE GAL (https://twitter.com/legalsylvain) |
|||
# |
|||
# This program is free software: you can redistribute it and/or modify |
|||
# it under the terms of the GNU Affero General Public License as |
|||
# published by the Free Software Foundation, either version 3 of the |
|||
# License, or (at your option) any later version. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU Affero General Public License for more details. |
|||
# |
|||
# You should have received a copy of the GNU Affero General Public License |
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
|
|||
|
|||
COLOR_NUMERIC_TO_RVB = { |
|||
0: '#006015', |
|||
1: '#CD2513', |
|||
2: '#CDC713', |
|||
3: '#57158A', |
|||
4: '#0E9B2D', |
|||
5: '#7F0C00', |
|||
6: '#7F7B00', |
|||
7: '#320455', |
|||
8: '#CD6E13', |
|||
9: '#0E6C7E', |
|||
} |
|||
|
|||
|
|||
def migrate_color(cr): |
|||
for old, new in COLOR_NUMERIC_TO_RVB.iteritems(): |
|||
cr.execute(""" |
|||
UPDATE tile_tile |
|||
SET color='%s', font_color='#FFFFFF' |
|||
WHERE color='%s' |
|||
""" % (new, old)) |
|||
|
|||
|
|||
def migrate(cr, installed_version): |
|||
migrate_color(cr) |
After Width: 24 | Height: 24 | Size: 340 B |
After Width: 24 | Height: 24 | Size: 264 B |
After Width: 24 | Height: 24 | Size: 287 B |
After Width: 24 | Height: 24 | Size: 283 B |
After Width: 754 | Height: 168 | Size: 24 KiB |
After Width: 796 | Height: 162 | Size: 45 KiB |
After Width: 24 | Height: 24 | Size: 305 B |