Browse Source

May 02 : [ADD] Initial Commit 'portal_dashboard'

dependabot/npm_and_yarn/odoo_website_helpdesk/static/src/cdn/minimist-1.2.8
Sayooj 2 years ago
parent
commit
13388606c7
  1. 43
      portal_dashboard/README.rst
  2. 23
      portal_dashboard/__init__.py
  3. 53
      portal_dashboard/__manifest__.py
  4. 22
      portal_dashboard/controllers/__init__.py
  5. 233
      portal_dashboard/controllers/portal_dashboard.py
  6. 6
      portal_dashboard/doc/RELEASE_NOTES.md
  7. 23
      portal_dashboard/models/__init__.py
  8. 89
      portal_dashboard/models/chart_data.py
  9. 54
      portal_dashboard/models/res_config_settings.py
  10. BIN
      portal_dashboard/static/description/assets/icons/check.png
  11. BIN
      portal_dashboard/static/description/assets/icons/chevron.png
  12. BIN
      portal_dashboard/static/description/assets/icons/cogs.png
  13. BIN
      portal_dashboard/static/description/assets/icons/consultation.png
  14. BIN
      portal_dashboard/static/description/assets/icons/ecom-black.png
  15. BIN
      portal_dashboard/static/description/assets/icons/education-black.png
  16. BIN
      portal_dashboard/static/description/assets/icons/hotel-black.png
  17. BIN
      portal_dashboard/static/description/assets/icons/license.png
  18. BIN
      portal_dashboard/static/description/assets/icons/lifebuoy.png
  19. BIN
      portal_dashboard/static/description/assets/icons/manufacturing-black.png
  20. BIN
      portal_dashboard/static/description/assets/icons/pos-black.png
  21. BIN
      portal_dashboard/static/description/assets/icons/puzzle.png
  22. BIN
      portal_dashboard/static/description/assets/icons/restaurant-black.png
  23. BIN
      portal_dashboard/static/description/assets/icons/service-black.png
  24. BIN
      portal_dashboard/static/description/assets/icons/trading-black.png
  25. BIN
      portal_dashboard/static/description/assets/icons/training.png
  26. BIN
      portal_dashboard/static/description/assets/icons/update.png
  27. BIN
      portal_dashboard/static/description/assets/icons/user.png
  28. BIN
      portal_dashboard/static/description/assets/icons/wrench.png
  29. BIN
      portal_dashboard/static/description/assets/misc/categories.png
  30. BIN
      portal_dashboard/static/description/assets/misc/check-box.png
  31. BIN
      portal_dashboard/static/description/assets/misc/compass.png
  32. BIN
      portal_dashboard/static/description/assets/misc/corporate.png
  33. BIN
      portal_dashboard/static/description/assets/misc/customer-support.png
  34. BIN
      portal_dashboard/static/description/assets/misc/cybrosys-logo.png
  35. BIN
      portal_dashboard/static/description/assets/misc/features.png
  36. BIN
      portal_dashboard/static/description/assets/misc/logo.png
  37. BIN
      portal_dashboard/static/description/assets/misc/pictures.png
  38. BIN
      portal_dashboard/static/description/assets/misc/pie-chart.png
  39. BIN
      portal_dashboard/static/description/assets/misc/right-arrow.png
  40. BIN
      portal_dashboard/static/description/assets/misc/star.png
  41. BIN
      portal_dashboard/static/description/assets/misc/support.png
  42. BIN
      portal_dashboard/static/description/assets/misc/whatsapp.png
  43. BIN
      portal_dashboard/static/description/assets/modules/1.png
  44. BIN
      portal_dashboard/static/description/assets/modules/2.png
  45. BIN
      portal_dashboard/static/description/assets/modules/3.png
  46. BIN
      portal_dashboard/static/description/assets/modules/4.png
  47. BIN
      portal_dashboard/static/description/assets/modules/5.gif
  48. BIN
      portal_dashboard/static/description/assets/modules/6.png
  49. BIN
      portal_dashboard/static/description/assets/screenshots/01.png
  50. BIN
      portal_dashboard/static/description/assets/screenshots/02.png
  51. BIN
      portal_dashboard/static/description/assets/screenshots/03.png
  52. BIN
      portal_dashboard/static/description/assets/screenshots/04.png
  53. BIN
      portal_dashboard/static/description/assets/screenshots/05.png
  54. BIN
      portal_dashboard/static/description/assets/screenshots/06.png
  55. BIN
      portal_dashboard/static/description/assets/screenshots/07.png
  56. BIN
      portal_dashboard/static/description/assets/screenshots/08.png
  57. BIN
      portal_dashboard/static/description/assets/screenshots/v16-hero.gif
  58. BIN
      portal_dashboard/static/description/banner.png
  59. BIN
      portal_dashboard/static/description/icon.png
  60. 565
      portal_dashboard/static/description/index.html
  61. BIN
      portal_dashboard/static/src/images/bill.png
  62. BIN
      portal_dashboard/static/src/images/inv.png
  63. BIN
      portal_dashboard/static/src/images/po.png
  64. BIN
      portal_dashboard/static/src/images/project.png
  65. BIN
      portal_dashboard/static/src/images/q1.png
  66. BIN
      portal_dashboard/static/src/images/rfq.png
  67. BIN
      portal_dashboard/static/src/images/so.png
  68. BIN
      portal_dashboard/static/src/images/task.png
  69. 123
      portal_dashboard/static/src/js/portal_dashboard_graph.js
  70. 40
      portal_dashboard/static/src/scss/style.scss
  71. 559
      portal_dashboard/views/dashboard.xml
  72. 177
      portal_dashboard/views/res_config_settings_views.xml

43
portal_dashboard/README.rst

@ -0,0 +1,43 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Portal Dashboard for Odoo 16
================================================
* Portal Dashboard for Odoo 16 used to get a dashboard view for my portal in website
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon
License
-------
AFFERO General Public License, Version 3 (AGPL v3).
(https://www.odoo.com/documentation/16.0/legal/licenses.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer:(V16) Megha AP
Contacts
--------
* Mail Contact : odoo@cybrosys.com
Bug Tracker
-----------
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported.
Maintainer
==========
This module is maintained by Cybrosys Technologies.
For support and more information, please visit https://www.cybrosys.com
Further information
===================
HTML Description: `<static/description/index.html>`__

23
portal_dashboard/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import controllers
from . import models

53
portal_dashboard/__manifest__.py

@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
{
'name': "Portal Dashboard",
'version': '16.0.1.0.0',
'summary': """Portal Dashboard to view the my account in dashboard view""",
'description': 'View of my account in portal view is changed to dashboard '
'view for better user experience',
'category': 'Extra Tools',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['base', 'sale', 'project', 'crm', 'purchase', 'website'],
'images': [
'/static/description/banner.png',
],
'data': [
'views/res_config_settings_views.xml',
'views/dashboard.xml',
],
'assets': {
'web.assets_frontend': [
'portal_dashboard/static/src/js/portal_dashboard_graph.js',
'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js',
'/portal_dashboard/static/src/scss/style.scss'
]
},
'license': 'AGPL-3',
'installable': True,
'auto_install': True,
'application': False,
}

22
portal_dashboard/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import portal_dashboard

233
portal_dashboard/controllers/portal_dashboard.py

@ -0,0 +1,233 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo.http import request, route
from odoo.addons.portal.controllers.portal import CustomerPortal
class DashboardPortal(CustomerPortal):
""" This class is used to super already existing dashboard portal to
change the template"""
@route(['/my', '/my/home'], type='http', auth="user", website=True)
def home(self, **kw):
"""Replaces already existing work flow of portal view to redirect to
new template with record values and count"""
user = request.env.user.id
partners = request.env.user
group_id = request.env.ref('base.group_user')
sale_order = request.env['sale.order'].sudo()
purchase_order = request.env['purchase.order'].sudo()
account_move = request.env['account.move']
project = request.env['project.project'].sudo()
task = request.env['project.task'].sudo()
config_parameters = request.env['ir.config_parameter'].sudo()
number_project = ""
projects_limited = ""
tasks_limited = ""
number_account = ""
invoices_limited = ""
show_project = request.env[
'ir.config_parameter'
].sudo().get_param('portal_dashboard.is_show_project')
show_account = request.env['ir.config_parameter'].sudo().get_param(
'portal_dashboard.is_show_recent_invoice_bill')
show_so_q = request.env[
'ir.config_parameter'
].sudo().get_param('portal_dashboard.is_show_recent_so_q')
show_po_rfq = request.env[
'ir.config_parameter'
].sudo().get_param('portal_dashboard.is_show_recent_po_rfq')
number_so = ""
sale_orders_limited = ""
quotations_limited = ""
number_po = ""
purchase_orders_limited = ""
rfq_limited = ""
if group_id in partners.groups_id:
if show_so_q:
number_so = request.env[
'ir.config_parameter'
].sudo().get_param('portal_dashboard.sale_count', 0)
sale_orders_limited = sale_order.search([
('user_id', '=', user),
('state', 'not in', ['draft', 'sent'])
], limit=int(number_so))
quotations_limited = sale_order.search([
('user_id', '=', user),
('state', 'in', ['sent'])
], limit=int(number_so))
if show_po_rfq:
number_po = config_parameters.get_param(
'portal_dashboard.purchase_count', 0)
purchase_orders_limited = purchase_order.search([
('user_id', '=', user),
('state', 'not in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
rfq_limited = purchase_order.search([
('user_id', '=', user),
('state', 'in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
if show_project:
number_project = config_parameters.get_param(
'portal_dashboard.project_count', 0)
projects_limited = project.search([],
limit=int(number_project))
tasks_limited = task.search([], limit=int(number_project))
if show_account:
number_account = config_parameters.get_param(
'portal_dashboard.account_count', 0)
invoices_limited = account_move.search([
('invoice_user_id', '=', user),
('state', 'not in', ['draft', 'cancel'])
], limit=int(number_account))
sale_orders = sale_order.search([
('user_id', '=', user),
('state', 'not in', ['draft', 'sent'])
])
quotations = sale_order.search([
('user_id', '=', user),
('state', 'in', ['sent'])
])
purchase_orders = purchase_order.search([
('user_id', '=', user),
('state', 'not in', ['draft', 'sent', 'to approve'])
])
rfq = purchase_order.search([
('user_id', '=', user),
('state', 'in', ['sent', 'to approve'])
])
projects = project.search([])
tasks = task.search([])
invoices = account_move.search([
('invoice_user_id', '=', user),
('state', 'not in', ['draft', 'cancel'])
])
else:
if show_so_q:
number_so = config_parameters.get_param(
'portal_dashboard.sale_count', 0)
sale_orders_limited = sale_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'sent'])
], limit=int(number_so))
quotations_limited = sale_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'in', ['sent'])
], limit=int(number_so))
if show_po_rfq:
number_po = config_parameters.get_param(
'portal_dashboard.purchase_count', 0)
purchase_orders_limited = purchase_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
rfq_limited = purchase_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
if show_project:
number_project = config_parameters.get_param(
'portal_dashboard.project_count', 0)
projects_limited = project.search([('user_id', '=', user)],
limit=int(number_project))
tasks_limited = task.search([('user_id', '=', user)],
limit=int(number_project))
if show_account:
number_account = config_parameters.get_param(
'portal_dashboard.account_count', 0)
invoices_limited = account_move.search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'cancel'])
], limit=int(number_account))
sale_orders = sale_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'sent'])
])
quotations = sale_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'in', ['sent'])
])
purchase_orders = purchase_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'sent', 'to approve'])
])
rfq = purchase_order.search([
('partner_id', '=', partners.partner_id.id),
('state', 'in', ['sent', 'to approve'])
])
projects = project.search([
('user_id', '=', user)
])
tasks = task.search([('user_id', '=', user)])
invoices = account_move.search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'cancel'])
])
values = self._prepare_portal_layout_values()
values['sale_order_portal'] = sale_orders
values['quotation_portal'] = quotations
values['purchase_orders_portal'] = purchase_orders
values['rfq_portal'] = rfq
values['projects_portal'] = projects
values['tasks_portal'] = tasks
values['invoices_portal'] = invoices
values['number_so_portal'] = number_so
values['number_po_portal'] = number_po
values['number_account_portal'] = number_account
values['number_project_portal'] = number_project
values['sale_orders_limited'] = sale_orders_limited
values['quotations_limited'] = quotations_limited
values['purchase_orders_limited'] = purchase_orders_limited
values['rfq_limited'] = rfq_limited
values['invoices_limited'] = invoices_limited
values['projects_limited'] = projects_limited
values['tasks_limited'] = tasks_limited
values['show_so_q'] = show_so_q
values['show_po_rfq'] = show_po_rfq
values['show_project'] = show_project
values['show_account'] = show_account
return request.render("portal_dashboard.replace_dashboard_portal_view",
values)

