Browse Source

Jan 08: [ADD] Initial Commit 'portal_dashboard'

pull/298/merge
Shijin V 1 year ago
parent
commit
6a65b0cd3b
  1. 44
      portal_dashboard/README.rst
  2. 23
      portal_dashboard/__init__.py
  3. 44
      portal_dashboard/__manifest__.py
  4. 22
      portal_dashboard/controllers/__init__.py
  5. 202
      portal_dashboard/controllers/portal.py
  6. 7
      portal_dashboard/doc/RELEASE_NOTES.md
  7. 23
      portal_dashboard/models/__init__.py
  8. 85
      portal_dashboard/models/portal_dashboard_data.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/1.gif
  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.png
  48. BIN
      portal_dashboard/static/description/assets/modules/6.png
  49. BIN
      portal_dashboard/static/description/assets/screenshots/1.png
  50. BIN
      portal_dashboard/static/description/assets/screenshots/2.png
  51. BIN
      portal_dashboard/static/description/assets/screenshots/3.png
  52. BIN
      portal_dashboard/static/description/assets/screenshots/4.png
  53. BIN
      portal_dashboard/static/description/assets/screenshots/5.png
  54. BIN
      portal_dashboard/static/description/assets/screenshots/6.png
  55. BIN
      portal_dashboard/static/description/assets/screenshots/7.png
  56. BIN
      portal_dashboard/static/description/assets/screenshots/8.png
  57. BIN
      portal_dashboard/static/description/assets/screenshots/hero.gif
  58. BIN
      portal_dashboard/static/description/banner.png
  59. BIN
      portal_dashboard/static/description/icon.png
  60. 576
      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. 141
      portal_dashboard/static/src/js/portal_dashboard_graph.js
  70. 40
      portal_dashboard/static/src/scss/style.scss
  71. 14
      portal_dashboard/views/assets.xml
  72. 526
      portal_dashboard/views/portal_dashboard_templates.xml
  73. 192
      portal_dashboard/views/res_config_settings_views.xml

44
portal_dashboard/README.rst

@ -0,0 +1,44 @@
.. 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 for Odoo 14 used to get a dashboard view for my portal in website
Configuration
============
- www.odoo.com/documentation/14.0/setup/install.html
- Install our custom addon
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
AFFERO General Public License, Version 3 (AGPL v3).
(http://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
Developer: (V14) Mohammed Dilshad Tk, Contact: odoo@cybrosys.com
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
==========
.. 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) 2023-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

44
portal_dashboard/__manifest__.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-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': '14.0.1.0.0',
'category': 'Extra Tools',
'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',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['sale', 'project', 'crm', 'purchase', 'website'],
'data': [
'views/assets.xml',
'views/res_config_settings_views.xml',
'views/portal_dashboard_templates.xml',
],
'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) 2023-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

202
portal_dashboard/controllers/portal.py

