@ -0,0 +1,48 @@ |
|||||
|
.. 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 17 used to get a dashboard view for my portal in website |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configuration is needed. |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
Affero General Public License v3.0 (AGPL v3) |
||||
|
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
* Developers: (V17) Nivedhya T, |
||||
|
(V16) Megha AP, |
||||
|
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 `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU 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 |
@ -0,0 +1,51 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU 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': '17.0.1.0.0', |
||||
|
'summary': """Portal Dashboard to view the my account in dashboard view""", |
||||
|
'description': 'View of my account in portal view is changed to dashboard ' |
||||
|
'view for better user experience', |
||||
|
'category': 'Extra Tools', |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['base', 'sale', 'project', 'crm', 'purchase', 'website'], |
||||
|
'data': [ |
||||
|
'views/res_config_settings_views.xml', |
||||
|
'views/dashboard.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_frontend': [ |
||||
|
'portal_dashboard/static/src/js/portal_dashboard_graph.js', |
||||
|
'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.9.1/chart.min.js', |
||||
|
'/portal_dashboard/static/src/scss/style.scss' |
||||
|
] |
||||
|
}, |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': True, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU 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 |
@ -0,0 +1,233 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo.http import request, route |
||||
|
from odoo.addons.portal.controllers.portal import CustomerPortal |
||||
|
|
||||
|
|
||||
|
class DashboardPortal(CustomerPortal): |
||||
|
""" This class is used to super already existing dashboard portal to |
||||
|
change the template""" |
||||
|
@route(['/my', '/my/home'], type='http', auth="user", website=True) |
||||
|
def home(self, **kw): |
||||
|
"""Replaces already existing work flow of portal view to redirect to |
||||
|
new template with record values and count""" |
||||
|
|
||||
|
user = request.env.user.id |
||||
|
partners = request.env.user |
||||
|
group_id = request.env.ref('base.group_user') |
||||
|
|
||||
|
sale_order = request.env['sale.order'].sudo() |
||||
|
purchase_order = request.env['purchase.order'].sudo() |
||||
|
account_move = request.env['account.move'] |
||||
|
project = request.env['project.project'].sudo() |
||||
|
task = request.env['project.task'].sudo() |
||||
|
config_parameters = request.env['ir.config_parameter'].sudo() |
||||
|
|
||||
|
number_project = "" |
||||
|
projects_limited = "" |
||||
|
tasks_limited = "" |
||||
|
number_account = "" |
||||
|
invoices_limited = "" |
||||
|
|
||||
|
show_project = request.env[ |
||||
|
'ir.config_parameter' |
||||
|
].sudo().get_param('portal_dashboard.is_show_project') |
||||
|
show_account = request.env['ir.config_parameter'].sudo().get_param( |
||||
|
'portal_dashboard.is_show_recent_invoice_bill') |
||||
|
show_so_q = request.env[ |
||||
|
'ir.config_parameter' |
||||
|
].sudo().get_param('portal_dashboard.is_show_recent_so_q') |
||||
|
show_po_rfq = request.env[ |
||||
|
'ir.config_parameter' |
||||
|
].sudo().get_param('portal_dashboard.is_show_recent_po_rfq') |
||||
|
|
||||
|
number_so = "" |
||||
|
sale_orders_limited = "" |
||||
|
quotations_limited = "" |
||||
|
|
||||
|
number_po = "" |
||||
|
purchase_orders_limited = "" |
||||
|
rfq_limited = "" |
||||
|
|
||||
|
if group_id in partners.groups_id: |
||||
|
if show_so_q: |
||||
|
number_so = request.env[ |
||||
|
'ir.config_parameter' |
||||
|
].sudo().get_param('portal_dashboard.sale_count', 0) |
||||
|
|
||||
|
sale_orders_limited = sale_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'not in', ['draft', 'sent']) |
||||
|
], limit=int(number_so)) |
||||
|
|
||||
|
quotations_limited = sale_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'in', ['sent']) |
||||
|
], limit=int(number_so)) |
||||
|
|
||||
|
if show_po_rfq: |
||||
|
number_po = config_parameters.get_param( |
||||
|
'portal_dashboard.purchase_count', 0) |
||||
|
purchase_orders_limited = purchase_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'not in', ['draft', 'sent', 'to approve']) |
||||
|
], limit=int(number_po)) |
||||
|
rfq_limited = purchase_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'in', ['draft', 'sent', 'to approve']) |
||||
|
], limit=int(number_po)) |
||||
|
|
||||
|
if show_project: |
||||
|
number_project = config_parameters.get_param( |
||||
|
'portal_dashboard.project_count', 0) |
||||
|
projects_limited = project.search([], |
||||
|
limit=int(number_project)) |
||||
|
tasks_limited = task.search([], limit=int(number_project)) |
||||
|
|
||||
|
if show_account: |
||||
|
number_account = config_parameters.get_param( |
||||
|
'portal_dashboard.account_count', 0) |
||||
|
invoices_limited = account_move.search([ |
||||
|
('invoice_user_id', '=', user), |
||||
|
('state', 'not in', ['draft', 'cancel']) |
||||
|
], limit=int(number_account)) |
||||
|
|
||||
|
sale_orders = sale_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'not in', ['draft', 'sent']) |
||||
|
]) |
||||
|
|
||||
|
quotations = sale_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'in', ['sent']) |
||||
|
]) |
||||
|
purchase_orders = purchase_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'not in', ['draft', 'sent', 'to approve']) |
||||
|
]) |
||||
|
rfq = purchase_order.search([ |
||||
|
('user_id', '=', user), |
||||
|
('state', 'in', ['sent', 'to approve']) |
||||
|
]) |
||||
|
|
||||
|
projects = project.search([]) |
||||
|
tasks = task.search([]) |
||||
|
invoices = account_move.search([ |
||||
|
('invoice_user_id', '=', user), |
||||
|
('state', 'not in', ['draft', 'cancel']) |
||||
|
]) |
||||
|
else: |
||||
|
if show_so_q: |
||||
|
number_so = config_parameters.get_param( |
||||
|
'portal_dashboard.sale_count', 0) |
||||
|
|
||||
|
sale_orders_limited = sale_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'sent']) |
||||
|
], limit=int(number_so)) |
||||
|
|
||||
|
quotations_limited = sale_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'in', ['sent']) |
||||
|
], limit=int(number_so)) |
||||
|
|
||||
|
if show_po_rfq: |
||||
|
number_po = config_parameters.get_param( |
||||
|
'portal_dashboard.purchase_count', 0) |
||||
|
purchase_orders_limited = purchase_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'sent', 'to approve']) |
||||
|
], limit=int(number_po)) |
||||
|
rfq_limited = purchase_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'in', ['draft', 'sent', 'to approve']) |
||||
|
], limit=int(number_po)) |
||||
|
|
||||
|
if show_project: |
||||
|
number_project = config_parameters.get_param( |
||||
|
'portal_dashboard.project_count', 0) |
||||
|
projects_limited = project.search([('user_id', '=', user)], |
||||
|
limit=int(number_project)) |
||||
|
tasks_limited = task.search([('user_id', '=', user)], |
||||
|
limit=int(number_project)) |
||||
|
|
||||
|
if show_account: |
||||
|
number_account = config_parameters.get_param( |
||||
|
'portal_dashboard.account_count', 0) |
||||
|
invoices_limited = account_move.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'cancel']) |
||||
|
], limit=int(number_account)) |
||||
|
|
||||
|
sale_orders = sale_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'sent']) |
||||
|
]) |
||||
|
|
||||
|
quotations = sale_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'in', ['sent']) |
||||
|
]) |
||||
|
purchase_orders = purchase_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'sent', 'to approve']) |
||||
|
]) |
||||
|
rfq = purchase_order.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'in', ['sent', 'to approve']) |
||||
|
]) |
||||
|
|
||||
|
projects = project.search([ |
||||
|
('user_id', '=', user) |
||||
|
]) |
||||
|
tasks = task.search([('user_id', '=', user)]) |
||||
|
invoices = account_move.search([ |
||||
|
('partner_id', '=', partners.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'cancel']) |
||||
|
]) |
||||
|
|
||||
|
values = self._prepare_portal_layout_values() |
||||
|
values['sale_order_portal'] = sale_orders |
||||
|
values['quotation_portal'] = quotations |
||||
|
values['purchase_orders_portal'] = purchase_orders |
||||
|
values['rfq_portal'] = rfq |
||||
|
values['projects_portal'] = projects |
||||
|
values['tasks_portal'] = tasks |
||||
|
values['invoices_portal'] = invoices |
||||
|
values['number_so_portal'] = number_so |
||||
|
values['number_po_portal'] = number_po |
||||
|
values['number_account_portal'] = number_account |
||||
|
values['number_project_portal'] = number_project |
||||
|
values['sale_orders_limited'] = sale_orders_limited |
||||
|
values['quotations_limited'] = quotations_limited |
||||
|
values['purchase_orders_limited'] = purchase_orders_limited |
||||
|
values['rfq_limited'] = rfq_limited |
||||
|
values['invoices_limited'] = invoices_limited |
||||
|
values['projects_limited'] = projects_limited |
||||
|
values['tasks_limited'] = tasks_limited |
||||
|
values['show_so_q'] = show_so_q |
||||
|
values['show_po_rfq'] = show_po_rfq |
||||
|
values['show_project'] = show_project |
||||
|
values['show_account'] = show_account |
||||
|
|
||||
|
return request.render("portal_dashboard.replace_dashboard_portal_view", |
||||
|
values) |
@ -0,0 +1,6 @@ |
|||||
|
## Module <portal_dashboard> |
||||
|
|
||||
|
#### 30.06.2025 |
||||
|
#### Version 17.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for Portal Dashboard |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from . import res_config_settings |
||||
|
from . import chart_data |
@ -0,0 +1,94 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU 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.AbstractModel): |
||||
|
_name = 'portal.dashboard.data' |
||||
|
|
||||
|
@api.model |
||||
|
def datafetch(self): |
||||
|
"""To fetch data for portal dashboard""" |
||||
|
partner_id = self.env.user.id |
||||
|
user = self.env.user |
||||
|
group_user = self.env.ref('base.group_user') |
||||
|
|
||||
|
if group_user in user.groups_id: |
||||
|
all_invoices = self.env['account.move'].search([ |
||||
|
('move_type', '=', 'out_invoice'), |
||||
|
('state', 'not in', ['draft', 'cancel']), |
||||
|
]) |
||||
|
invoice_count = len(all_invoices) |
||||
|
|
||||
|
all_bills = self.env['account.move'].search([ |
||||
|
('move_type', '=', 'in_invoice'), |
||||
|
('state', 'not in', ['draft', 'cancel']), |
||||
|
]) |
||||
|
bill_count = len(all_bills) |
||||
|
|
||||
|
else: |
||||
|
all_invoices = self.env['account.move'].search([ |
||||
|
('move_type', '=', 'out_invoice'), |
||||
|
('partner_id', '=', user.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'cancel']), |
||||
|
]) |
||||
|
invoice_count = len(all_invoices) |
||||
|
|
||||
|
all_bills = self.env['account.move'].search([ |
||||
|
('move_type', '=', 'in_invoice'), |
||||
|
('partner_id', '=', user.partner_id.id), |
||||
|
('state', 'not in', ['draft', 'cancel']), |
||||
|
]) |
||||
|
bill_count = len(all_bills) |
||||
|
|
||||
|
all_accounting = [invoice_count, bill_count] # ✅ both values added |
||||
|
|
||||
|
# Sales data |
||||
|
quotations = self.env['sale.order'].search([ |
||||
|
('user_id', '=', partner_id), ('state', 'in', ['sent']) |
||||
|
]) |
||||
|
q_count = len(quotations) |
||||
|
|
||||
|
sale_orders = self.env['sale.order'].search([ |
||||
|
('user_id', '=', partner_id), ('state', 'not in', ['draft', 'sent']) |
||||
|
]) |
||||
|
so_count = len(sale_orders) |
||||
|
|
||||
|
all_so = [so_count, q_count] |
||||
|
|
||||
|
# Purchase data |
||||
|
rfqs = self.env['purchase.order'].search([ |
||||
|
('user_id', '=', partner_id), ('state', 'in', ['sent', 'to approve']) |
||||
|
]) |
||||
|
rfq_count = len(rfqs) |
||||
|
|
||||
|
purchase_orders = self.env['purchase.order'].search([ |
||||
|
('user_id', '=', partner_id), ('state', 'not in', ['draft', 'sent', 'to approve']) |
||||
|
]) |
||||
|
po_count = len(purchase_orders) |
||||
|
|
||||
|
all_purchase_order = [po_count, rfq_count] |
||||
|
|
||||
|
return { |
||||
|
'target': all_so, |
||||
|
'target_po': all_purchase_order, |
||||
|
'target_accounting': all_accounting, |
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
"""This class is used to inherit settings and add some fields to get |
||||
|
number of count of data that needs to |
||||
|
show in the dashboard""" |
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
is_show_recent_so_q = fields.Boolean( |
||||
|
string='Is show recent quotation and sale order table', |
||||
|
config_parameter='portal_dashboard.is_show_recent_so_q') |
||||
|
sale_count = fields.Integer( |
||||
|
string='How many recent records do you want to show?', |
||||
|
config_parameter='portal_dashboard.sale_count') |
||||
|
is_show_recent_po_rfq = fields.Boolean( |
||||
|
string='Is show recent RFQ table?', |
||||
|
config_parameter='portal_dashboard.is_show_recent_po_rfq') |
||||
|
purchase_count = fields.Integer( |
||||
|
string='How many recent records do you want to show?', |
||||
|
config_parameter='portal_dashboard.purchase_count') |
||||
|
is_show_project = fields.Boolean( |
||||
|
string='Is show project task table?', |
||||
|
config_parameter='portal_dashboard.is_show_project') |
||||
|
project_count = fields.Integer( |
||||
|
string='How many recent records do you want to show?', |
||||
|
config_parameter='portal_dashboard.project_count') |
||||
|
is_show_recent_invoice_bill = fields.Boolean( |
||||
|
string='Is show recent invoice/bill table?', |
||||
|
config_parameter='portal_dashboard.is_show_recent_invoice_bill') |
||||
|
account_count = fields.Integer( |
||||
|
string='How many recent records do you want to show?', |
||||
|
config_parameter='portal_dashboard.account_count') |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 164 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 114 KiB |
After Width: | Height: | Size: 15 KiB |
@ -0,0 +1,720 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
|
||||
|
<head> |
||||
|
<meta charset="UTF-8"> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
<title>Portal Dashboard</title> |
||||
|
<!-- Bootstrap CSS --> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
||||
|
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" |
||||
|
crossorigin="anonymous"> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" |
||||
|
rel="stylesheet"> |
||||
|
</head> |
||||
|
<body> |
||||
|
<section> |
||||
|
<div class="container" |
||||
|
style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
||||
|
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
||||
|
<div class="my-3"> |
||||
|
<img src="assets/misc/Cybrosys R.png" |
||||
|
style="width:auto !important; height:40px !important"> |
||||
|
</div> |
||||
|
<div class="my-3 d-flex align-items-center"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> |
||||
|
Odoo.sh |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
||||
|
style="margin: 80px 0px !important;"> |
||||
|
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
||||
|
#1A202C;"> |
||||
|
Portal Dashboard</h1> |
||||
|
<p class="my-3 mb-4" |
||||
|
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
||||
|
Change the design of my portal view in website. |
||||
|
</p> |
||||
|
<div style="width: 80%; margin-top: 3rem;"> |
||||
|
<img src="assets/screenshots/hero.gif" |
||||
|
class="img-responsive" width="100%" height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5 mb-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#714b67 !important"> |
||||
|
Key Highlights |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="row py-4"> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Graphical presentation of analysis of sales, purchase and accounts are available</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Allows to view table view of sale order, quotations, purchase orders, RFQ s, invoices, bills, projects and tasks</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">It |
||||
|
Can set the number of document wants to show in the table</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
||||
|
background: #FFF; |
||||
|
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
||||
|
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
||||
|
display: flex; justify-content: center; align-items: center; |
||||
|
margin-right: 10px; flex-shrink: 0;"> |
||||
|
<i class="fa-solid fa-star " |
||||
|
style="color: #fff;font-size:14px;"></i> |
||||
|
</div> |
||||
|
<div> |
||||
|
<p style="color: #1A202C;font-weight: 600; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Able to view documents directly from the dashboard</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container rounded"> |
||||
|
<ul class="nav nav-tabs d-flex" |
||||
|
style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
class="active show" data-toggle="tab" href="#tab1" |
||||
|
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
||||
|
<i class="fa-regular fa-image pr-2" |
||||
|
style="color: #fff;"></i> |
||||
|
Screenshots</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
data-toggle="tab" href="#tab2" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
||||
|
class="fa-solid fa-star pr-2" |
||||
|
style="color: #fff;"></i>Features</a></li> |
||||
|
<li class="col text-center py-2 text-nowrap " |
||||
|
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"> |
||||
|
<a |
||||
|
data-toggle="tab" href="#tab3" |
||||
|
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
||||
|
class="fa-solid fa-book-open pr-2" |
||||
|
style="color: #fff;"></i>Released Notes</a></li> |
||||
|
</ul> |
||||
|
<div class="tab-content" |
||||
|
style="background-color: rgba(121, 113, 119, 0.04);"> |
||||
|
<div id="tab1" class="tab-pane fade in active show"> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/screenshot1.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
You can see these fields in the settings to set the table view</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/screenshot2.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
These are the different documents and their counts shown in card format</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/screenshot3.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
you can see table representation of documents according to the number of document needed set in settings |
||||
|
</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-lg-12 py-2" |
||||
|
style="padding: 1rem 4rem !important;"> |
||||
|
<div |
||||
|
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="row justify-content-center p-3 w-100 m-0"> |
||||
|
<img src="assets/screenshots/screenshot4.png" |
||||
|
class="img-responsive" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<div class="px-3"> |
||||
|
<h4 class="mt-2" |
||||
|
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
||||
|
Also there are analysis pie chart for sales, purchase and accounting</h4> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab2" class="tab-pane fade"> |
||||
|
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
||||
|
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span> |
||||
|
Graphical presentation of analysis of sales, purchase and accounts are available |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span> |
||||
|
Allows to view table view of sale order, quotations, purchase orders, RFQ s, invoices, bills, projects and tasks |
||||
|
</li> |
||||
|
<li class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<span style="margin-right: 12px;"><img |
||||
|
src="assets/misc/star (1) 2.svg" |
||||
|
alt="" |
||||
|
width="16px"></span> |
||||
|
Can set the number of document wants to show in the table |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="tab3" class="tab-pane fade"> |
||||
|
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
||||
|
<div class="py-3" |
||||
|
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
||||
|
<div class="d-flex mb-3" |
||||
|
style="font-size: 0.8rem; font-weight: 500;"><span>Version |
||||
|
17.0.1.0.0</span><span |
||||
|
class="px-2">|</span><span |
||||
|
style="color: #714B67;font-weight: 600;">Released on:30th June 2025</span> |
||||
|
</div> |
||||
|
<p class="m-0" |
||||
|
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
||||
|
Initial Commit for Portal Dashboard.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Related Products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
||||
|
<div class="carousel-inner"> |
||||
|
<div class="carousel-item active"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/login_user_detail/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/1.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
User Log Details</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/employee_dynamic_fields/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/2.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Employee Dynamic Fields</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/whatsapp_redirect/" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/3.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Send Whatsapp Message</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="carousel-item"> |
||||
|
<div class="row p-4"> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/purchase_product_history/#" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px; "> |
||||
|
<img src="assets/modules/4.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Purchase History Of Products</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/sale_customer_product_history/#" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/5.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
|
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Sale Order Line Images</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/top_selling_product_report/#" |
||||
|
style="color: #000; text-decoration: none;"> |
||||
|
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
||||
|
<div style="width: 300px;"> |
||||
|
<img src="assets/modules/6.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pt-2 text-black font-weight-bold"> |
||||
|
Top/Least Selling Product Report</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<a class="carousel-control-prev" href="#myCarousel" |
||||
|
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="#myCarousel" |
||||
|
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 class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Our Services</p> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row py-3"> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/cogs.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Customization</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/wrench.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/lifebuoy.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/user.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Hire |
||||
|
Odoo Developer</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
||||
|
|
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/puzzle.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Integration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/update.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Migration</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/consultation.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/training.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Implementation</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 px-4 py-4"> |
||||
|
<div |
||||
|
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
||||
|
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
||||
|
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
||||
|
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
||||
|
<img src="assets/icons/license.png" |
||||
|
alt="service-icon" width="38px" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<p style="margin-top: 20px; font-weight: bold;">Odoo |
||||
|
Licensing Consultancy</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Our Industries</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container"> |
||||
|
<div class="row my-5 py-4"> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100 " |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/trading-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
||||
|
<p>Easily procure and sell your products</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/pos-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
||||
|
<p>Easy configuration and convivial experience</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
||||
|
<img src="assets/icons/education-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Education</p> |
||||
|
<p>A platform for educational management</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/manufacturing-black.png" |
||||
|
width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Manufacturing</p> |
||||
|
<p>Plan, track and schedule your operations</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
||||
|
<img src="assets/icons/ecom-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & |
||||
|
Website</p> |
||||
|
<p>Mobile friendly, awe-inspiring product pages</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/service-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Service |
||||
|
Management</p> |
||||
|
<p>Keep track of services and invoice</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
||||
|
<img src="assets/icons/restaurant-black.png" |
||||
|
width="42px" height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;"> |
||||
|
Restaurant</p> |
||||
|
<p>Run your bar or restaurant methodically</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-3 col-sm-6 p-0"> |
||||
|
<div class="d-flex flex-column h-100" |
||||
|
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
||||
|
<img src="assets/icons/hotel-black.png" width="42px" |
||||
|
height="auto" alt=""> |
||||
|
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
||||
|
font-size: 1.2rem; margin-bottom: 2px;">Hotel |
||||
|
Management</p> |
||||
|
<p>An all-inclusive hotel management application</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container mt-5"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
||||
|
<p class="m-0" |
||||
|
style="font-weight: 600; font-size: 24px; color:#000 !important"> |
||||
|
Support</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="container my-5"> |
||||
|
<div class="row" style="background-color: #FFFAFE;"> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
||||
|
style="border-right: 1px solid #D9D9D9;"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/support (1) 1.svg" alt="" |
||||
|
width="60px" style="margin-right: 12px;"> |
||||
|
<div style="padding: 0px 8px;"> |
||||
|
<span |
||||
|
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
||||
|
Help?</span> |
||||
|
<p class="m-0" style="color:#718096;">Got |
||||
|
questions or need help? Get in touch.</p> |
||||
|
<div style="font-weight: 400;"><span><img |
||||
|
src="assets/misc/support-email.svg" |
||||
|
alt="" |
||||
|
width="18px" |
||||
|
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
||||
|
<div style="padding: 30px;"> |
||||
|
<div class="d-flex align-items-center"> |
||||
|
<img src="assets/misc/whatsapp 1.svg" alt="" |
||||
|
width="60px" style="margin-right: 12px;"> |
||||
|
<div> |
||||
|
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
||||
|
<p class="m-0" style="color:#718096;">Say hi to |
||||
|
us on WhatsApp!</p> |
||||
|
<div style="font-weight: 400; font-size: 16px;"><span><img |
||||
|
src="assets/misc/phone.svg" |
||||
|
alt="" width="14px" |
||||
|
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
||||
|
99456767686 |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- Optional JavaScript --> |
||||
|
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
||||
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
||||
|
</body> |
||||
|
</html> |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 100 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 39 KiB |
After Width: | Height: | Size: 44 KiB |
@ -0,0 +1,106 @@ |
|||||
|
/** @odoo-module */ |
||||
|
|
||||
|
import { useService } from "@web/core/utils/hooks"; |
||||
|
import { Component, useState } from "@odoo/owl"; |
||||
|
import { registry } from "@web/core/registry"; |
||||
|
import { session } from "@web/session"; |
||||
|
import { _t } from "@web/core/l10n/translation"; |
||||
|
import publicWidget from '@web/legacy/js/public/public_widget'; |
||||
|
import { jsonrpc } from "@web/core/network/rpc_service"; |
||||
|
|
||||
|
publicWidget.registry.PortalDashBoardGraph = publicWidget.Widget.extend({ |
||||
|
selector: '.portal_dashboard', |
||||
|
|
||||
|
init: function (parent, context) { |
||||
|
this._super(parent, context); |
||||
|
}, |
||||
|
|
||||
|
start: function () { |
||||
|
this.fetch_data(); |
||||
|
}, |
||||
|
|
||||
|
fetch_data: async function () { |
||||
|
var result = await jsonrpc('/web/dataset/call_kw', { |
||||
|
model: 'portal.dashboard.data', |
||||
|
method: 'datafetch', |
||||
|
args: [], |
||||
|
kwargs: {} |
||||
|
}); |
||||
|
|
||||
|
// For Sales Analysis
|
||||
|
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' } |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
// For Purchase Analysis
|
||||
|
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' } |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
// For Accounting Analysis
|
||||
|
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(result); |
||||
|
} |
||||
|
}); |
@ -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%; |
||||
|
} |
@ -0,0 +1,536 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<template id="replace_dashboard_portal_view"> |
||||
|
<t t-call="portal.frontend_layout"> |
||||
|
<!-- To set the count of data--> |
||||
|
<t t-set="count_quotation" t-value="0"/> |
||||
|
<t t-foreach="quotation_portal" t-as="q"> |
||||
|
<t t-set="count_quotation" t-value="count_quotation+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_task" t-value="0"/> |
||||
|
<t t-foreach="tasks_portal" t-as="t"> |
||||
|
<t t-set="count_task" t-value="count_task+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_lead" t-value="0"/> |
||||
|
<t t-foreach="leads_portal" t-as="l"> |
||||
|
<t t-set="count_lead" t-value="count_lead+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_opportunity" t-value="0"/> |
||||
|
<t t-foreach="opportunities_portal" t-as="o"> |
||||
|
<t t-set="count_opportunity" t-value="count_opportunity+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_so" t-value="0"/> |
||||
|
<t t-foreach="sale_order_portal" t-as="s"> |
||||
|
<t t-set="count_so" t-value="count_so+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_rfq" t-value="0"/> |
||||
|
<t t-foreach="rfq_portal" t-as="r"> |
||||
|
<t t-set="count_rfq" t-value="count_rfq+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_po" t-value="0"/> |
||||
|
<t t-foreach="purchase_orders_portal" t-as="p"> |
||||
|
<t t-set="count_po" t-value="count_po+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_project" t-value="0"/> |
||||
|
<t t-foreach="projects_portal" t-as="pr"> |
||||
|
<t t-set="count_project" t-value="count_project+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_invoice" t-value="0"/> |
||||
|
<t t-foreach="invoices_portal" t-as="in"> |
||||
|
<t t-set="count_invoice" t-value="count_invoice+1"/> |
||||
|
</t> |
||||
|
<t t-set="count_bill" t-value="0"/> |
||||
|
|
||||
|
<!-- End of setting the count of data--> |
||||
|
|
||||
|
<div class="portal_dashboard"> |
||||
|
|
||||
|
<!-- Adding each record and their count--> |
||||
|
|
||||
|
<div style="width:70%;margin-left:20%;margin-right:auto;"> |
||||
|
<div style="display: flex;flex-wrap:wrap;"> |
||||
|
<div class="card-group row" |
||||
|
style="margin-top:50px;display:block; margin-bottom:1%;"> |
||||
|
<div class="col main_box"> |
||||
|
<div class="card " style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/q1.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
|
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
Quotation |
||||
|
<b> |
||||
|
<t t-esc="count_quotation"/> |
||||
|
</b> |
||||
|
</h5> |
||||
|
</div> |
||||
|
<div class="card-footer card_footer"> |
||||
|
<small class="text-muted"> |
||||
|
<a href="/my/quotes"> |
||||
|
<button class="button_style"> |
||||
|
View |
||||
|
</button> |
||||
|
</a> |
||||
|
</small> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col main_box"> |
||||
|
<div class="card " style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/rfq.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
RFQ |
||||
|
<b> |
||||
|
<t t-esc="count_rfq"/> |
||||
|
</b> |
||||
|
</h5> |
||||
|
|
||||
|
</div> |
||||
|
<div class="card-footer card_footer"> |
||||
|
<small class="text-muted"> |
||||
|
<a href="/my/rfq"> |
||||
|
<button class="button_style"> |
||||
|
View |
||||
|
</button> |
||||
|
</a> |
||||
|
</small> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col main_box"> |
||||
|
<div class="card " style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/so.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
Sale Order |
||||
|
<b> |
||||
|
<t t-esc="count_so"/> |
||||
|
</b> |
||||
|
</h5> |
||||
|
|
||||
|
</div> |
||||
|
<div class="card-footer card_footer"> |
||||
|
<small class="text-muted"> |
||||
|
<a href="/my/orders"> |
||||
|
<button class="button_style"> |
||||
|
View |
||||
|
</button> |
||||
|
</a> |
||||
|
</small> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col main_box"> |
||||
|
<div class="card " style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/po.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
Purchase Order |
||||
|
<b> |
||||
|
<t t-esc="count_po"/> |
||||
|
</b> |
||||
|
</h5> |
||||
|
|
||||
|
</div> |
||||
|
<div class="card-footer card_footer"> |
||||
|
<small class="text-muted"> |
||||
|
<a href="/my/purchase"> |
||||
|
<button class="button_style"> |
||||
|
View |
||||
|
</button> |
||||
|
</a> |
||||
|
</small> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div style="display: flex;flex-wrap:wrap; margin-bottom:1%;"> |
||||
|
<div class="card-group row" |
||||
|
style="margin-top:50px;display:block;"> |
||||
|
<div class="col main_box"> |
||||
|
<div class="card" style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/project.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
Projects |
||||
|
<b> |
||||
|
<t t-esc="count_project"/> |
||||
|
</b> |
||||
|
</h5> |
||||
|
|
||||
|
</div> |
||||
|
<div class="card-footer card_footer"> |
||||
|
<small class="text-muted"> |
||||
|
<a href="/my/projects"> |
||||
|
<button class="button_style"> |
||||
|
View |
||||
|
</button> |
||||
|
</a> |
||||
|
</small> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col main_box"> |
||||
|
<div class="card" style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/task.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
Tasks |
||||
|
<b> |
||||
|
<t t-esc="count_task"/> |
||||
|
</b> |
||||
|
</h5> |
||||
|
|
||||
|
</div> |
||||
|
<div class="card-footer"> |
||||
|
<small class="text-muted card_footer"> |
||||
|
<a href="/my/tasks"> |
||||
|
<button class="button_style"> |
||||
|
View |
||||
|
</button> |
||||
|
</a> |
||||
|
</small> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col main_box"> |
||||
|
<div class="card " style="width:200px;"> |
||||
|
<img src="/portal_dashboard/static/src/images/bill.png" |
||||
|
class="card-img-top" |
||||
|
alt="..." style="width:50px;"/> |
||||
|
<div class="card-body"> |
||||
|
<h5 class="card-title" |
||||
|
style="text-align:right;"> |
||||
|
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="dict(sale_order.fields_get(allfields=['state'])['state']['selection'])[sale_order.state]"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tboady> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
|
||||
|
<t t-if="show_po_rfq"> |
||||
|
<div class="container" |
||||
|
style="width:100%;margin-top:5%;margin-left:15%;border:1px solid gray;"> |
||||
|
<div class="row" style="margin-top:1%;"> |
||||
|
<div style="float:left;width:50%" class="col"> |
||||
|
<table class="table"> |
||||
|
<div class="number_project"> |
||||
|
Latest |
||||
|
<t t-esc="number_po_portal"/> |
||||
|
RFQ |
||||
|
</div> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Reference</th> |
||||
|
<th>Order Date</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tboady id="portal_top_product"> |
||||
|
<t t-foreach="rfq_limited" t-as="rfq"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<t t-esc="rfq.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="rfq.date_order"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tboady> |
||||
|
</table> |
||||
|
</div> |
||||
|
<div style="float:right;margin-left:5%;width:50%;" |
||||
|
class="col"> |
||||
|
<table class="table"> |
||||
|
<div class="number_project"> |
||||
|
Latest |
||||
|
<t t-esc="number_po_portal"/> |
||||
|
Purchase order |
||||
|
</div> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Reference</th> |
||||
|
<th>Order Date</th> |
||||
|
<th>State</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tboady id="portal_top_product"> |
||||
|
<t t-foreach="purchase_orders_limited" |
||||
|
t-as="purchase_order"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<t t-esc="purchase_order.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="purchase_order.date_approve"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="dict(purchase_order.fields_get(allfields=['state'])['state']['selection'])[purchase_order.state]"/> |
||||
|
|
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tboady> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-if="show_account"> |
||||
|
<div class="container container_style"> |
||||
|
<div class="row" style="margin-top:1%;"> |
||||
|
<div style="float:left;width:50%" class="col"> |
||||
|
<table class="table"> |
||||
|
<div class="number_project"> |
||||
|
Latest |
||||
|
<t t-esc="number_account_portal"/> |
||||
|
Invoice |
||||
|
</div> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Invoice #</th> |
||||
|
<th>Invoice Date</th> |
||||
|
<th>Due Date</th> |
||||
|
<th>Status</th> |
||||
|
<th>Amount Due</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tboady id="portal_top_product"> |
||||
|
<t t-foreach="invoices_limited" |
||||
|
t-as="invoice"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<t t-esc="invoice.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="invoice.invoice_date"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="invoice.invoice_date"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="dict(invoice.fields_get(allfields=['state'])['state']['selection'])[invoice.state]"/> |
||||
|
|
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="invoice.amount_total_signed"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tboady> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
<t t-if="show_project"> |
||||
|
<div class="container" |
||||
|
style="width:100%;margin-top:2%;margin-left:16%;border:1px solid gray;margin-bottom:1%;"> |
||||
|
<div class="row" style="margin-top:1%;"> |
||||
|
<div style="float:left;width:50%" class="col"> |
||||
|
<table class="table"> |
||||
|
<div class="number_project"> |
||||
|
Latest |
||||
|
<t t-esc="number_project_portal"/> |
||||
|
Projects |
||||
|
</div> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Project</th> |
||||
|
<th>Start Date</th> |
||||
|
<th>Expiry Date</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tboady id="portal_top_product"> |
||||
|
<t t-foreach="projects_limited" |
||||
|
t-as="project"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<t t-esc="project.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="project.date_start"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="project.date"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tboady> |
||||
|
</table> |
||||
|
</div> |
||||
|
<div style="float:right;margin-left:5%;width:50%;" |
||||
|
class="col"> |
||||
|
<table class="table"> |
||||
|
<div class="number_project"> |
||||
|
Latest |
||||
|
<t t-esc="number_project_portal"/> |
||||
|
Tasks |
||||
|
</div> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th>Task</th> |
||||
|
<th>Project</th> |
||||
|
<th>Deadline</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tboady id="portal_top_product"> |
||||
|
<t t-foreach="tasks_limited" |
||||
|
t-as="task"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<t t-esc="task.name"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="task.project_id['name']"/> |
||||
|
</td> |
||||
|
<td> |
||||
|
<t t-esc="task.date_deadline"/> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tboady> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
<div class="row" style="width:70%; margin-left:15%; margin-right:auto; height:100%;"> |
||||
|
<div class="col-md-4" style="padding: 1%;"> |
||||
|
<div class="card"> |
||||
|
<div class="card-body"> |
||||
|
<div class="card-text"> |
||||
|
<canvas id="sales_pie"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4" style="padding: 1%;"> |
||||
|
<div class="card"> |
||||
|
<div class="card-body"> |
||||
|
<div class="card-text"> |
||||
|
<canvas id="purchase_pie"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4" style="padding: 1%;"> |
||||
|
<div class="card"> |
||||
|
<div class="card-body"> |
||||
|
<div class="card-text"> |
||||
|
<canvas id="account_pie"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</template> |
||||
|
</odoo> |
@ -0,0 +1,110 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
||||
|
<field name="name">res.config.settings.view.form.inherit.delivery</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="inherit_id" ref="website.res_config_settings_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//block[@id='website_settings']" position="after"> |
||||
|
<!-- Portal Dashboard Settings --> |
||||
|
<h2>Portal Dashboard</h2> |
||||
|
<div class="row mt16 o_settings_container"> |
||||
|
<div class="content-group mt16"> |
||||
|
<!-- Recent Quotation / Sale Order --> |
||||
|
<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> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-12 col-lg-6 o_setting_box" invisible="not is_show_recent_so_q"> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<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" options="{'required': True}" depends="is_show_recent_so_q"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- Recent RFQ / Purchase Order --> |
||||
|
<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> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-12 col-lg-6 o_setting_box" invisible="not is_show_recent_po_rfq"> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<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" options="{'required': True}" depends="is_show_recent_po_rfq"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- Project Tasks --> |
||||
|
<div class="col-12 col-lg-6 o_setting_box"> |
||||
|
<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> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-12 col-lg-6 o_setting_box" invisible="not is_show_project"> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<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" options="{'required': True}" depends="is_show_project"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<!-- Recent Invoice / Bill --> |
||||
|
<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> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-12 col-lg-6 o_setting_box" invisible="not is_show_recent_invoice_bill"> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<label for="account_count"/> |
||||
|
<div class="text-muted"> |
||||
|
How many recent records do you want to show? |
||||
|
</div> |
||||
|
<field name="account_count" options="{'required': True}" depends="is_show_recent_invoice_bill"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |