Browse Source

Jan 30 [ADD] : Initial Commit 'portal_dashboard'

pull/254/merge
AjmalCybro 1 year ago
parent
commit
00f0e456e8
  1. 45
      portal_dashboard/README.rst
  2. 23
      portal_dashboard/__init__.py
  3. 53
      portal_dashboard/__manifest__.py
  4. 22
      portal_dashboard/controllers/__init__.py
  5. 209
      portal_dashboard/controllers/portal.py
  6. 6
      portal_dashboard/doc/RELEASE_NOTES.md
  7. 23
      portal_dashboard/models/__init__.py
  8. 74
      portal_dashboard/models/portal_dashboard.py
  9. 64
      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/auto_database_backup.gif
  44. BIN
      portal_dashboard/static/description/assets/modules/hide_menu_user.png
  45. BIN
      portal_dashboard/static/description/assets/modules/multi_branch_base.png
  46. BIN
      portal_dashboard/static/description/assets/modules/odoo_dynamic_dashboard.png
  47. BIN
      portal_dashboard/static/description/assets/modules/odoo_website_helpdesk.png
  48. BIN
      portal_dashboard/static/description/assets/modules/web_login_styles.png
  49. BIN
      portal_dashboard/static/description/assets/screenshots/1.png
  50. BIN
      portal_dashboard/static/description/assets/screenshots/10.png
  51. BIN
      portal_dashboard/static/description/assets/screenshots/11.png
  52. BIN
      portal_dashboard/static/description/assets/screenshots/3.png
  53. BIN
      portal_dashboard/static/description/assets/screenshots/9.png
  54. BIN
      portal_dashboard/static/description/assets/screenshots/img1.png
  55. BIN
      portal_dashboard/static/description/assets/screenshots/img3.png
  56. BIN
      portal_dashboard/static/description/assets/screenshots/v15-hero.gif
  57. BIN
      portal_dashboard/static/description/banner.png
  58. BIN
      portal_dashboard/static/description/icon.png
  59. 602
      portal_dashboard/static/description/index.html
  60. BIN
      portal_dashboard/static/src/images/bill.png
  61. BIN
      portal_dashboard/static/src/images/financial-profit.png
  62. BIN
      portal_dashboard/static/src/images/invoice.png
  63. BIN
      portal_dashboard/static/src/images/po2.png
  64. BIN
      portal_dashboard/static/src/images/project2.png
  65. BIN
      portal_dashboard/static/src/images/q2.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. BIN
      portal_dashboard/static/src/images/task2.png
  70. 126
      portal_dashboard/static/src/js/portal_dashboard_graph.js
  71. 81
      portal_dashboard/static/src/scss/portal_dashboard_style.scss
  72. 489
      portal_dashboard/views/portal_dashboard_templates.xml
  73. 190
      portal_dashboard/views/res_config_settings_views.xml

45
portal_dashboard/README.rst

@ -0,0 +1,45 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Portal Dashboard
================
Portal Dashboard to view the My Account Details in Dashboard View.
Configuration
=============
- www.odoo.com/documentation/15.0/setup/install.html
- Install our custom addon
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
AFFERO General Public License, Version 3 (AGPL v3).
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
Developer: (V15) Mohammed Dilshad Tk, Contact: odoo@cybrosys.com
Contacts
--------
* Mail Contact : odoo@cybrosys.com
* Website : https://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
==========
.. image:: https://cybrosys.com/images/logo.png
:target: https://cybrosys.com
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) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (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) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (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': '15.0.1.0.0',
'category': 'Website',
'summary': "Portal Dashboard to view the My Account Details in Dashboard "
"view",
'description': "Portal Dashboard enhances your website's user experience "
"by providing a feature-rich dashboard for My Account "
"details. With a sleek and intuitive design, users can "
"easily navigate and access key information at a glance.",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['sale_management', 'project', 'crm', 'purchase', 'website'],
'data': [
'views/res_config_settings_views.xml',
'views/portal_dashboard_templates.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/portal_dashboard_style.scss'
]
},
'images': ['static/description/banner.png', ],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

