Browse Source

[ADD] demo data;

pull/111/head
Sylvain LE GAL 10 years ago
parent
commit
bdadea4a44
  1. 2
      web_dashboard_tile/__openerp__.py
  2. 25
      web_dashboard_tile/demo/res_groups.yml
  3. 35
      web_dashboard_tile/demo/tile_tile.yml

2
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': [
],

25
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 <http://www.gnu.org/licenses/>.
#
##############################################################################
- !record {model: res.groups, id: base.group_no_one}:
users:
- base.user_root

35
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 <http://www.gnu.org/licenses/>.
#
##############################################################################
# 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
Loading…
Cancel
Save