@ -1,34 +0,0 @@ |
|||||
Odoo Dynamic Dashboard |
|
||||
====================== |
|
||||
|
|
||||
Dynamically Arrange the dashboard to get the information that are relevant to your business, department, or a specific process or need. |
|
||||
|
|
||||
|
|
||||
Installation |
|
||||
============ |
|
||||
- www.odoo.com/documentation/14.0/setup/install.html |
|
||||
- Install our custom addon |
|
||||
|
|
||||
License |
|
||||
======= |
|
||||
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3) |
|
||||
(http://www.gnu.org/licenses/agpl.html) |
|
||||
|
|
||||
Bug Tracker |
|
||||
=========== |
|
||||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|
||||
|
|
||||
Credits |
|
||||
======= |
|
||||
* Cybrosys Techno Solutions <https://www.cybrosys.com> |
|
||||
|
|
||||
Author |
|
||||
------ |
|
||||
Developer: Irfan @ Cybrosys, Afras @Cybrosys |
|
||||
|
|
||||
Maintainer |
|
||||
---------- |
|
||||
This module is maintained by Cybrosys Technologies. |
|
||||
|
|
||||
For support and more information, please visit https://www.cybrosys.com. |
|
||||
|
|
@ -1,24 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from . import models |
|
||||
from . import controllers |
|
@ -1,45 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
{ |
|
||||
'name': "Odoo Dynamic Dashboard", |
|
||||
'version': '14.0.1.0.0', |
|
||||
'category': 'Extra Tools', |
|
||||
'summary': """Create Configurable Dashboards Easily""", |
|
||||
'description': """Create Configurable Dashboard Dynamically to get the information that are relevant to your business, department, or a specific process or need, Dynamic Dashboard, Dashboard, Dashboard Odoo""", |
|
||||
'author': 'Cybrosys Techno Solutions', |
|
||||
'website': "https://www.cybrosys.com", |
|
||||
'company': 'Cybrosys Techno Solutions', |
|
||||
'maintainer': 'Cybrosys Techno Solutions', |
|
||||
'depends': ['base', 'web'], |
|
||||
'data': [ |
|
||||
'views/dashboard_view.xml', |
|
||||
'views/dynamic_block_view.xml', |
|
||||
'views/dashboard_menu_view.xml', |
|
||||
'security/ir.model.access.csv', |
|
||||
], |
|
||||
'images': ['static/description/banner.png'], |
|
||||
'qweb': ["static/src/xml/dynamic_dashboard_template.xml"], |
|
||||
'license': "AGPL-3", |
|
||||
'installable': True, |
|
||||
'auto_install': False, |
|
||||
'application': False, |
|
||||
} |
|
@ -1,23 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from . import main |
|
@ -1,55 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from odoo import http, _ |
|
||||
from odoo.http import request |
|
||||
from odoo.exceptions import UserError |
|
||||
|
|
||||
|
|
||||
class DynamicDashboard(http.Controller): |
|
||||
|
|
||||
@http.route('/create/tile', type='json', auth='user') |
|
||||
def tile_creation(self, **kw): |
|
||||
"""While clicking ADD Block""" |
|
||||
type = kw.get('type') |
|
||||
action_id = kw.get('action_id') |
|
||||
tile_id = request.env['dashboard.block'].sudo().create({ |
|
||||
'name': 'New Block', |
|
||||
'type': type, |
|
||||
'tile_color': '#1f6abb', |
|
||||
'text_color': '#FFFFFF', |
|
||||
'fa_icon': 'fa fa-money', |
|
||||
'edit_mode': True, |
|
||||
'client_action': int(action_id), |
|
||||
}) |
|
||||
|
|
||||
return {'id': tile_id.id, 'name': tile_id.name, 'type': type, 'icon': 'fa fa-money', |
|
||||
'color': 'background-color: #1f6abb;', |
|
||||
'text_color': 'color: #FFFFFF', |
|
||||
'icon_color': 'color: #1f6abb'} |
|
||||
|
|
||||
@http.route('/tile/details', type='json', auth='user') |
|
||||
def tile_details(self, **kw): |
|
||||
tile_id = request.env['dashboard.block'].sudo().search([('id', '=', kw.get('id'))]) |
|
||||
if tile_id: |
|
||||
return {'model': tile_id.model_id.model, 'filter': tile_id.filter, 'model_name': tile_id.model_id.name} |
|
||||
return False |
|
@ -1,8 +0,0 @@ |
|||||
|
|
||||
## Module <dynamic_dashboard_odoo> |
|
||||
|
|
||||
#### 14.12.2021 |
|
||||
#### Version 14.0.1.0.0 |
|
||||
|
|
||||
##### Initial Commit for dynamic_dashboard_odoo |
|
||||
|
|
@ -1,25 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from . import dashboard_block |
|
||||
from . import domain_to_sql |
|
||||
from . import dashboard_menu |
|
@ -1,135 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from odoo import models, fields, api |
|
||||
from odoo.osv import expression |
|
||||
from ast import literal_eval |
|
||||
|
|
||||
|
|
||||
class DashboardBlock(models.Model): |
|
||||
_name = "dashboard.block" |
|
||||
_description = "Dashboard Blocks" |
|
||||
_rec_name = "name" |
|
||||
|
|
||||
def get_default_action(self): |
|
||||
action_id = self.env.ref('dynamic_dashboard_odoo.action_dynamic_dashboard') |
|
||||
if action_id: |
|
||||
return action_id.id |
|
||||
else: |
|
||||
return False |
|
||||
|
|
||||
name = fields.Char(string="Name", help='Name of the block') |
|
||||
field_id = fields.Many2one('ir.model.fields', 'Measured Field',domain="[('store', '=', True), ('model_id', '=', model_id), ('ttype', 'in', ['float','integer','monetary'])]") |
|
||||
fa_icon = fields.Char(string="Icon") |
|
||||
graph_size = fields.Selection( |
|
||||
selection=[("col-lg-4", "Small"), ("col-lg-6", "Medium"), ("col-lg-12", "Large")], |
|
||||
string="Graph Size",default='col-lg-4') |
|
||||
operation = fields.Selection( |
|
||||
selection=[("sum", "Sum"), ("avg", "Average"), ("count", "Count")], |
|
||||
string="Operation", help='Tile Operation that needs to bring values for tile') |
|
||||
|
|
||||
graph_type = fields.Selection( |
|
||||
selection=[("bar", "Bar"), ("radar", "Radar"), ("pie", "Pie"), ("line", "Line"), ("doughnut", "Doughnut")], |
|
||||
string="Chart Type", help='Type of Chart') |
|
||||
measured_field = fields.Many2one("ir.model.fields", "Measured Field") |
|
||||
client_action = fields.Many2one('ir.actions.client', default = get_default_action) |
|
||||
|
|
||||
type = fields.Selection( |
|
||||
selection=[("graph", "Chart"), ("tile", "Tile")], string="Type", help='Type of Block ie, Chart or Tile') |
|
||||
x_axis = fields.Char(string="X-Axis") |
|
||||
y_axis = fields.Char(string="Y-Axis") |
|
||||
group_by = fields.Many2one("ir.model.fields", store=True, string="Group by(Y-Axis)", help='Field value for Y-Axis') |
|
||||
tile_color = fields.Char(string="Tile Color", help='Primary Color of Tile') |
|
||||
text_color = fields.Char(string="Text Color", help='Text Color of Tile') |
|
||||
fa_color = fields.Char(string="Icon Color", help='Icon Color of Tile') |
|
||||
filter = fields.Char(string="Filter") |
|
||||
model_id = fields.Many2one('ir.model', 'Model') |
|
||||
model_name = fields.Char(related='model_id.model', readonly=True) |
|
||||
|
|
||||
filter_by = fields.Many2one("ir.model.fields", string=" Filter By") |
|
||||
filter_values = fields.Char(string="Filter Values") |
|
||||
|
|
||||
sequence = fields.Integer(string="Sequence") |
|
||||
edit_mode = fields.Boolean(default=False, invisible=True) |
|
||||
|
|
||||
def get_dashboard_vals(self, action_id): |
|
||||
"""Dashboard block values""" |
|
||||
block_id = [] |
|
||||
dashboard_block = self.env['dashboard.block'].sudo().search([('client_action', '=', int(action_id))]) |
|
||||
for rec in dashboard_block: |
|
||||
color = rec.tile_color if rec.tile_color else '#1f6abb;' |
|
||||
icon_color = rec.tile_color if rec.tile_color else '#1f6abb;' |
|
||||
text_color = rec.text_color if rec.text_color else '#FFFFFF;' |
|
||||
vals = { |
|
||||
'id': rec.id, |
|
||||
'name': rec.name, |
|
||||
'type': rec.type, |
|
||||
'graph_type': rec.graph_type, |
|
||||
'icon': rec.fa_icon, |
|
||||
'cols': rec.graph_size, |
|
||||
'color': 'background-color: %s;' % color, |
|
||||
'text_color': 'color: %s;' % text_color, |
|
||||
'icon_color': 'color: %s;' % icon_color, |
|
||||
} |
|
||||
domain = [] |
|
||||
if rec.filter: |
|
||||
domain = expression.AND([literal_eval(rec.filter)]) |
|
||||
if rec.model_name: |
|
||||
if rec.type == 'graph': |
|
||||
query = self.env[rec.model_name].get_query(domain, rec.operation, rec.measured_field, |
|
||||
group_by=rec.group_by) |
|
||||
self._cr.execute(query) |
|
||||
records = self._cr.dictfetchall() |
|
||||
x_axis = [] |
|
||||
for record in records: |
|
||||
x_axis.append(record.get(rec.group_by.name)) |
|
||||
y_axis = [] |
|
||||
for record in records: |
|
||||
y_axis.append(record.get('value')) |
|
||||
vals.update({'x_axis': x_axis, 'y_axis': y_axis}) |
|
||||
else: |
|
||||
query = self.env[rec.model_name].get_query(domain, rec.operation, rec.measured_field) |
|
||||
self._cr.execute(query) |
|
||||
records = self._cr.dictfetchall() |
|
||||
magnitude = 0 |
|
||||
total = records[0].get('value') |
|
||||
while abs(total) >= 1000: |
|
||||
magnitude += 1 |
|
||||
total /= 1000.0 |
|
||||
# add more suffixes if you need them |
|
||||
val = '%.2f%s' % (total, ['', 'K', 'M', 'G', 'T', 'P'][magnitude]) |
|
||||
|
|
||||
# if rec.measured_field.ttype == 'monetary': |
|
||||
# amount = str( |
|
||||
# value) + currency_id.symbol if currency_id.position == 'after' else currency_id.symbol + str( |
|
||||
# value) |
|
||||
records[0]['value'] = val |
|
||||
vals.update(records[0]) |
|
||||
block_id.append(vals) |
|
||||
return block_id |
|
||||
|
|
||||
|
|
||||
class DashboardBlockLine(models.Model): |
|
||||
_name = "dashboard.block.line" |
|
||||
|
|
||||
sequence = fields.Integer(string="Sequence") |
|
||||
block_size = fields.Integer(string="Block size") |
|
@ -1,53 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from odoo import models, fields, api |
|
||||
from odoo.osv import expression |
|
||||
|
|
||||
|
|
||||
class DashboardMenu(models.Model): |
|
||||
_name = "dashboard.menu" |
|
||||
_description = "Dashboard Menu" |
|
||||
_rec_name = "name" |
|
||||
|
|
||||
name = fields.Char(string="Name") |
|
||||
menu_id = fields.Many2one('ir.ui.menu', string="Menu") |
|
||||
group_ids = fields.Many2many('res.groups', string='Groups', |
|
||||
related='menu_id.groups_id', |
|
||||
help="User need to be at least in one of these groups to see the menu") |
|
||||
client_action = fields.Many2one('ir.actions.client') |
|
||||
|
|
||||
@api.model |
|
||||
def create(self, vals): |
|
||||
"""This code is to create menu""" |
|
||||
values = { |
|
||||
'name': vals['name'], |
|
||||
'tag': 'dynamic_dashboard', |
|
||||
} |
|
||||
action_id = self.env['ir.actions.client'].create(values) |
|
||||
vals['client_action'] = action_id.id |
|
||||
menu_id = self.env['ir.ui.menu'].create({ |
|
||||
'name': vals['name'], |
|
||||
'parent_id': vals['menu_id'], |
|
||||
'action': 'ir.actions.client,%d' % (action_id.id,) |
|
||||
}) |
|
||||
return super(DashboardMenu, self).create(vals) |
|
@ -1,74 +0,0 @@ |
|||||
# -*- coding: utf-8 -*- |
|
||||
############################################################################# |
|
||||
# |
|
||||
# Cybrosys Technologies Pvt. Ltd. |
|
||||
# |
|
||||
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|
||||
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
|
||||
# |
|
||||
# You can modify it under the terms of the GNU LESSER |
|
||||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|
||||
# |
|
||||
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|
||||
# |
|
||||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|
||||
# (LGPL v3) along with this program. |
|
||||
# If not, see <http://www.gnu.org/licenses/>. |
|
||||
# |
|
||||
############################################################################# |
|
||||
|
|
||||
from odoo.osv import expression |
|
||||
from odoo import models |
|
||||
from odoo.release import version_info |
|
||||
|
|
||||
|
|
||||
def get_query(self, args, operation, field, group_by=False, apply_ir_rules=False): |
|
||||
"""Dashboard block Query Creation""" |
|
||||
query = self._where_calc(args) |
|
||||
if apply_ir_rules: |
|
||||
self._apply_ir_rules(query, 'read') |
|
||||
if operation and field: |
|
||||
data = 'COALESCE(%s("%s".%s),0) AS value' % (operation.upper(), self._table, field.name) |
|
||||
join = '' |
|
||||
group_by_str = '' |
|
||||
if group_by: |
|
||||
if group_by.ttype == 'many2one': |
|
||||
relation_model = group_by.relation.replace('.', '_') |
|
||||
join = ' INNER JOIN %s on "%s".id = "%s".%s' % ( |
|
||||
relation_model, relation_model, self._table, group_by.name) |
|
||||
rec_name = self.env[group_by.relation]._rec_name_fallback() |
|
||||
data = data + ',"%s".%s AS %s' % (relation_model, rec_name, group_by.name) |
|
||||
group_by_str = ' Group by "%s".%s' % (relation_model, rec_name) |
|
||||
else: |
|
||||
data = data + ',"%s".%s' % (self._table, group_by.name) |
|
||||
group_by_str = ' Group by "%s".%s' % (self._table, str(group_by.name)) |
|
||||
else: |
|
||||
data = '"%s".id' % (self._table) |
|
||||
|
|
||||
from_clause, where_clause, where_clause_params = query.get_sql() |
|
||||
where_str = where_clause and (" WHERE %s" % where_clause) or '' |
|
||||
if 'company_id' in self._fields: |
|
||||
if len(self.env.companies.ids) > 1: |
|
||||
operator = 'in' |
|
||||
company = str(tuple(self.env.companies.ids)) |
|
||||
else: |
|
||||
operator = '=' |
|
||||
company = self.env.companies.ids[0] |
|
||||
if where_str == '': |
|
||||
add = ' where' |
|
||||
else: |
|
||||
add = ' and' |
|
||||
multicompany_condition = '%s "%s".company_id %s %s' % (add, self._table, operator, company) |
|
||||
else: |
|
||||
multicompany_condition = '' |
|
||||
|
|
||||
query_str = 'SELECT %s FROM ' % data + from_clause + join + where_str + multicompany_condition + group_by_str |
|
||||
where_clause_params = map(lambda x: "'" + str(x) + "'", where_clause_params) |
|
||||
|
|
||||
return query_str % tuple(where_clause_params) |
|
||||
|
|
||||
|
|
||||
models.BaseModel.get_query = get_query |
|
|
Before Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 576 B |
Before Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 911 B |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 673 B |
Before Width: | Height: | Size: 878 B |
Before Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 905 B |
Before Width: | Height: | Size: 839 B |
Before Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 988 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 58 KiB |
Before Width: | Height: | Size: 54 KiB |
Before Width: | Height: | Size: 72 KiB |
Before Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 86 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 109 KiB |
Before Width: | Height: | Size: 154 KiB |
Before Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 106 KiB |
Before Width: | Height: | Size: 33 KiB |
Before Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 51 KiB |
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 16 KiB |
@ -1,537 +0,0 @@ |
|||||
|
|
||||
<div class="container position-relative"> |
|
||||
<!-- Background color code starts here --> |
|
||||
<div class="first-parent position-absolute d-none d-lg-block" |
|
||||
style="width:99.35vw; height:100%; background-color:#f5f5f5; margin-left:calc((1080px - 100vw) / 2); margin-top:-14px;"> |
|
||||
</div> |
|
||||
<!-- Background color code ends here --> |
|
||||
<div class="position-relative my-5"> |
|
||||
<div class="row no-gutters shadow-sm"> |
|
||||
<!-- Header --> |
|
||||
<div class="col-md-12"> |
|
||||
<div class="bg-white h-100 d-flex justify-content-between shadow p-4"> |
|
||||
<img src="assets/icons/logo.png" class="img img-responsive mt-1" |
|
||||
style="height: 35px; width: auto;" loading="lazy" /> |
|
||||
<div class="d-flex align-items-center"> |
|
||||
<div |
|
||||
style="background-color: #7C7BAD !important; color: #fff !important; font-weight: 600 !important; padding: 5px 15px 8px !important; margin: 0 5px !important;"> |
|
||||
<i class="fa fa-check mr-1"></i>Community |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
<!-- End of Header --> |
|
||||
<!-- Hero Section --> |
|
||||
<div class="col-md-12"> |
|
||||
<div class="bg-white h-100 d-flex justify-content-center"> |
|
||||
<img src="./assets/screenshots/hero.jpg" width="100%" class="img img-responsive" |
|
||||
loading="lazy" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
<!-- End of Hero Section --> |
|
||||
</div> |
|
||||
</div> |
|
||||
<!-- Section 2 --> |
|
||||
<div class="position-relative my-5"> |
|
||||
<div class="row"> |
|
||||
<div class="col-md-12"> |
|
||||
<h3 style="font-family: 'Montserrat', sans-serif !important;" class="font-weight-bold text-center"> |
|
||||
Dashboard Views</h3> |
|
||||
<hr class="mb-4" style="border-color:#71639e; border-width: 2px; width: 30%;" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="row px-2"> |
|
||||
<div class="col-md-8 px-1"> |
|
||||
<div class="bg-white shadow-sm pt-5 pb-0"> |
|
||||
<h3 class="font-weight-bold text-center mt-4" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #71639e !important; line-height: 1.5 !important;"> |
|
||||
Multiple Ways To Arrange</br>Your Dashboard |
|
||||
</h3> |
|
||||
<p class="text-grey text-center w-75 mx-auto">Dynamically Arrange the dashboard to get the |
|
||||
information that are relevant to your business, department, or a specific process or need. |
|
||||
</p> |
|
||||
<img src="assets/screenshots/dashboard-screenshot.jpg" |
|
||||
class="img img-responsive w-100 pb-0 mt-4" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="col-md-4 px-1"> |
|
||||
<div class="bg-white shadow-sm pt-5 pb-0 px-0"> |
|
||||
<span class="py-1 px-3 font-weight-bold text-white mt-4 w-25 text-center mx-4" |
|
||||
style="background-color: #71639e !important; border-radius: 4px !important;">New</span> |
|
||||
<h3 class="font-weight-bold mt-4 mx-4" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #71639e !important; line-height: 1.5 !important;"> |
|
||||
View top deals easily |
|
||||
</h3> |
|
||||
<p class="text-grey mx-4">View Top deals easily from dashboards based on current data leads to |
|
||||
time |
|
||||
savings.</p> |
|
||||
<img src="assets/screenshots/side-bar.jpg" class="img img-responsive w-100 pb-0" |
|
||||
style=" margin-top: 3rem !important" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<!-- End of Section 2--> |
|
||||
|
|
||||
|
|
||||
<!-- Section 4 --> |
|
||||
<div class="position-relative my-5"> |
|
||||
<div class="row"> |
|
||||
<div class="col-md-12"> |
|
||||
<h3 style="font-family: 'Montserrat', sans-serif !important;" class="font-weight-bold text-center"> |
|
||||
Screenshots</h3> |
|
||||
<hr class="mb-4" style="border-color:#71639e; border-width: 2px; width: 30%;" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="row"> |
|
||||
<div class="col-md-12 px-1"> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
Add new tile or graph |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/tile.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
<img src="assets/screenshots/graph.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
Setting up new tile |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/tile_set.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
Setting up new chart |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/chart_set.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
Setting up the tile configuration |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/tile_form.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
Setting up the chart configuration |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/chart_form.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
List all blocks created |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/block.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
<div class="bg-white shadow-sm p-4 my-2"> |
|
||||
<h6 class="font-weight-bold" |
|
||||
style="font-family: 'Montserrat', sans-serif !important; color: #212529 !important; line-height: 1.5 !important;"> |
|
||||
Add a new menu under existing menus |
|
||||
</h6> |
|
||||
<img src="assets/screenshots/menu_create.png" class="img img-responsive w-100 pb-0 mt-2" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<!-- End of Section 4 --> |
|
||||
|
|
||||
|
|
||||
<!-- SUGGESTED PRODUCTS --> |
|
||||
<div class="row"> |
|
||||
<div class="col-md-12"> |
|
||||
<h3 style="font-family: 'Montserrat', sans-serif !important;" class="font-weight-bold text-center"> |
|
||||
Suggested Products</h3> |
|
||||
<hr class="mb-4" style="border-color:#71639e; border-width: 2px; width: 30%;" /> |
|
||||
</div> |
|
||||
<div class="col-lg-12 d-flex flex-column justify-content-center" |
|
||||
style="text-align: center; padding: 2.5rem 1rem !important;"> |
|
||||
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
|
||||
<!-- The slideshow --> |
|
||||
<div class="carousel-inner"> |
|
||||
<div class="carousel-item active" style="min-height:0px"> |
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|
||||
<a href="https://apps.odoo.com/apps/modules/14.0/customer_followup_community/" |
|
||||
target="_blank"> |
|
||||
<div style="border-radius:10px"> |
|
||||
<img class="img img-responsive center-block" |
|
||||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|
||||
src="./assets/modules/follow_image.png"> |
|
||||
</div> |
|
||||
</a> |
|
||||
</div> |
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|
||||
<a href="https://apps.odoo.com/apps/modules/14.0/dashboard_pos/" target="_blank"> |
|
||||
<div style="border-radius:10px"> |
|
||||
<img class="img img-responsive center-block" |
|
||||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|
||||
src="./assets/modules/pos_image.png"> |
|
||||
</div> |
|
||||
</a> |
|
||||
</div> |
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|
||||
<a href="https://apps.odoo.com/apps/modules/14.0/product_approval_management/" |
|
||||
target="_blank"> |
|
||||
<div style="border-radius:10px"> |
|
||||
<img class="img img-responsive center-block" |
|
||||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|
||||
src="./assets/modules/approval_image.png"> |
|
||||
</div> |
|
||||
</a> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="carousel-item" style="min-height:0px"> |
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|
||||
<a href="https://apps.odoo.com/apps/modules/14.0/multiple_reference_per_product/" |
|
||||
target="_blank"> |
|
||||
<div style="border-radius:10px"> |
|
||||
<img class="img img-responsive center-block" |
|
||||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|
||||
src="./assets/modules/multiple-ref_image.png"> |
|
||||
</div> |
|
||||
</a> |
|
||||
</div> |
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|
||||
<a href="https://apps.odoo.com/apps/modules/14.0/shopify_odoo_connector/" |
|
||||
target="_blank"> |
|
||||
<div style="border-radius:10px"> |
|
||||
<img class="img img-responsive center-block" |
|
||||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|
||||
src="./assets/modules/shopify_image.png"> |
|
||||
</div> |
|
||||
</a> |
|
||||
</div> |
|
||||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left"> |
|
||||
<a href="https://apps.odoo.com/apps/modules/14.0/pos_order_types/" target="_blank"> |
|
||||
<div style="border-radius:10px"> |
|
||||
<img class="img img-responsive center-block" |
|
||||
style="border-top-left-radius:10px; border-top-right-radius:10px" |
|
||||
src="./assets/modules/pos_order_image.png"> |
|
||||
</div> |
|
||||
</a> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<!-- Left and right controls --> |
|
||||
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
|
||||
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i |
|
||||
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a |
|
||||
class="carousel-control-next" href="#demo1" data-slide="next" |
|
||||
style="right:-25px;width: 35px;color: #000;"> |
|
||||
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" |
|
||||
style="font-size:24px"></i></span> |
|
||||
</a> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<!-- END OF SUGGESTED PRODUCTS --> |
|
||||
|
|
||||
<!-- OUR SERVICES --> |
|
||||
<section class="container" style="margin-top: 6rem !important;"> |
|
||||
<div class="row"> |
|
||||
|
|
||||
<div class="col-md-12"> |
|
||||
<h3 style="font-family: 'Montserrat', sans-serif !important;" class="font-weight-bold text-center"> |
|
||||
Our |
|
||||
Services</h3> |
|
||||
<hr class="mb-4" style="border-color:#71639e; border-width: 2px; width: 30%;" /> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/cogs.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Customization</h6> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/wrench.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Implementation</h6> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/lifebuoy.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Support</h6> |
|
||||
</div> |
|
||||
|
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/user.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Hire |
|
||||
Odoo |
|
||||
Developer</h6> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/puzzle.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Integration</h6> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/update.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Migration</h6> |
|
||||
</div> |
|
||||
|
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/consultation.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Consultancy</h6> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/training.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Implementation</h6> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|
||||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|
||||
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|
||||
<img src="assets/icons/license.png" class="img-responsive" height="48px" width="48px"> |
|
||||
</div> |
|
||||
<h6 class="text-center" |
|
||||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|
||||
Odoo |
|
||||
Licensing Consultancy</h6> |
|
||||
</div> |
|
||||
</div> |
|
||||
</section> |
|
||||
<!-- END OF END OF OUR SERVICES --> |
|
||||
|
|
||||
<!-- OUR INDUSTRIES --> |
|
||||
<section class="container" style="margin-top: 6rem !important;"> |
|
||||
<div class="row"> |
|
||||
<div class="col-md-12"> |
|
||||
<h3 style="font-family: 'Montserrat', sans-serif !important;" class="font-weight-bold text-center"> |
|
||||
Our |
|
||||
Industries</h3> |
|
||||
<hr class="mb-4" style="border-color:#71639e; border-width: 2px; width: 30%;" /> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/trading-black.png" class="img-responsive mb-3" height="48px" |
|
||||
width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
Trading |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
Easily procure |
|
||||
and |
|
||||
sell your products</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/pos-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
POS |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
Easy |
|
||||
configuration |
|
||||
and convivial experience</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/education-black.png" class="img-responsive mb-3" height="48px" |
|
||||
width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
Education |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
A platform for |
|
||||
educational management</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/manufacturing-black.png" class="img-responsive mb-3" height="48px" |
|
||||
width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
Manufacturing |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
Plan, track and |
|
||||
schedule your operations</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/ecom-black.png" class="img-responsive mb-3" height="48px" width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
E-commerce & Website |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
Mobile |
|
||||
friendly, |
|
||||
awe-inspiring product pages</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/service-black.png" class="img-responsive mb-3" height="48px" |
|
||||
width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
Service Management |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
Keep track of |
|
||||
services and invoice</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/restaurant-black.png" class="img-responsive mb-3" height="48px" |
|
||||
width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
Restaurant |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
Run your bar or |
|
||||
restaurant methodically</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<div class="col-lg-3"> |
|
||||
<div class="my-4 d-flex flex-column justify-content-center" |
|
||||
style="background-color: #f6f8f9 !important; border-radius: 10px; padding: 2rem !important; height: 250px !important;"> |
|
||||
<img src="./assets/icons/hotel-black.png" class="img-responsive mb-3" height="48px" |
|
||||
width="48px"> |
|
||||
<h5 |
|
||||
style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|
||||
Hotel Management |
|
||||
</h5> |
|
||||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|
||||
An |
|
||||
all-inclusive |
|
||||
hotel management application</p> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
</section> |
|
||||
|
|
||||
<!-- END OF END OF OUR INDUSTRIES --> |
|
||||
|
|
||||
<!-- FOOTER --> |
|
||||
<!-- Footer Section --> |
|
||||
<section class="container" style="margin: 5rem auto 2rem;"> |
|
||||
<div class="row" style="max-width:1540px;"> |
|
||||
|
|
||||
<div class="col-md-12"> |
|
||||
<h3 style="font-family: 'Montserrat', sans-serif !important;" class="font-weight-bold text-center"> |
|
||||
Need |
|
||||
Help?</h3> |
|
||||
<hr class="mb-4" style="border-color:#71639e; border-width: 2px; width: 30%;" /> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
<!-- Contact Cards --> |
|
||||
<div class="row d-flex justify-content-center align-items-center" |
|
||||
style="max-width:1540px; margin: 0 auto 2rem auto;"> |
|
||||
|
|
||||
<div class="col-lg-12" style="padding: 0rem 3rem 2rem; border-radius: 10px; margin-right: 3rem; "> |
|
||||
|
|
||||
<div class="row mt-4"> |
|
||||
<div class="col-lg-6"> |
|
||||
<a href="mailto:odoo@cybrosys.com" target="_blank" class="btn btn-block mb-2 deep_hover" |
|
||||
style="text-decoration: none; background-color: #4d4d4d; color: #FFF; border-radius: 4px;"><i |
|
||||
class="fa fa-envelope mr-2"></i>odoo@cybrosys.com</a> |
|
||||
</div> |
|
||||
<div class="col-lg-6"> |
|
||||
<a href="https://api.whatsapp.com/send?phone=918606827707" target="_blank" |
|
||||
class="btn btn-block mb-2 deep_hover" |
|
||||
style="text-decoration: none; background-color: #25D366; color: #FFF; border-radius: 4px;"><i |
|
||||
class="fa fa-whatsapp mr-2"></i>+91 86068 27707</a> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
|
|
||||
</div> |
|
||||
<!-- End of Contact Cards --> |
|
||||
</section> |
|
||||
<!-- Footer --> |
|
||||
<section class="oe_container" style="padding: 2rem 3rem 1rem;"> |
|
||||
<div class="row" style="max-width:1540px; margin: 0 auto; margin-right: 3rem; "> |
|
||||
<!-- Logo --> |
|
||||
<div class="col-lg-12 d-flex justify-content-center align-items-center" style="margin-top: 3rem;"> |
|
||||
<img src="https://www.cybrosys.com/images/logo.png" width="200px" height="auto" /> |
|
||||
</div> |
|
||||
<!-- End of Logo --> |
|
||||
</div> |
|
||||
</section> |
|
||||
<!-- END OF FOOTER --> |
|
||||
|
|
||||
</div> |
|
@ -1,269 +0,0 @@ |
|||||
odoo.define('dynamic_dashboard_odoo.Dashboard', function (require) { |
|
||||
"use strict"; |
|
||||
|
|
||||
var AbstractAction = require('web.AbstractAction'); |
|
||||
var ajax = require('web.ajax'); |
|
||||
var core = require('web.core'); |
|
||||
var rpc = require('web.rpc'); |
|
||||
var session = require('web.session'); |
|
||||
var web_client = require('web.web_client'); |
|
||||
var _t = core._t; |
|
||||
var QWeb = core.qweb; |
|
||||
|
|
||||
var DynamicDashboard = AbstractAction.extend({ |
|
||||
template: 'dynamic_dashboard', |
|
||||
events: { |
|
||||
'click .add_block': '_onClick_add_block', |
|
||||
'click .add_grapgh': '_onClick_add_grapgh', |
|
||||
'click .block_setting': '_onClick_block_setting', |
|
||||
'click .tile': '_onClick_tile', |
|
||||
}, |
|
||||
|
|
||||
init: function(parent, context) { |
|
||||
this.action_id = context['id']; |
|
||||
this._super(parent, context); |
|
||||
this.block_ids = [] |
|
||||
}, |
|
||||
|
|
||||
start: function() { |
|
||||
var self = this; |
|
||||
this.set("title", 'Dashboard'); |
|
||||
|
|
||||
return this._super().then(function() { |
|
||||
self.render_dashboards(); |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
|
|
||||
willStart: function() { |
|
||||
var self = this; |
|
||||
return $.when(ajax.loadLibs(this), this._super()).then(function() { |
|
||||
return self.fetch_data(); |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
fetch_data: function() { |
|
||||
var self = this; |
|
||||
var def1 = this._rpc({ |
|
||||
model: 'dashboard.block', |
|
||||
method: 'get_dashboard_vals', |
|
||||
args: [[],this.action_id] |
|
||||
}).then(function(result) { |
|
||||
self.block_ids = result; |
|
||||
}); |
|
||||
return $.when(def1); |
|
||||
}, |
|
||||
|
|
||||
get_colors : function(x_axis) { |
|
||||
var color = [] |
|
||||
for (var j = 0; j < x_axis.length; j++) { |
|
||||
var r = Math.floor(Math.random() * 255); |
|
||||
var g = Math.floor(Math.random() * 255); |
|
||||
var b = Math.floor(Math.random() * 255); |
|
||||
color.push("rgb(" + r + "," + g + "," + b + ")"); |
|
||||
} |
|
||||
return color |
|
||||
}, |
|
||||
|
|
||||
get_values_bar : function(block){ |
|
||||
var labels = block['x_axis'] |
|
||||
var data = { |
|
||||
labels: labels, |
|
||||
datasets: [{ |
|
||||
label: "", |
|
||||
data: block['y_axis'], |
|
||||
backgroundColor: this.get_colors(block['x_axis']), |
|
||||
borderColor: 'rgba(200, 200, 200, 0.75)', |
|
||||
borderWidth: 1 |
|
||||
}] |
|
||||
}; |
|
||||
|
|
||||
var options = { |
|
||||
scales: { |
|
||||
y: { |
|
||||
beginAtZero: true |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
bar_data = [data,options] |
|
||||
return bar_data; |
|
||||
}, |
|
||||
|
|
||||
get_values_pie : function(block){ |
|
||||
var data = { |
|
||||
labels: block['x_axis'], |
|
||||
datasets: [{ |
|
||||
label: '', |
|
||||
data: block['y_axis'], |
|
||||
backgroundColor: this.get_colors(block['x_axis']), |
|
||||
hoverOffset: 4 |
|
||||
}] |
|
||||
}; |
|
||||
var options = { }, |
|
||||
pie_data = [data,options] |
|
||||
return pie_data; |
|
||||
}, |
|
||||
|
|
||||
get_values_line : function(block){ |
|
||||
var labels = block['x_axis'] |
|
||||
var data = { |
|
||||
labels: labels, |
|
||||
datasets: [{ |
|
||||
label: '', |
|
||||
data: block['y_axis'], |
|
||||
fill: false, |
|
||||
borderColor: 'rgb(75, 192, 192)', |
|
||||
tension: 0.1 |
|
||||
}] |
|
||||
}; |
|
||||
var options = { }, |
|
||||
line_data = [data,options] |
|
||||
return line_data; |
|
||||
|
|
||||
}, |
|
||||
|
|
||||
get_values_doughnut : function(block){ |
|
||||
var data = { |
|
||||
labels: block['x_axis'], |
|
||||
datasets: [{ |
|
||||
label: '', |
|
||||
data: block['y_axis'], |
|
||||
backgroundColor: this.get_colors(block['x_axis']), |
|
||||
hoverOffset: 4 |
|
||||
}] |
|
||||
}; |
|
||||
var options = { }, |
|
||||
doughnut_data = [data,options] |
|
||||
return doughnut_data; |
|
||||
|
|
||||
|
|
||||
}, |
|
||||
|
|
||||
get_values_radar : function(block){ |
|
||||
var data = { |
|
||||
labels: block['x_axis'], |
|
||||
datasets: [{ |
|
||||
label: '', |
|
||||
data: block['y_axis'], |
|
||||
fill: true, |
|
||||
backgroundColor: 'rgba(255, 99, 132, 0.2)', |
|
||||
borderColor: 'rgb(255, 99, 132)', |
|
||||
pointBackgroundColor: 'rgb(255, 99, 132)', |
|
||||
pointBorderColor: '#fff', |
|
||||
pointHoverBackgroundColor: '#fff', |
|
||||
pointHoverBorderColor: 'rgb(255, 99, 132)' |
|
||||
}] |
|
||||
}; |
|
||||
var options = { |
|
||||
elements: { |
|
||||
line: { |
|
||||
borderWidth: 3 |
|
||||
} |
|
||||
} |
|
||||
}, |
|
||||
radar_data = [data,options] |
|
||||
return radar_data; |
|
||||
}, |
|
||||
|
|
||||
render_dashboards: function() { |
|
||||
var self = this; |
|
||||
_.each(this.block_ids, function(block) { |
|
||||
if (block['type'] == 'tile') { |
|
||||
self.$('.o_dynamic_dashboard').append(QWeb.render('DynamicDashboardTile', {widget: block})); |
|
||||
} |
|
||||
else{ |
|
||||
self.$('.o_dynamic_chart').append(QWeb.render('DynamicDashboardChart', {widget: block})); |
|
||||
var element = $('[data-id=' + block['id'] + ']') |
|
||||
if (!('x_axis' in block)){ |
|
||||
return false |
|
||||
} |
|
||||
var ctx =self.$('.chart_graphs').last() |
|
||||
var type = block['graph_type'] |
|
||||
var chart_type = 'self.get_values_' + `${type}(block)` |
|
||||
var data = eval(chart_type) |
|
||||
//create Chart class object
|
|
||||
var chart = new Chart(ctx, { |
|
||||
type: type, |
|
||||
data: data[0], |
|
||||
options: data[1] |
|
||||
}); |
|
||||
} |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
_onClick_block_setting : function(event){ |
|
||||
event.stopPropagation(); |
|
||||
var self = this; |
|
||||
var id = $(event.currentTarget).closest('.block').attr('data-id'); |
|
||||
this.do_action({ |
|
||||
type: 'ir.actions.act_window', |
|
||||
res_model: 'dashboard.block', |
|
||||
view_mode: 'form', |
|
||||
res_id: parseInt(id), |
|
||||
views: [[false,'form']], |
|
||||
context: {'form_view_initial_mode': 'edit'}, |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
_onClick_add_block : function(e){ |
|
||||
var self = this; |
|
||||
var type = $(e.currentTarget).attr('data-type'); |
|
||||
ajax.jsonRpc('/create/tile', 'call', { |
|
||||
'type' : type, |
|
||||
'action_id' : self.action_id |
|
||||
}).then(function (result) { |
|
||||
if(result['type'] == 'tile'){ |
|
||||
self.$('.o_dynamic_dashboard').append(QWeb.render('DynamicDashboardTile', {widget: result})); |
|
||||
} |
|
||||
else{ |
|
||||
self.$('.o_dynamic_chart').append(QWeb.render('DynamicDashboardChart', {widget: result})); |
|
||||
var element = $('[data-id=' + result['id'] + ']') |
|
||||
var ctx =self.$('.chart_graphs').last() |
|
||||
var options = { |
|
||||
type: 'bar', |
|
||||
data: { |
|
||||
labels: [], |
|
||||
datasets: [ |
|
||||
{ |
|
||||
data: [], |
|
||||
borderWidth: 1 |
|
||||
}, |
|
||||
] |
|
||||
}, |
|
||||
} |
|
||||
var chart = new Chart(ctx, { |
|
||||
type: "bar", |
|
||||
data: options |
|
||||
}); |
|
||||
} |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
_onClick_tile : function(e){ |
|
||||
e.stopPropagation(); |
|
||||
var self = this; |
|
||||
var id = $(e.currentTarget).attr('data-id'); |
|
||||
ajax.jsonRpc('/tile/details', 'call', { |
|
||||
'id': id |
|
||||
}).then(function (result) { |
|
||||
self.do_action({ |
|
||||
name : result['model_name'], |
|
||||
type: 'ir.actions.act_window', |
|
||||
res_model:result['model'] , |
|
||||
view_mode: 'tree,form', |
|
||||
views: [[false, 'list'], [false, 'form']], |
|
||||
domain: result['filter'] |
|
||||
}); |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
|
|
||||
|
|
||||
}); |
|
||||
|
|
||||
|
|
||||
core.action_registry.add('dynamic_dashboard', DynamicDashboard); |
|
||||
|
|
||||
return DynamicDashboard; |
|
||||
|
|
||||
}); |
|
@ -1,94 +0,0 @@ |
|||||
.card{ |
|
||||
border: none; |
|
||||
border-radius: 0px; |
|
||||
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; |
|
||||
-webkit-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; |
|
||||
-moz-box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; |
|
||||
} |
|
||||
.card-header{ |
|
||||
background-color: transparent; |
|
||||
border: none; |
|
||||
} |
|
||||
:root { |
|
||||
/* Colors */ |
|
||||
--green: #00C689; |
|
||||
--blue: #3DA5F4; |
|
||||
--red: #F1536E; |
|
||||
--yellow: #FDA006; |
|
||||
/*Fonts*/ |
|
||||
--primary-font: 'Roboto', sans-serif; |
|
||||
} |
|
||||
|
|
||||
html .o_web_client > .o_action_manager { |
|
||||
overflow:auto; |
|
||||
} |
|
||||
|
|
||||
.bg-green { |
|
||||
background-color: var(--green); |
|
||||
} |
|
||||
|
|
||||
.bg-blue { |
|
||||
background-color: var(--blue); |
|
||||
} |
|
||||
|
|
||||
.bg-red { |
|
||||
background-color: var(--red); |
|
||||
} |
|
||||
|
|
||||
.bg-yellow { |
|
||||
background-color: var(--yellow); |
|
||||
} |
|
||||
|
|
||||
.text-color-yellow { |
|
||||
color: var(--yellow); |
|
||||
} |
|
||||
|
|
||||
.text-color-green { |
|
||||
color: var(--green); |
|
||||
} |
|
||||
|
|
||||
.text-color-blue { |
|
||||
color: var(--blue); |
|
||||
} |
|
||||
|
|
||||
.text-color-red { |
|
||||
color: var(--red); |
|
||||
} |
|
||||
|
|
||||
.text-color-yellow { |
|
||||
color: var(--yellow); |
|
||||
} |
|
||||
|
|
||||
.tile-container { |
|
||||
padding: 3.2rem 1.5rem; |
|
||||
border-radius: 2rem; |
|
||||
} |
|
||||
|
|
||||
.tile-container__icon-container { |
|
||||
border-radius: 50%; |
|
||||
width: 4.75rem; |
|
||||
height: 4.75rem; |
|
||||
font-size: 28px; |
|
||||
} |
|
||||
|
|
||||
.status-container__title { |
|
||||
font-family: var(--primary-font); |
|
||||
font-weight: 500; |
|
||||
font-size: 1.5rem; |
|
||||
line-height: 1.5rem; |
|
||||
} |
|
||||
|
|
||||
.status-container__figures { |
|
||||
font-family: var(--primary-font); |
|
||||
} |
|
||||
|
|
||||
.status-container__figures>h3 { |
|
||||
font-weight: 700; |
|
||||
font-size: 1.5rem; |
|
||||
line-height: 1.813rem; |
|
||||
} |
|
||||
|
|
||||
.tile-container__setting-icon { |
|
||||
top: 0.638rem; |
|
||||
right: 1rem; |
|
||||
} |
|
@ -1,71 +0,0 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<templates id="template" xml:space="preserve"> |
|
||||
<t t-name="dynamic_dashboard"> |
|
||||
<div class="container"> |
|
||||
<button class="btn btn-primary add_block" data-type="tile" type="button">Add Block |
|
||||
</button> |
|
||||
<button class="btn btn-primary add_block" data-type="graph" type="button">Add Graph |
|
||||
</button> |
|
||||
<div class=" o_dynamic_dashboard row"> |
|
||||
</div> |
|
||||
<div style="padding-top: 100px" class="o_dynamic_chart row"> |
|
||||
</div> |
|
||||
</div> |
|
||||
</t> |
|
||||
<t t-name="DynamicDashboardTile"> |
|
||||
<div class="col-sm-12 col-md-12 col-lg-3 tile block" t-att-data-id="widget.id"> |
|
||||
<div t-att-style="widget.color+widget.text_color" |
|
||||
class="tile-container d-flex justify-content-around align-items-center position-relative w-100 h-auto my-3"> |
|
||||
<a t-att-style="widget.text_color" |
|
||||
class="block_setting position-absolute tile-container__setting-icon"><i |
|
||||
class="fa fa-cog"></i></a> |
|
||||
<div t-att-style="widget.icon_color" |
|
||||
class="tile-container__icon-container bg-white d-flex justify-content-center align-items-center"> |
|
||||
<i t-att-class="widget.icon"></i> |
|
||||
</div> |
|
||||
<div class="tile-container__status-container"> |
|
||||
<h2 class="status-container__title"><t t-esc="widget.name"/></h2> |
|
||||
<div class="status-container__figures d-flex flex-wrap align-items-baseline"> |
|
||||
<h3 class="mb-0 mb-md-1 mb-lg-0 mr-1"><t t-esc="widget.value"/></h3> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</t> |
|
||||
<t t-name="DynamicDashboardChart"> |
|
||||
<head> |
|
||||
<meta charset="UTF-8"/> |
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/> |
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
|
||||
<title>Dashboard</title> |
|
||||
<link rel="stylesheet" |
|
||||
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/css/bootstrap.min.css" |
|
||||
integrity="sha512-P5MgMn1jBN01asBgU0z60Qk4QxiXo86+wlFahKrsQf37c9cro517WzVSPPV1tDKzhku2iJ2FVgL67wG03SGnNA==" |
|
||||
crossorigin="anonymous"/> |
|
||||
</head> |
|
||||
<div style="padding-bottom:30px" t-att-class="widget.cols +' col-4 block'" t-att-data-id="widget.id"> |
|
||||
<div class="card"> |
|
||||
<div class="card-header"> |
|
||||
<div class="row"> |
|
||||
<div class="col"> |
|
||||
<h3><t t-esc="widget.name"/></h3> |
|
||||
</div> |
|
||||
<div class="col"> |
|
||||
<div style="float:right;"><i title="Configuration" class="fa fa-cog block_setting fa-2x"/></div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
<div class="card-body mt-3" id="in_ex_body_hide"> |
|
||||
<div class="row"> |
|
||||
<div class="col-md-12 chart_canvas"> |
|
||||
<div id="chart_canvas"> |
|
||||
<canvas class="chart_graphs" width="300" height="200"> </canvas> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</div> |
|
||||
</t> |
|
||||
|
|
||||
</templates> |
|
@ -1,44 +0,0 @@ |
|||||
<odoo> |
|
||||
<record id="dashboard_menu_form_view" model="ir.ui.view"> |
|
||||
<field name="name">dashboard.menu.form.view</field> |
|
||||
<field name="model">dashboard.menu</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form> |
|
||||
<sheet> |
|
||||
<group> |
|
||||
<group> |
|
||||
<field name="name"/> |
|
||||
<field name="menu_id"/> |
|
||||
<field name="group_ids" widget="many2many_tags" invisible="1"/> |
|
||||
<field name="client_action" invisible="1"/> |
|
||||
</group> |
|
||||
</group> |
|
||||
</sheet> |
|
||||
</form> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="view_dashboard_menu_tree" model="ir.ui.view"> |
|
||||
<field name="name">dashboard.menu.tree.view</field> |
|
||||
<field name="model">dashboard.menu</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<tree> |
|
||||
<field name="name"/> |
|
||||
<field name="menu_id"/> |
|
||||
</tree> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="action_dashboard_menu" model="ir.actions.act_window"> |
|
||||
<field name="name">Dashboard Menu</field> |
|
||||
<field name="type">ir.actions.act_window</field> |
|
||||
<field name="res_model">dashboard.menu</field> |
|
||||
<field name="view_mode">tree,form</field> |
|
||||
</record> |
|
||||
<menuitem name="Configuration" id="menu_dynamic_dashboard_configuration" parent="dynamic_dashboard_odoo.menu_dashboard" |
|
||||
sequence="3"/> |
|
||||
<menuitem name="Dashboards" id="menu_dynamic_dashboard_menu" parent="dynamic_dashboard_odoo.menu_dynamic_dashboard_configuration" |
|
||||
sequence="3" action="action_dashboard_menu"/> |
|
||||
|
|
||||
|
|
||||
</odoo> |
|
@ -1,23 +0,0 @@ |
|||||
<odoo> |
|
||||
<data> |
|
||||
<record id="action_dynamic_dashboard" model="ir.actions.client"> |
|
||||
<field name="name">Dashboard</field> |
|
||||
<field name="tag">dynamic_dashboard</field> |
|
||||
</record> |
|
||||
|
|
||||
<menuitem name="Dashboard" id="menu_dashboard" sequence="1"/> |
|
||||
<menuitem name="Dashboards" id="menu_dynamic_dashboard" parent="dynamic_dashboard_odoo.menu_dashboard" |
|
||||
sequence="1" action="action_dynamic_dashboard"/> |
|
||||
|
|
||||
<template id="assets_backend_dashboard" name="dynamic-dashboard assets inherit" inherit_id="web.assets_backend"> |
|
||||
<xpath expr="." position="inside"> |
|
||||
<script type="text/javascript" src="/dynamic_dashboard_odoo/static/src/js/dynamic_dashboard.js"/> |
|
||||
|
|
||||
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet" /> |
|
||||
<link rel="stylesheet" type="text/scss" href="/dynamic_dashboard_odoo/static/src/scss/style.scss" /> |
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.js"/> |
|
||||
</xpath> |
|
||||
</template> |
|
||||
|
|
||||
</data> |
|
||||
</odoo> |
|
@ -1,69 +0,0 @@ |
|||||
<odoo> |
|
||||
<record id="dashboard_block_form_view" model="ir.ui.view"> |
|
||||
<field name="name">dashboard.block.form.view</field> |
|
||||
<field name="model">dashboard.block</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<form> |
|
||||
<sheet> |
|
||||
<group> |
|
||||
<group> |
|
||||
<div> |
|
||||
<field name="name" style="font-size: 30px;" placeholder="Block Name" required="1"/> |
|
||||
</div> |
|
||||
</group> |
|
||||
</group> |
|
||||
<group> |
|
||||
<group> |
|
||||
<field name="model_id" attrs="{'required':[('edit_mode','=', True)]}"/> |
|
||||
<field name="client_action" invisible="1"/> |
|
||||
<field name="model_name" invisible="1"/> |
|
||||
<field name="edit_mode" invisible="1"/> |
|
||||
<field name="operation" attrs="{'required':[('edit_mode','=', True)]}"/> |
|
||||
<field name="measured_field" domain="[('model_id','=',model_id), ('ttype','in',['float','integer','monetary']), ('store', '=', True)]" attrs="{'required':[('edit_mode','=', True)]}"/> |
|
||||
<field name="filter" widget="domain" options="{'model': 'model_name'}"/> |
|
||||
</group> |
|
||||
</group> |
|
||||
<group string="Block Information"> |
|
||||
<group> |
|
||||
<field name="sequence" invisible="1"/> |
|
||||
<field name="type" required="1"/> |
|
||||
<field name="graph_type" attrs="{'invisible': [('type','not in', 'graph')]}"/> |
|
||||
<field name="graph_size" attrs="{'invisible': [('type','not in', 'graph')]}"/> |
|
||||
<field name="fa_icon" attrs="{'invisible': [('type','not in', 'tile')]}"/> |
|
||||
<field name="group_by" attrs="{'invisible': [('type','not in', 'graph')], 'required':[('edit_mode','=', True),('type','=','graph')]}" |
|
||||
domain="[('model_id','=',model_id), ('ttype','!=','one2many'), ('store', '=', True)]"/> |
|
||||
<field name="tile_color" attrs="{'invisible': [('type','not in', 'tile')]}" |
|
||||
widget="color"/> |
|
||||
<field name="text_color" attrs="{'invisible': [('type','not in', 'tile')]}" |
|
||||
widget="color"/> |
|
||||
</group> |
|
||||
</group> |
|
||||
</sheet> |
|
||||
</form> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="view_dashboard_block_tree" model="ir.ui.view"> |
|
||||
<field name="name">dashboard.block.tree.view</field> |
|
||||
<field name="model">dashboard.block</field> |
|
||||
<field name="arch" type="xml"> |
|
||||
<tree> |
|
||||
<field name="name"/> |
|
||||
<field name="model_id"/> |
|
||||
<field name="type"/> |
|
||||
</tree> |
|
||||
</field> |
|
||||
</record> |
|
||||
|
|
||||
<record id="action_dashboard_block" model="ir.actions.act_window"> |
|
||||
<field name="name">Dashboard Block</field> |
|
||||
<field name="type">ir.actions.act_window</field> |
|
||||
<field name="res_model">dashboard.block</field> |
|
||||
<field name="view_mode">tree,form</field> |
|
||||
<field name="context">{'default_edit_mode' : True}</field> |
|
||||
</record> |
|
||||
<menuitem name="Blocks" id="menu_dynamic_dashboard_blocks" parent="dynamic_dashboard_odoo.menu_dashboard" |
|
||||
sequence="1" action="action_dashboard_block"/> |
|
||||
|
|
||||
|
|
||||
</odoo> |
|