@ -0,0 +1,202 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-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 change_portal(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
project_no = 0
sale_order = request.env['sale.order'].sudo()
purchase_order = request.env['purchase.order'].sudo()
account_move = request.env['account.move'].sudo()
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 = "", ""
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, invoices_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([
('create_uid', '=', user.id),
('state', 'not in', ['draft', 'sent'])
], limit=int(number_so))
quotations_limited = sale_order.search([
('create_uid', '=', user.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([
('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_id', '=', 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', '=', 'sent')])
purchase_orders = purchase_order.search([('user_id', '=', user.id),
('state', 'in', ['purchase'])])
rfq = purchase_order.search([
('user_id', '=', user.id),
('state', 'in', ['sent', 'to approve'])])
project_no = project.search([])
tasks = task.search([])
invoices = 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', '=', partner_id),
('state', 'not in', ['draft', 'sent'])
], limit=int(number_so))
quotations_limited = sale_order.search([
('partner_id', '=', partner_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', '=', partner_id),
('state', 'not in', ['draft', 'sent', 'to approve'])
], limit=int(number_po))
rfq_limited = purchase_order.search([
('partner_id', '=', partner_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_id', '=', 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([
('partner_id', '=', partner_id),
('state', 'not in', ['draft', 'cancel'])
], limit=int(number_account))
sale_orders = sale_order.search([
('partner_id', '=', partner_id),
('state', 'not in', ['draft', 'sent'])])
quotations = sale_order.search([
('user_id', '=', user.id),
('state', '=', 'sent')])
purchase_orders = purchase_order.search([
('partner_id', '=', partner_id),
('state', '=', 'purchase')])
rfq = purchase_order.search([
('partner_id', '=', partner_id),
('state', 'in', ['sent', 'to approve'])])
projects = project.search([
('partner_id', '=', partner_id)])
for project in projects:
if (project.privacy_visibility == 'portal' and user.id
in project.allowed_portal_user_ids.mapped('id')):
project_no += 1
tasks = task.search([('partner_id', '=', user.partner_id.id)])
invoices = account_move.search([
('partner_id', '=', partner_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': project_no,
'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.replace_dashboard_portal_view",
values)

7
portal_dashboard/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <portal_dashboard>
#### 08.01.2024
#### Version 14.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: 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_data
from . import res_config_settings

85
portal_dashboard/models/portal_dashboard_data.py

@ -0,0 +1,85 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-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 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"""
user = self.env.user
all_accounting = []
if self.env.ref('base.group_user') in user.groups_id:
all_invoice = self.env['account.move'].search([
('state', 'not in', ['draft', 'cancel'])])
invoice_count = len(all_invoice)
all_accounting.append(invoice_count)
sale_order = self.env['sale.order'].search([
('user_id', '=', user.id),
('state', 'not in', ['draft', 'sent'])])
quotations = self.env['sale.order'].search(
[('user_id', '=', user.id),
('state', '=', 'sent')])
else:
all_invoice = self.env['account.move'].search([
('partner_id','=', user.partner_id.id),
('state', 'not in', ['draft', 'cancel'])])
invoice_count = len(all_invoice)
all_accounting.append(invoice_count)
sale_order = self.env['sale.order'].search([
('partner_id', '=', user.partner_id.id),
('state', 'not in', ['draft', 'sent'])])
quotations = self.env['sale.order'].search(
[('partner_id', '=', user.partner_id.id),
('state', '=', 'sent')])
all_so = []
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([
('partner_id', '=', user.partner_id.id),
('state', 'not in', ['draft', 'sent', 'to approve'])])
rfqs = self.env['purchase.order'].search([
('partner_id', '=', user.partner_id.id),
('state', 'in', ['sent', 'to approve'])])
all_purchase_order.append(len(purchase_order))
all_purchase_order.append(len(rfqs))
lists = {"so": all_so, "po": all_purchase_order}
all_ac = 0
if all_accounting[0] == 0:
all_ac = 1
zero_list = [name for name, lst in lists.items() if all(item == 0
for item in lst)]
return {
'all_ac': all_ac,
'zero_list': zero_list,
'target': all_so,
'target_po': all_purchase_order,
'target_accounting': all_accounting,
}

64
portal_dashboard/models/res_config_settings.py

@ -0,0 +1,64 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-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='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 sale orders 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='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 purchase orders 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='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 project's 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='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 invoices 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/1.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

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/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
portal_dashboard/static/description/assets/screenshots/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: 44 KiB

BIN
portal_dashboard/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

576
portal_dashboard/static/description/index.html

@ -0,0 +1,576 @@
<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 Portal View In Website</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/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: 600; font-family: 'Montserrat', sans-serif; font-size: 14px;">
You can set the count of each portal dashboard records
</p>
<img src="assets/screenshots/1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 600; 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/2.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 600; 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/3.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 600; 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/4.png" class="img-thumbnail"><br/><br/>
<img src="assets/screenshots/5.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<p style="font-weight: 600; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Also, there are analysis pie chart for sales, purchase and accounting
</p>
<img src="assets/screenshots/6.png" class="img-thumbnail"><br/><br/>
<img src="assets/screenshots/7.png" class="img-thumbnail"><br><br/>
<img src="assets/screenshots/8.png" class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<!-- END OF RELATED PRODUCTS -->
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center"
style="text-align: center; padding: 2.5rem 1rem !important;">
<h2 style="color: #212529 !important;">Suggested Products</h2>
<hr
style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/>
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner">
<div class="carousel-item active" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/auto_database_backup/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/1.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/14.0/hide_menu_user/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/odoo_dynamic_dashboard/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item" style="min-height:0px">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/login_user_detail/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/whatsapp_redirect/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/14.0/access_restriction_by_ip/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-top-left-radius:10px; border-top-right-radius:10px"
src="./assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="left:-25px;width: 35px;color: #000;"> <span class="carousel-control-prev-icon"><i
class="fa fa-chevron-left" style="font-size:24px"></i></span> </a> <a
class="carousel-control-next" href="#demo1" data-slide="next"
style="right:-25px;width: 35px;color: #000;">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- 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/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

141
portal_dashboard/static/src/js/portal_dashboard_graph.js

@ -0,0 +1,141 @@
odoo.define('portal_dashboard.PortalDashBoardGraph', function(require) {
"use strict";
var rpc = require('web.rpc');
var publicWidget = require('web.public.widget');
/** Extends Widget in publicWidget */
publicWidget.registry.PortalDashBoardGraph = publicWidget.Widget.extend({
selector: '.portal_dashboard',
/** Super the existing function **/
init: function(parent, context) {
this._super(parent, context);
},
/** Call fetch data function in start function */
start: function() {
this.set("title", 'Portal Dashboard');
var self = this
this.all_so = this.el.querySelectorAll('#all_so')
this.all_purchase_order = this.el.querySelectorAll('#all_purchase_order')
this.all_accounting = this.el.querySelectorAll('#all_accounting')
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) {
for (var item of result['zero_list']){
if (item == 'so'){
self.all_so.classList.add("d-none")
}
if (item == 'po'){
self.all_purchase_order.classList.add("d-none")
}
}
if(result['all_ac'] == 1 ) {
self.all_accounting.classList.add("d-none")
}
// 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%;
}

14
portal_dashboard/views/assets.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Adding js and scss files-->
<template id="asset_backend" inherit_id="web.assets_frontend">
<xpath expr="." position="inside">
<link rel="stylesheet" type="text/scss"
href="/portal_dashboard/static/src/scss/style.scss"/>
<script type="text/javascript"
src="/portal_dashboard/static/src/js/portal_dashboard_graph.js"></script>
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js"></script>
</xpath>
</template>
</odoo>

526
portal_dashboard/views/portal_dashboard_templates.xml

@ -0,0 +1,526 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Portal view replaced dashboard template-->
<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-log="count_invoice"/>
<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%;">
<div style="display: flex;flex-wrap:wrap;">
<div class="card-group row"
style="margin-top:50px;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/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;">
<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:33%;height:100%;">
<div class="row row-cols-1 row-cols-md-2 g-4 second_div">
<t t-esc="sales_pie"/>
<div class="col cell" id="all_so" colspan="2"
style="padding:1%;width:100%;">
<div class="card">
<div class="card-body" style="width:15cm;">
<div class="card-text card_text">
<canvas id="sales_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
</div>
<t t-if="show_po_rfq">
<t t-if="rfq_limited">
<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>
</t>
<div class="row row-cols-1 row-cols-md-2 g-4"
id="analysis_data"
style="width:70%;margin-left:33%;height:100%;">
<div class="row row-cols-1 row-cols-md-2 g-4 second_div">
<div class="col cell" id="all_purchase_order" colspan="2"
style="padding:1%;width:100%;">
<div class="card">
<div class="card-body" style="width: 15cm;">
<div class="card-text card_text">
<canvas id="purchase_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
</div>
<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"/>
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>
</t>
<div class="row row-cols-1 row-cols-md-2 g-4"
id="analysis_data"
style="width:70%;margin-left:33%;height:100%;">
<div class="row row-cols-1 row-cols-md-2 g-4 second_div">
<div class="col cell" id="all_accounting" colspan="2"
style="padding:1%;width:100%;">
<div class="card cell">
<div class="card-body" style="width:15cm;">
<div class="card-text card_text">
<canvas id="account_pie"/>
</div>
<br/>
</div>
</div>
</div>
</div>
</div>
<t t-if="show_project">
<t t-if="projects_limited">
<div class="container"
style="width:100%;margin-top:2%;margin-left:21%;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>
</t>
</div>
</t>
</template>
</odoo>

192
portal_dashboard/views/res_config_settings_views.xml

@ -0,0 +1,192 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Res config settings view form-->
<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 sale orders 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 purchase orders 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 project tasks 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