22
portal_dashboard/controllers/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (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

209
portal_dashboard/controllers/portal.py

@ -0,0 +1,209 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (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"""
partner_id = request.env.user.partner_id.id
user = request.env.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 request.env.ref('base.group_user') in user.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.id),
('state', 'not in', ['draft', 'sent'])
], limit=int(number_so))
quotations_limited = sale_order.search([
('user_id', '=', user.id),
('state', 'in', ['draft','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.id),
('state', 'not in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
rfq_limited = purchase_order.search([
('user_id', '=', user.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.id),
('partner_id', '=', partner_id)],
limit=int(number_project))
tasks_limited = task.search(
['|', ('user_ids', '=', user.id),
('partner_id', '=', partner_id)],
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.id),
('state', 'not in', ['draft', 'cancel'])
], limit=int(number_account))
sale_orders = sale_order.search([
('user_id', '=', user.id),
('state', 'not in', ['draft', 'sent'])])
quotations = sale_order.search([
('user_id', '=', user.id),
('state', 'in', ['draft', 'sent'])])
purchase_orders = purchase_order.search([
('user_id', '=', user.id),
('state', 'not in', ['draft', 'sent', 'to approve'])])
rfq = purchase_order.search([
('user_id', '=', user.id),
('state', 'in', ['draft', 'sent', 'to approve'])])
projects = project.search([])
tasks = task.search([])
invoices = request.env['account.move'].search_count(
self._get_invoices_domain())
else:
if show_so_q:
number_so = config_parameters.get_param(
'portal_dashboard.sale_count', 0)
sale_orders_limited = sale_order.search([
('partner_id', '=', user.partner_id.id),
('state', 'not in', ['draft', 'sent'])
], limit=int(number_so))
quotations_limited = sale_order.search([
('partner_id', '=', user.partner_id.id),
('state', 'in', ['draft','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', '=', user.partner_id.id),
('state', 'not in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
rfq_limited = purchase_order.search([
('partner_id', '=', user.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.id),
('partner_id', '=', user.id)],
limit=int(number_project))
tasks_limited = task.search(
['|', ('user_ids', '=', user.id),
('partner_id', '=', user.id)],
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', '=', user.partner_id.id),
('state', 'not in', ['draft', 'cancel'])
], limit=int(number_account))
sale_orders = sale_order.search([
('partner_id', '=', user.partner_id.id),
('state', 'not in', ['draft', 'sent'])])
quotations = sale_order.search([
('partner_id', '=', user.partner_id.id),
('state', 'in', ['draft','sent'])])
purchase_orders = purchase_order.search([
('partner_id', '=', user.partner_id.id),
('state', 'not in', ['draft', 'sent', 'to approve'])])
rfq = purchase_order.search([
('partner_id', '=', user.partner_id.id),
('state', 'in', ['draft', 'sent', 'to approve'])])
projects = project.search([
('user_id', '=', user.id)])
tasks = task.search([('user_ids', '=', user.id)])
invoices = account_move.search([
('partner_id', '=', user.partner_id.id),
('state', 'not in', ['draft', 'cancel'])
])
values = self._prepare_portal_layout_values()
values = {'sales_user': values['sales_user'],
'page_name': values['page_name'],
'sale_order_portal': sale_orders,
'quotation_portal': quotations,
'purchase_orders_portal': purchase_orders,
'rfq_portal': rfq,
'projects_portal': projects,
'tasks_portal': tasks,
'invoices_portal': invoices,
'number_so_portal': number_so,
'number_po_portal': number_po,
'number_account_portal': number_account,
'number_project_portal': number_project,
'sale_orders_limited': sale_orders_limited,
'quotations_limited': quotations_limited,
'purchase_orders_limited': purchase_orders_limited,
'rfq_limited': rfq_limited,
'invoices_limited': invoices_limited,
'projects_limited': projects_limited,
'tasks_limited': tasks_limited,
'show_so_q': show_so_q,
'show_po_rfq': show_po_rfq,
'show_project': show_project,
'show_account': show_account}
return request.render(
"portal_dashboard.my_account_dashboard_portal_view",
values)

6
portal_dashboard/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <portal_dashboard>
#### 29.01.2024
#### Version 15.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) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (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
from . import res_config_settings

74
portal_dashboard/models/portal_dashboard.py

@ -0,0 +1,74 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Mohammed Dilshad Tk (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 PortalDashboardData(models.Model):
"""Used to set graphs in portal dashboard template"""
_name = 'portal.dashboard'
_description = 'To get portal dashboard data'
@api.model
def get_dashboard_data(self):
"""To fetch datas of backend documents to show in the portal
dashboard template depending on count of record"""
partner, partners = self.env.user.id, self.env.user
group_id = self.env.ref('base.group_user')
if group_id in partners.groups_id:
all_invoice = self.env['account.move'].search_count([
('state', 'not in', ['draft', 'cancel']),
('move_type', '=', 'out_invoice')])
all_bills = self.env['account.move'].search_count([
('state', 'not in', ['draft', 'cancel']),
('move_type', '=', 'in_invoice')])
else:
all_invoice = self.env['account.move'].search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'cancel']),
('move_type', '=', 'out_invoice')])
all_bills = self.env['account.move'].search([
('partner_id', '=', partners.partner_id.id),
('state', 'not in', ['draft', 'cancel']),
('move_type', '=', 'out_invoice'),
('move_type', '=', 'in_invoice')])
all_acc = [all_invoice, all_bills]
sale_order = self.env['sale.order'].search_count([
('user_id', '=', partner),
('state', 'not in', ['draft', 'sent'])])
quotations = self.env['sale.order'].search_count([('user_id', '=',
partner),
('state', 'in',
['draft', 'sent'])])
all_so = [sale_order, quotations]
purchase_order = self.env['purchase.order'].search_count([
('user_id', '=', partner),
('state', 'not in', ['draft', 'sent', 'to approve'])])
purchase = self.env['purchase.order'].search_count([
('user_id', '=', partner),
('state', 'in', ['draft', 'sent', 'to approve'])])
rfq_count = purchase
all_purchase_order = [rfq_count, purchase_order]
return {
'target': all_so,
'target_po': all_purchase_order,
'target_accounting': all_acc
}

64
portal_dashboard/models/res_config_settings.py

@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Mohammed Dilshad Tk (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 LICis_show_recent_invoice_billENSE (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',
help="Does need to show the recent quotation and sale order table in"
" dashboard")
sale_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.sale_count',
help="Count of recent sales records need to show")
is_show_recent_po_rfq = fields.Boolean(
string='Is show recent RFQ table?',
config_parameter='portal_dashboard.is_show_recent_po_rfq',
help="Does need to show the recently created RFQ table")
purchase_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.purchase_count',
help="Count of recent purchase records need to show")
is_show_project = fields.Boolean(
string='Is show project task table?',
config_parameter='portal_dashboard.is_show_project',
help="Does need to show the show project tasks")
project_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.project_count',
help="Count of recent project records to show")
is_show_recent_invoice_bill = fields.Boolean(
string='Is show recent invoice/bill table?',
config_parameter='portal_dashboard.is_show_recent_invoice_bill',
help="Does the recent invoice/bill table need to be shown")
account_count = fields.Integer(
string='How many recent records do you want to show?',
config_parameter='portal_dashboard.account_count',
help="How much recent account's need to be shown")

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/auto_database_backup.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

BIN
portal_dashboard/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
portal_dashboard/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

602
portal_dashboard/static/description/index.html

@ -0,0 +1,602 @@
<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
style="color: #875A7B; 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>Enterprise
</div>
<div style="color: #017E84; 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>Odoo.sh
</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 Account View In Website</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/v15-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 Account 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 find these fields in the settings for configuring the table
view.
</p>
<img src="assets/screenshots/img1.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/9.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/img3.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;">
Able to view the representation of Documents according to the Count set in the Portal
Dashboard Settings
</p>
<img src="assets/screenshots/10.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/11.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/15.0/auto_database_backup/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/auto_database_backup.gif">
</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/15.0/hide_menu_user/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/hide_menu_user.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/15.0/odoo_dynamic_dashboard/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/odoo_dynamic_dashboard.png">
</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/15.0/odoo_website_helpdesk/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/odoo_website_helpdesk.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/15.0/web_login_styles/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/web_login_styles.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/15.0/multi_branch_base/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/multi_branch_base.png">
</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 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 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/financial-profit.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 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

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

126
portal_dashboard/static/src/js/portal_dashboard_graph.js

@ -0,0 +1,126 @@
odoo.define('portal_dashboard.PortalDashBoardGraph', function(require) {
"use strict";
var publicWidget = require('web.public.widget');
/** Extends Widget in publicWidget */
publicWidget.registry.PortalDashBoardGraph = publicWidget.Widget.extend({
selector: '.portal_dashboard',
init: function(parent, context) {
this._super(parent, context);
},
/** Call fetch data function in start function */
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',
method: 'get_dashboard_data'
}).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,
maintainAspectRatio: 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 = ['RFQ','Purchase order'];
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);
},
});
})

81
portal_dashboard/static/src/scss/portal_dashboard_style.scss

@ -0,0 +1,81 @@
.btn-trans{
background-color: #efefef,
}
.btn-trans:hover{
background-color: #58B354A6;
color:white;
}
.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%;
}
.quotation
{
box-shadow: 1px 0px 16px 0 rgba(63, 73, 115, 0.3);
background-color: #ffffff;
border-radius: 2px;
position: relative;
width: 100%;
border: 1px solid rgba(0, 0, 0, 0.07);
height: 200px;
}
.heading2{
width:100%;
text-align: center;
}
.word-text {
font-size: 1.2rem;
font-weight: bold;
color: black;
text-transform: uppercase;
margin-top:1rem;
}
.count-div{
color:#7D7EAF;
font-size:3rem;
}
.view-bar{
position: absolute;
top: 0px;
right: 0px;
margin: 1rem;
color: #dc3545;
}

489
portal_dashboard/views/portal_dashboard_templates.xml

@ -0,0 +1,489 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Portal view replaced dashboard template-->
<template id="my_account_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 container">
<!-- Adding each record and their count-->
<div>
<div style="display: flex;flex-wrap:wrap;width: 100%;justify-content: space-between;">
<div class="card-group row"
style="margin-top:50px;margin-bottom:1%;width: 100%; gap: 1rem;">
<div class="col main_box">
<div class="card quotation">
<div class="card-body">
<div class="image-icon">
<img src="/portal_dashboard/static/src/images/q2.png"
class="card-img-top"
alt="..." style="width:50px;"/>
</div>
<h5 class="word-text">
Quotation
</h5>
<span class="count-div">
<t t-esc="count_quotation"/>
</span>
<div class="view-bar">
<a href="/my/quotes">
<button class="btn btn-trans">
View
<i class="fa fa-thin fa-arrow-right"></i>
</button>
</a>
</div>
</div>
</div>
</div>
<div class="col main_box">
<div class="card quotation">
<div class="card-body">
<div class="image-icon">
<img src="/portal_dashboard/static/src/images/financial-profit.png"
class="card-img-top"
alt="..." style="width:50px;"/>
</div>
<h5 class="word-text">
Sale Order
</h5>
<span class="count-div">
<t t-esc="count_so"/>
</span>
</div>
<div class="view-bar">
<a href="/my/orders">
<button class="btn btn-trans">
View
<i class="fa fa-thin fa-arrow-right"></i>
</button>
</a>
</div>
</div>
</div>
<div class="col main_box">
<div class="card quotation">
<div class="card-body">
<div class="image-icon">
<img src="/portal_dashboard/static/src/images/po2.png"
class="card-img-top"
alt="..." style="width:50px;"/>
</div>
<h5 class="word-text">
Purchase Order
</h5>
<span class="count-div">
<t t-esc="count_po"/>
</span>
</div>
<div class="view-bar">
<a href="/my/purchase">
<button class="btn btn-trans">
View
<i class="fa fa-thin fa-arrow-right"></i>
</button>
</a>
</div>
</div>
</div>
</div>
</div>
<div style="display: flex;flex-wrap:wrap;width: 100%;justify-content: space-between;">
<div class="card-group row"
style="margin-top:50px;margin-bottom:1%;width: 100%; gap: 1rem;">
<div class="col main_box">
<div class="card quotation">
<div class="card-body">
<div class="image-icon">
<img src="/portal_dashboard/static/src/images/project2.png"
class="card-img-top"
alt="..."
style="width:50px;"/>
</div>
<h5 class="word-text">
Projects
</h5>
<span class="count-div">
<t t-esc="count_project"/>
</span>
</div>
<div class="view-bar">
<a href="/my/projects">
<button class="btn btn-trans">
View
<i class="fa fa-thin fa-arrow-right"></i>
</button>
</a>
</div>
</div>
</div>
<div class="col main_box">
<div class="card quotation">
<div class="card-body">
<div class="image-icon">
<img src="/portal_dashboard/static/src/images/task2.png"
class="card-img-top"
alt="..."
style="width:50px;"/>
</div>
<h5 class="word-text">
Tasks
</h5>
<span class="count-div">
<t t-esc="count_task"/>
</span>
</div>
<div class="view-bar">
<a href="/my/tasks">
<button class="btn btn-trans">
View
<i class="fa fa-thin fa-arrow-right"></i>
</button>
</a>
</div>
</div>
</div>
<div class="col main_box">
<div class="card quotation">
<div class="card-body">
<img src="/portal_dashboard/static/src/images/invoice.png"
class="card-img-top"
alt="..."
style="width:50px;"/>
<h5 class="word-text">
Bill &amp; Invoices
</h5>
<span class="count-div">
<t t-esc="count_invoice"/>
</span>
</div>
<div class="view-bar">
<a href="/my/invoices">
<button class="btn btn-trans">
View
<i class="fa fa-thin fa-arrow-right"></i>
</button>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End of adding each record and their count-->
<h1 class="heading2 py-4">Transaction Count Analysis</h1>
<div class="container py-2">
<div class="row">
<div class="col-12 col-md-4 col-4">
<div class="card-body chart">
<div class="card-text card_text"
style="width: 300px;">
<canvas id="sales_pie"/>
</div>
<br/>
</div>
</div>
<div class="col-12 col-md-4 col-4">
<div class="card-body chart">
<div class="card-text card_text"
style="width: 300px;">
<canvas class="img-fluid"
id="purchase_pie"/>
</div>
<br/>
</div>
</div>
<div class="col-12 col-md-4 col-4">
<div class="card-body chart">
<div class="card-text card_text"
style="width: 300px;">
<canvas id="account_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
<t t-if="show_so_q">
<div class="container">
<div class="row" style="margin-top:1%;">
<div class="col-12 col-md-6">
<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 class="col-12 col-md-6">
<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>
</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>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
<t t-if="show_po_rfq">
<t t-if="rfq_limited">
<div class="container">
<div class="row" style="margin-top:1%;">
<div class="col col-md-6">
<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 class="col col-md-6">
<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>
</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>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
</t>
<t t-if="show_account">
<t t-if="invoices_limited">
<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"/>
Bill &amp; Invoices
</div>
<thead>
<tr>
<th>Invoice #</th>
<th>Invoice Date</th>
<th>Due Date</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.amount_total_signed"/>
</td>
</tr>
</t>
</tboady>
</table>
</div>
</div>
</div>
</t>
</t>
<t t-if="show_project">
<t t-if="projects_limited">
<div class="container">
<div class="row" style="margin-top:1%;">
<div class="col col-md-6">
<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 class="col col col-md-6">
<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>
</t>
</div>
</t>
</template>
</odoo>

190
portal_dashboard/views/res_config_settings_views.xml

@ -0,0 +1,190 @@
<?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.portal.dashboard</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[hasclass('settings')]" position="inside">
<!-- To set the records which shows in dashboard from settings-->
<div style="background:#e9ecef;height:31px;">
<h3 style="margin-left:40px;padding-top:7px;">Portal Dashboard
</h3>
</div>
<div class="row mt16 o_settings_container">
<div class="col-xs-12 col-md-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 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