6
portal_dashboard/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <portal_dashboard>
#### 22.02.2023
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Portal Dashboard

23
portal_dashboard/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from . import res_config_settings
from . import chart_data

89
portal_dashboard/models/chart_data.py

@ -0,0 +1,89 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
###############################################################################
from odoo import api, models
class ChartData(models.Model):
"""Used to set graphs in portal dashboard template"""
_name = 'portal.dashboard.data'
_description = 'To get portal dashboard data'
@api.model
def datafetch(self):
"""To fetch datas of backend documents to show in the portal
dashboard template depending on count of record"""
partner = self.env.user.id
partners = self.env.user
group_id = self.env.ref('base.group_user')
all_accounting = []
if group_id in partners.groups_id:
all_invoice = self.env['account.move'].search([
('state', 'not in', ['draft', 'cancel'])
])
invoice_count = len(all_invoice)
all_accounting.append(invoice_count)
else:
all_invoice = self.env['account.move'].search([
('partner_id','=', partners.partner_id.id),
('state', 'not in', ['draft', 'cancel'])
])
invoice_count = len(all_invoice)
all_accounting.append(invoice_count)
all_so = []
sale_order = self.env['sale.order'].search([
('user_id', '=', partner),
('state', 'not in', ['draft', 'sent'])])
quotations = self.env['sale.order'].search([('user_id', '=', partner),
('state', 'in', ['sent'])
])
so_count = len(sale_order)
all_so.append(so_count)
q_count = len(quotations)
all_so.append(q_count)
all_purchase_order = []
purchase_order = self.env['purchase.order'].search([
('user_id', '=', partner),
('state', 'not in', ['draft', 'sent', 'to approve'])
])
rfqs = self.env['purchase.order'].search([
('user_id', '=', partner),
('state', 'in', ['sent', 'to approve'])
])
po_count = len(purchase_order)
all_purchase_order.append(po_count)
rfq_count = len(rfqs)
all_purchase_order.append(rfq_count)
return {
'target': all_so,
'target_po': all_purchase_order,
'target_accounting': all_accounting
}

