From bdadea4a44fdc570aad9e3ae41f8fa887de8ab04 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Wed, 8 Apr 2015 21:23:49 +0200 Subject: [PATCH] [ADD] demo data; --- web_dashboard_tile/__openerp__.py | 2 ++ web_dashboard_tile/demo/res_groups.yml | 25 ++++++++++++++++++ web_dashboard_tile/demo/tile_tile.yml | 35 ++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 web_dashboard_tile/demo/res_groups.yml create mode 100644 web_dashboard_tile/demo/tile_tile.yml diff --git a/web_dashboard_tile/__openerp__.py b/web_dashboard_tile/__openerp__.py index de41fffb..501841fc 100644 --- a/web_dashboard_tile/__openerp__.py +++ b/web_dashboard_tile/__openerp__.py @@ -56,6 +56,8 @@ 'css': ['static/src/css/tile.css'], 'demo': [ + 'demo/res_groups.yml', + 'demo/tile_tile.yml', ], 'test': [ ], diff --git a/web_dashboard_tile/demo/res_groups.yml b/web_dashboard_tile/demo/res_groups.yml new file mode 100644 index 00000000..735437c5 --- /dev/null +++ b/web_dashboard_tile/demo/res_groups.yml @@ -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 . +# +############################################################################## + +- !record {model: res.groups, id: base.group_no_one}: + users: + - base.user_root diff --git a/web_dashboard_tile/demo/tile_tile.yml b/web_dashboard_tile/demo/tile_tile.yml new file mode 100644 index 00000000..8e50a567 --- /dev/null +++ b/web_dashboard_tile/demo/tile_tile.yml @@ -0,0 +1,35 @@ +# -*- 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 . +# +############################################################################## +# domain: u"[('state', 'in', ['installed', 'to upgrade', 'to remove']), (u'author', u'ilike', u'Odoo Community Association (OCA)')]" +- !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 + color: 1 + +- !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 + color: 2