54
portal_dashboard/models/res_config_settings.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Megha A P (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
"""This class is used to inherit settings and add some fields to get
number of count of data that needs to
show in the dashboard"""
_inherit = 'res.config.settings'
is_show_recent_so_q = fields.Boolean(
string='Is show recent quotation and sale order table',
config_parameter='portal_dashboard.is_show_recent_so_q')
sale_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.sale_count')
is_show_recent_po_rfq = fields.Boolean(
string='Is show recent RFQ table?',
config_parameter='portal_dashboard.is_show_recent_po_rfq')
purchase_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.purchase_count')
is_show_project = fields.Boolean(
string='Is show project task table?',
config_parameter='portal_dashboard.is_show_project')
project_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.project_count')
is_show_recent_invoice_bill = fields.Boolean(
string='Is show recent invoice/bill table?',
config_parameter='portal_dashboard.is_show_recent_invoice_bill')
account_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.account_count')

BIN
portal_dashboard/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
portal_dashboard/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
portal_dashboard/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
portal_dashboard/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
portal_dashboard/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
portal_dashboard/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
portal_dashboard/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
portal_dashboard/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
portal_dashboard/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
portal_dashboard/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
portal_dashboard/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
portal_dashboard/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
portal_dashboard/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
portal_dashboard/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
portal_dashboard/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
portal_dashboard/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
portal_dashboard/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
portal_dashboard/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
portal_dashboard/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
portal_dashboard/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
portal_dashboard/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
portal_dashboard/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
portal_dashboard/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
portal_dashboard/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
portal_dashboard/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
portal_dashboard/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
portal_dashboard/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
portal_dashboard/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
portal_dashboard/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
portal_dashboard/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
portal_dashboard/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
portal_dashboard/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
portal_dashboard/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
portal_dashboard/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
portal_dashboard/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
portal_dashboard/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

BIN
portal_dashboard/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
portal_dashboard/static/description/assets/modules/5.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

BIN
portal_dashboard/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
portal_dashboard/static/description/assets/screenshots/01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

BIN
portal_dashboard/static/description/assets/screenshots/02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

BIN
portal_dashboard/static/description/assets/screenshots/03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
portal_dashboard/static/description/assets/screenshots/04.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
portal_dashboard/static/description/assets/screenshots/05.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
portal_dashboard/static/description/assets/screenshots/06.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
portal_dashboard/static/description/assets/screenshots/07.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
portal_dashboard/static/description/assets/screenshots/08.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

BIN
portal_dashboard/static/description/assets/screenshots/v16-hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

BIN
portal_dashboard/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
portal_dashboard/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

565
portal_dashboard/static/description/index.html

@ -0,0 +1,565 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;"
xmlns="http://www.w3.org/1999/html">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" />
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Portal Dashboard</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Change the design of my portal view in website</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/v16-hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;" />
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36" />
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Overview
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This application allows to Change the theme of my portal view in website
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Features
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center" style="margin-top: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community Support.</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Allows to view table view of sale order, quotations, purchase orders, RFQ s, invoices, bills, projects and tasks</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Can set the number of document wants to show in the table
</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Able to view documents directly from the dashboard</span>
</div>
<div class="d-flex align-items-center" style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2" />
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Graphical presentation of analysis of sales, purchase and accounts are available</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
You can see these fields in the settings to set the table view
</p>
<img src="assets/screenshots/01.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
These are the different documents and their counts shown in card format</p>
<img src="assets/screenshots/02.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Here you can click on the view option to view each documents, for example quotations as like this</p>
<img src="assets/screenshots/03.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
you can see table representation of documents according to the number of document needed set in settings
</p>
<img src="assets/screenshots/04.png" class="img-thumbnail"></br></br>
<img src="assets/screenshots/05.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Also there are analysis pie chart for sales, purchase and accounting
</p>
<img src="assets/screenshots/06.png" class="img-thumbnail"></br></br>
<img src="assets/screenshots/07.png" class="img-thumbnail"></br></br>
<img src="assets/screenshots/08.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding:30px">
<div class="carousel-item" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/whatsapp_redirect/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/1.png?6d5ca15">
</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/16.0/hr_payroll_community/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/2.png?6d5ca15">
</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/16.0/crm_dashboard/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/3.png?6d5ca15">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height:198.656px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/export_stockinfo_xls/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/4.png?6d5ca15">
</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/16.0/sale_discount_total/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/5.png?6d5ca15">
</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/16.0/fleet_rental/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius:0px"
src="//apps.odoocdn.com/apps/assets/16.0/base_accounting_kit/assets/modules/6.png?6d5ca15">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="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="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 RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<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>
</div>
<!-- END OF END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; 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: 0px; 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: 0px; 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: 0px; 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: 0px; 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 &amp; 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: 0px; 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: 0px; 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: 0px; 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>
</div>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48" style="width: 42px; height: 42px;" />
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help? Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52" style="width: 52px; height: 52px;" />
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31" style="width:144px; height: 31px; margin-top: 40px;" />
</div>
</div>
</div>
<!-- END OF SUPPORT -->

BIN
portal_dashboard/static/src/images/bill.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
portal_dashboard/static/src/images/inv.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
portal_dashboard/static/src/images/po.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
portal_dashboard/static/src/images/project.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

BIN
portal_dashboard/static/src/images/q1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
portal_dashboard/static/src/images/rfq.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
portal_dashboard/static/src/images/so.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
portal_dashboard/static/src/images/task.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

123
portal_dashboard/static/src/js/portal_dashboard_graph.js

@ -0,0 +1,123 @@
odoo.define('portal_dashboard.PortalDashBoardGraph', function (require){
"use strict";
var rpc = require('web.rpc');
var publicWidget = require('web.public.widget');
const Dialog = require('web.Dialog');
const {_t, qweb} = require('web.core');
const session = require('web.session');
publicWidget.registry.PortalDashBoardGraph = publicWidget.Widget.extend({
selector: '.portal_dashboard',
init: function(parent, context) {
this._super(parent, context);
},
start: function() {
this.set("title", 'Portal Dashboard');
this.fetch_data()
},
fetch_data: function(){
// To fetch data for showing in dashboard as graph
var def = this._rpc({
model: 'portal.dashboard.data',
method: 'datafetch'
}).then(function(result){
// To set graph for sales
const DATA_COUNT_so = ['Sale order', 'Quotations'];
const NUMBER_CFG_so = {count: DATA_COUNT_so, min: 0, max: 100};
const labels_1 = ['Sale order', 'Quotations'];
const data_1 = {
labels: labels_1,
datasets: [
{
label: 'New',
data: result['target'],
backgroundColor: ['rgb(47, 79, 79)', 'rgb(15, 127, 127)'],
}
]
};
const config_1 = {
type: 'pie',
data: data_1,
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
title: {
display: true,
text: 'Sales Analysis'
}
}
},
};
// To set graph for purchase
const DATA_COUNT_po = ['Purchase order', 'RFQ'];
const NUMBER_CFG_po = {count: DATA_COUNT_po, min: 0, max: 100};
const labels_2 = ['Purchase order', 'RFQ'];
const data_2 = {
labels: labels_2,
datasets: [
{
label: 'New',
data: result['target_po'],
backgroundColor: ['rgb(107, 99, 99)', 'rgb(135, 147, 147)'],
}
]
};
const config_2 = {
type: 'pie',
data: data_2,
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
title: {
display: true,
text: 'Purchase Analysis'
}
}
},
};
// To set graph for account moves
const DATA_COUNT_invoice = ['Invoices', 'Bill'];
const NUMBER_CFG_invoice = {count: DATA_COUNT_invoice, min: 0, max: 100};
const labels_3 = ['Invoices', 'Bill'];
const data_3 = {
labels: labels_3,
datasets: [
{
label: 'New',
data: result['target_accounting'],
backgroundColor: ['rgb(207, 99, 99)', 'rgb(235, 187, 147)'],
}
]
};
const config_3 = {
type: 'pie',
data: data_3,
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
title: {
display: true,
text: 'Accounting Analysis'
}
}
},
};
const sales_pie = new Chart(document.getElementById('sales_pie'),config_1);
const purchase_pie = new Chart(document.getElementById('purchase_pie'),config_2);
const account_pie = new Chart(document.getElementById('account_pie'),config_3);
});
return $.when(def);
},
});
})

40
portal_dashboard/static/src/scss/style.scss

@ -0,0 +1,40 @@
.number_project{
background: blue;
color:yellow;
display:grid;
justify-content:center;
height: 48px;
align-items: center;
font-size: 22px;
}
.main_box{
width:300px;
height:200px;
margin-left:20px;
display:inline-block;
}
.button_style{
cursor: pointer;
border:none;
background:none;
}
card_footer{
display: flex;
justify-content: center;
}
container_style{
width:100%;
margin-top:2%;
margin-left:16%;
border:1px solid gray;
}
card_text{
width:50%;
height:50%;
margin-left:auto;
margin-right:auto;
}
second_div{
width:76%;
padding-bottom:1%;
}

559
portal_dashboard/views/dashboard.xml

@ -0,0 +1,559 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<template id="replace_dashboard_portal_view">
<t t-call="portal.frontend_layout">
<!-- To set the count of data-->
<t t-set="count_quotation" t-value="0"/>
<t t-foreach="quotation_portal" t-as="q">
<t t-set="count_quotation" t-value="count_quotation+1"/>
</t>
<t t-set="count_task" t-value="0"/>
<t t-foreach="tasks_portal" t-as="t">
<t t-set="count_task" t-value="count_task+1"/>
</t>
<t t-set="count_lead" t-value="0"/>
<t t-foreach="leads_portal" t-as="l">
<t t-set="count_lead" t-value="count_lead+1"/>
</t>
<t t-set="count_opportunity" t-value="0"/>
<t t-foreach="opportunities_portal" t-as="o">
<t t-set="count_opportunity" t-value="count_opportunity+1"/>
</t>
<t t-set="count_so" t-value="0"/>
<t t-foreach="sale_order_portal" t-as="s">
<t t-set="count_so" t-value="count_so+1"/>
</t>
<t t-set="count_rfq" t-value="0"/>
<t t-foreach="rfq_portal" t-as="r">
<t t-set="count_rfq" t-value="count_rfq+1"/>
</t>
<t t-set="count_po" t-value="0"/>
<t t-foreach="purchase_orders_portal" t-as="p">
<t t-set="count_po" t-value="count_po+1"/>
</t>
<t t-set="count_project" t-value="0"/>
<t t-foreach="projects_portal" t-as="pr">
<t t-set="count_project" t-value="count_project+1"/>
</t>
<t t-set="count_invoice" t-value="0"/>
<t t-foreach="invoices_portal" t-as="in">
<t t-set="count_invoice" t-value="count_invoice+1"/>
</t>
<t t-set="count_bill" t-value="0"/>
<!-- End of setting the count of data-->
<div class="portal_dashboard">
<!-- Adding each record and their count-->
<div style="width:70%;margin-left:20%;margin-right:auto;">
<div style="display: flex;flex-wrap:wrap;">
<div class="card-group row"
style="margin-top:50px;display:block; margin-bottom:1%;">
<div class="col main_box">
<div class="card " style="width:200px;">
<img src="/portal_dashboard/static/src/images/q1.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
Quotation
<b>
<t t-esc="count_quotation"/>
</b>
</h5>
</div>
<div class="card-footer card_footer">
<small class="text-muted">
<a href="/my/quotes">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
<div class="col main_box">
<div class="card " style="width:200px;">
<img src="/portal_dashboard/static/src/images/rfq.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
RFQ
<b>
<t t-esc="count_rfq"/>
</b>
</h5>
</div>
<div class="card-footer card_footer">
<small class="text-muted">
<a href="/my/rfq">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
<div class="col main_box">
<div class="card " style="width:200px;">
<img src="/portal_dashboard/static/src/images/so.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
Sale Order
<b>
<t t-esc="count_so"/>
</b>
</h5>
</div>
<div class="card-footer card_footer">
<small class="text-muted">
<a href="/my/orders">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
<div class="col main_box">
<div class="card " style="width:200px;">
<img src="/portal_dashboard/static/src/images/po.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
Purchase Order
<b>
<t t-esc="count_po"/>
</b>
</h5>
</div>
<div class="card-footer card_footer">
<small class="text-muted">
<a href="/my/purchase">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
</div>
</div>
<div style="display: flex;flex-wrap:wrap; margin-bottom:1%;">
<div class="card-group row"
style="margin-top:50px;display:block;">
<div class="col main_box">
<div class="card" style="width:200px;">
<img src="/portal_dashboard/static/src/images/project.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
Projects
<b>
<t t-esc="count_project"/>
</b>
</h5>
</div>
<div class="card-footer card_footer">
<small class="text-muted">
<a href="/my/projects">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
<div class="col main_box">
<div class="card" style="width:200px;">
<img src="/portal_dashboard/static/src/images/task.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
Tasks
<b>
<t t-esc="count_task"/>
</b>
</h5>
</div>
<div class="card-footer">
<small class="text-muted card_footer">
<a href="/my/tasks">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
<div class="col main_box">
<div class="card " style="width:200px;">
<img src="/portal_dashboard/static/src/images/bill.png"
class="card-img-top"
alt="..." style="width:50px;"/>
<div class="card-body">
<h5 class="card-title"
style="text-align:right;">
Bill &amp; Invoices
<b>
<t t-esc="count_invoice"/>
</b>
</h5>
</div>
<div class="card-footer card_footer">
<small class="text-muted">
<a href="/my/invoices">
<button class="button_style">
View
</button>
</a>
</small>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End of adding each record and their count-->
<t t-if="show_so_q">
<div class="container container_style">
<div class="row" style="margin-top:1%;">
<div style="float:left;width:50%" class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_so_portal"/>
Quotations
</div>
<thead>
<tr>
<th>Order Number</th>
<th>Order Date</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="quotations_limited"
t-as="quotation">
<tr>
<td>
<t t-esc="quotation.name"/>
</td>
<td>
<t t-esc="quotation.date_order"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
<div style="float:right;margin-left:5%;width:50%;"
class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_so_portal"/>
Sale order
</div>
<thead>
<tr>
<th>Order Number</th>
<th>Order Date</th>
<th>State</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="sale_orders_limited"
t-as="sale_order">
<tr>
<td>
<t t-esc="sale_order.name"/>
</td>
<td>
<t t-esc="sale_order.date_order"/>
</td>
<td>
<t t-esc="sale_order.state"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
<div class="row row-cols-1 row-cols-md-2 g-4"
id="analysis_data"
style="width:70%;margin-left:25%;margin-right:auto;height:100%;">
<div class="row row-cols-1 row-cols-md-2 g-4 second_div">
<div class="col cell" colspan="2"
style="padding:1%;width:100%;">
<div class="card cell">
<div class="card-body">
<div class="card-text card_text">
<canvas id="sales_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
</div>
<t t-if="show_po_rfq">
<div class="container"
style="width:100%;margin-top:5%;margin-left:15%;border:1px solid gray;">
<div class="row" style="margin-top:1%;">
<div style="float:left;width:50%" class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_po_portal"/>
RFQ
</div>
<thead>
<tr>
<th>Reference</th>
<th>Order Date</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="rfq_limited" t-as="rfq">
<tr>
<td>
<t t-esc="rfq.name"/>
</td>
<td>
<t t-esc="rfq.date_order"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
<div style="float:right;margin-left:5%;width:50%;"
class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_po_portal"/>
Purchase order
</div>
<thead>
<tr>
<th>Reference</th>
<th>Order Date</th>
<th>State</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="purchase_orders_limited"
t-as="purchase_order">
<tr>
<td>
<t t-esc="purchase_order.name"/>
</td>
<td>
<t t-esc="purchase_order.date_approve"/>
</td>
<td>
<t t-esc="purchase_order.state"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
<div class="row row-cols-1 row-cols-md-2 g-4"
id="analysis_data" style="width:70%;margin-left:25%;margin-right:auto;height:100%;">
<div class="row row-cols-1 row-cols-md-2 g-4 second_div">
<div class="col cell" colspan="2"
style="padding:1%;width:100%;">
<div class="card cell">
<div class="card-body">
<div class="card-text card_text">
<canvas id="purchase_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
</div>
<t t-if="show_account">
<div class="container container_style">
<div class="row" style="margin-top:1%;">
<div style="float:left;width:50%" class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_account_portal"/>
Invoice
</div>
<thead>
<tr>
<th>Invoice #</th>
<th>Invoice Date</th>
<th>Due Date</th>
<th>Status</th>
<th>Amount Due</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="invoices_limited"
t-as="invoice">
<tr>
<td>
<t t-esc="invoice.name"/>
</td>
<td>
<t t-esc="invoice.invoice_date"/>
</td>
<td>
<t t-esc="invoice.invoice_date"/>
</td>
<td>
<t t-esc="invoice.state"/>
</td>
<td>
<t t-esc="invoice.amount_total_signed"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
<div class="row row-cols-1 row-cols-md-2 g-4"
id="analysis_data" style="width:70%;margin-left:25%;margin-right:auto;height:100%;">
<div class="row row-cols-1 row-cols-md-2 g-4 second_div">
<div class="col cell" colspan="2"
style="padding:1%;width:100%;">
<div class="card cell">
<div class="card-body">
<div class="card-text card_text">
<canvas id="account_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
</div>
<t t-if="show_project">
<div class="container"
style="width:100%;margin-top:2%;margin-left:16%;border:1px solid gray;margin-bottom:1%;">
<div class="row" style="margin-top:1%;">
<div style="float:left;width:50%" class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_project_portal"/>
Projects
</div>
<thead>
<tr>
<th>Project</th>
<th>Start Date</th>
<th>Expiry Date</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="projects_limited"
t-as="project">
<tr>
<td>
<t t-esc="project.name"/>
</td>
<td>
<t t-esc="project.date_start"/>
</td>
<td>
<t t-esc="project.date"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
<div style="float:right;margin-left:5%;width:50%;"
class="col">
<table class="table">
<div class="number_project">
Latest
<t t-esc="number_project_portal"/>
Tasks
</div>
<thead>
<tr>
<th>Task</th>
<th>Project</th>
<th>Deadline</th>
</tr>
</thead>
<tboady id="portal_top_product">
<t t-foreach="tasks_limited"
t-as="task">
<tr>
<td>
<t t-esc="task.name"/>
</td>
<td>
<t t-esc="task.project_id['name']"/>
</td>
<td>
<t t-esc="task.date_deadline"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
</div>
</t>
</template>
</odoo>

177
portal_dashboard/views/res_config_settings_views.xml

@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="res_config_settings_view_form"
model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.delivery </field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="website.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@id='website_settings']" position="after">
<!-- To set the records which shows in dashboard from settings-->
<div class="row mt16 o_settings_container">
<div class="content-group mt16">
<h2>Portal Dashboard</h2>
<div class="col-12 col-lg-6 o_setting_box">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="is_show_recent_so_q"/>
</div>
<div class="o_setting_right_pane">
<label for="is_show_recent_so_q"/>
<div class="text-muted">
show recent quotation and sale order table in portal dashboard
</div>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane"
attrs="{'invisible': [('is_show_recent_so_q', '=', False)]}">
<label for="sale_count"/>
<div class="text-muted">
How many recent/last records do you want to show in portal dashboard
</div>
<field name="sale_count"/>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="is_show_recent_po_rfq"/>
</div>
<div class="o_setting_right_pane">
<label for="is_show_recent_po_rfq"/>
<div class="text-muted">
show recent RFQ and Purchase order table in portal dashboard
</div>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane"
attrs="{'invisible': [('is_show_recent_po_rfq', '=', False)]}">
<label for="purchase_count"/>
<div class="text-muted">
How many recent/last records do you want to show in portal dashboard
</div>
<field name="purchase_count"/>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
<div class="o_setting_left_pane">
<field name="is_show_project"/>
</div>
<div class="o_setting_right_pane">
<label for="is_show_project"/>
<div class="text-muted">
Show project task table in portal dashboard
</div>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane"
attrs="{'invisible': [('is_show_project', '=', False)]}">
<label for="project_count"/>
<div class="text-muted">
How many recent/last records do you want to show in portal dashboard
</div>
<field name="project_count"/>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="is_show_recent_invoice_bill"/>
</div>
<div class="o_setting_right_pane">
<label for="is_show_recent_invoice_bill"/>
<div class="text-muted">
show recent invoice/bill table in portal dashboard
</div>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_right_pane"
attrs="{'invisible': [('is_show_recent_invoice_bill', '=', False)]}">
<label for="account_count"/>
<div class="text-muted">
How many recent records do you want to show?
</div>
<field name="account_count"/>
<div class="content-group"
modifiers="{&quot;invisible&quot;: [[&quot;group_uom&quot;, &quot;=&quot;, false]]}">
<div class="mt8">
<button name="86" icon="fa-arrow-right"
type="action"
string="sale analysis"
class="btn-link"/>
</div>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>
Loading…
Cancel
Save