@ -0,0 +1,47 @@ |
|||||
|
.. 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 |
||||
|
|
||||
|
POS Dashboard |
||||
|
============= |
||||
|
Detailed dashboard view for POS |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No Additional configuration is needed. |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (AGPL-3). |
||||
|
(http://www.gnu.org/licenses/agpl-3.0-standalone.html) |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developers: (V13) Irfan, (V14) Jibin, (V15) Irfan, (V16) Amaya Aravind EV, |
||||
|
(V17) Subina P, (V18) Bhagyadev KP, 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,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Bhagyadev KP (odoo@cybrosys.com) |
||||
|
# |
||||
|
# This program is free software: you can modify |
||||
|
# it under the terms of the GNU Affero General Public License (AGPL) as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# 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 for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from . import models |
@ -0,0 +1,52 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Bhagyadev KP (odoo@cybrosys.com) |
||||
|
# |
||||
|
# This program is free software: you can modify |
||||
|
# it under the terms of the GNU Affero General Public License (AGPL) as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# 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 for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
{ |
||||
|
'name': "POS Dashboard", |
||||
|
'version': '18.0.1.0.0', |
||||
|
'category': 'Point of Sale', |
||||
|
'summary': """Detailed dashboard view for POS""", |
||||
|
'description': """Customized POS dashboard view""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['hr', 'point_of_sale', 'web'], |
||||
|
'data': [ |
||||
|
'views/pos_order_views.xml' |
||||
|
], |
||||
|
'assets': { |
||||
|
'web.assets_backend': [ |
||||
|
'dashboard_pos/static/src/xml/pos_dashboard.xml', |
||||
|
'dashboard_pos/static/src/js/pos_dashboard.js', |
||||
|
'dashboard_pos/static/src/css/pos_dashboard.css', |
||||
|
'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.0/chart.umd.min.js', |
||||
|
'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js' |
||||
|
], |
||||
|
}, |
||||
|
'external_dependencies': { |
||||
|
'python': ['pandas'], |
||||
|
}, |
||||
|
'images': ['static/description/banner.png'], |
||||
|
'license': "AGPL-3", |
||||
|
'installable': True, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
## Module <pos_dashboard> |
||||
|
|
||||
|
#### 08.10.2024 |
||||
|
#### Version 18.0.1.0.0 |
||||
|
##### ADD |
||||
|
- Initial Commit for POS Dashboard |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Bhagyadev KP (odoo@cybrosys.com) |
||||
|
# |
||||
|
# This program is free software: you can modify |
||||
|
# it under the terms of the GNU Affero General Public License (AGPL) as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# 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 for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from . import pos_order |
@ -0,0 +1,234 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Bhagyadev KP (odoo@cybrosys.com) |
||||
|
# |
||||
|
# This program is free software: you can modify |
||||
|
# it under the terms of the GNU Affero General Public License (AGPL) as |
||||
|
# published by the Free Software Foundation, either version 3 of the |
||||
|
# License, or (at your option) any later version. |
||||
|
# |
||||
|
# 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 for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU Affero General Public License |
||||
|
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
import pytz |
||||
|
from datetime import datetime |
||||
|
from odoo import api, models |
||||
|
|
||||
|
|
||||
|
class PosOrder(models.Model): |
||||
|
""" Inherited class of pos dashboard to add features of dashboard""" |
||||
|
_inherit = 'pos.order' |
||||
|
|
||||
|
@api.model |
||||
|
def get_department(self, option): |
||||
|
""" Function to get the order details of company wise""" |
||||
|
|
||||
|
company_id = self.env.company.id |
||||
|
if option == 'pos_hourly_sales': |
||||
|
|
||||
|
user_tz = self.env.user.tz if self.env.user.tz else pytz.UTC |
||||
|
query = '''select EXTRACT(hour FROM date_order at time zone 'utc' at time zone '{}') |
||||
|
as date_month,sum(amount_total) from pos_order where |
||||
|
EXTRACT(month FROM date_order::date) = EXTRACT(month FROM CURRENT_DATE) |
||||
|
AND pos_order.company_id = ''' + str( |
||||
|
company_id) + ''' group by date_month ''' |
||||
|
query = query.format(user_tz) |
||||
|
label = 'HOURS' |
||||
|
elif option == 'pos_monthly_sales': |
||||
|
query = '''select date_order::date as date_month,sum(amount_total) from pos_order where |
||||
|
EXTRACT(month FROM date_order::date) = EXTRACT(month FROM CURRENT_DATE) AND pos_order.company_id = ''' + str( |
||||
|
company_id) + ''' group by date_month ''' |
||||
|
label = 'DAYS' |
||||
|
else: |
||||
|
query = '''select TO_CHAR(date_order,'MON')date_month,sum(amount_total) from pos_order where |
||||
|
EXTRACT(year FROM date_order::date) = EXTRACT(year FROM CURRENT_DATE) AND pos_order.company_id = ''' + str( |
||||
|
company_id) + ''' group by date_month''' |
||||
|
label = 'MONTHS' |
||||
|
self._cr.execute(query) |
||||
|
docs = self._cr.dictfetchall() |
||||
|
order = [] |
||||
|
for record in docs: |
||||
|
order.append(record.get('sum')) |
||||
|
today = [] |
||||
|
for record in docs: |
||||
|
today.append(record.get('date_month')) |
||||
|
final = [order, today, label] |
||||
|
return final |
||||
|
|
||||
|
@api.model |
||||
|
def get_details(self): |
||||
|
""" Function to get the payment details""" |
||||
|
company_id = self.env.company.id |
||||
|
cr = self._cr |
||||
|
cr.execute( |
||||
|
"""select pos_payment_method.name ->>'en_US',sum(amount) from pos_payment inner join pos_payment_method on |
||||
|
pos_payment_method.id=pos_payment.payment_method_id group by pos_payment_method.name ORDER |
||||
|
BY sum(amount) DESC; """) |
||||
|
payment_details = cr.fetchall() |
||||
|
cr.execute( |
||||
|
'''select hr_employee.name,sum(pos_order.amount_paid) as total,count(pos_order.amount_paid) as orders |
||||
|
from pos_order inner join hr_employee on pos_order.user_id = hr_employee.user_id |
||||
|
where pos_order.company_id =''' + str( |
||||
|
company_id) + " " + '''GROUP BY hr_employee.name order by total DESC;''') |
||||
|
salesperson = cr.fetchall() |
||||
|
total_sales = [] |
||||
|
for rec in salesperson: |
||||
|
rec = list(rec) |
||||
|
sym_id = rec[1] |
||||
|
company = self.env.company |
||||
|
if company.currency_id.position == 'after': |
||||
|
rec[1] = "%s %s" % (sym_id, company.currency_id.symbol) |
||||
|
else: |
||||
|
rec[1] = "%s %s" % (company.currency_id.symbol, sym_id) |
||||
|
rec = tuple(rec) |
||||
|
total_sales.append(rec) |
||||
|
cr.execute( |
||||
|
'''select DISTINCT(product_template.name) as product_name,sum(qty) as total_quantity from |
||||
|
pos_order_line inner join product_product on product_product.id=pos_order_line.product_id inner join |
||||
|
product_template on product_product.product_tmpl_id = product_template.id where pos_order_line.company_id =''' + str( |
||||
|
company_id) + ''' group by product_template.id ORDER |
||||
|
BY total_quantity DESC Limit 10 ''') |
||||
|
selling_product = cr.fetchall() |
||||
|
sessions = self.env['pos.config'].search([]) |
||||
|
sessions_list = [] |
||||
|
dict = { |
||||
|
'opened': 'Opened', |
||||
|
'opening_control': "Opening Control" |
||||
|
} |
||||
|
for session in sessions: |
||||
|
st = dict.get(session.pos_session_state) |
||||
|
if st == None: |
||||
|
sessions_list.append({ |
||||
|
'session': session.name, |
||||
|
'status': 'Closed' |
||||
|
}) |
||||
|
else: |
||||
|
sessions_list.append({ |
||||
|
'session': session.name, |
||||
|
'status': dict.get(session.pos_session_state) |
||||
|
}) |
||||
|
payments = [] |
||||
|
for rec in payment_details: |
||||
|
rec = list(rec) |
||||
|
sym_id = rec[1] |
||||
|
company = self.env.company |
||||
|
if company.currency_id.position == 'after': |
||||
|
rec[1] = "%s %s" % (sym_id, company.currency_id.symbol) |
||||
|
else: |
||||
|
rec[1] = "%s %s" % (company.currency_id.symbol, sym_id) |
||||
|
rec = tuple(rec) |
||||
|
payments.append(rec) |
||||
|
return { |
||||
|
'payment_details': payments, |
||||
|
'salesperson': total_sales, |
||||
|
'selling_product': sessions_list, |
||||
|
} |
||||
|
|
||||
|
@api.model |
||||
|
def get_refund_details(self): |
||||
|
""" Function to get the Refund details""" |
||||
|
default_date = datetime.today().date() |
||||
|
pos_order = self.env['pos.order'].search([]) |
||||
|
total = 0 |
||||
|
today_refund_total = 0 |
||||
|
total_order_count = 0 |
||||
|
total_refund_count = 0 |
||||
|
today_sale = 0 |
||||
|
a = 0 |
||||
|
for rec in pos_order: |
||||
|
if rec.amount_total < 0.0 and rec.date_order.date() == default_date: |
||||
|
today_refund_total = today_refund_total + 1 |
||||
|
total_sales = rec.amount_total |
||||
|
total = total + total_sales |
||||
|
total_order_count = total_order_count + 1 |
||||
|
if rec.date_order.date() == default_date: |
||||
|
today_sale = today_sale + 1 |
||||
|
if rec.amount_total < 0.0: |
||||
|
total_refund_count = total_refund_count + 1 |
||||
|
magnitude = 0 |
||||
|
while abs(total) >= 1000: |
||||
|
magnitude += 1 |
||||
|
total /= 1000.0 |
||||
|
# add more suffixes if you need them |
||||
|
val = '%.2f%s' % (total, ['', 'K', 'M', 'G', 'T', 'P'][magnitude]) |
||||
|
pos_session = self.env['pos.session'].search([]) |
||||
|
total_session = 0 |
||||
|
for record in pos_session: |
||||
|
total_session = total_session + 1 |
||||
|
return { |
||||
|
'total_sale': val, |
||||
|
'total_order_count': total_order_count, |
||||
|
'total_refund_count': total_refund_count, |
||||
|
'total_session': total_session, |
||||
|
'today_refund_total': today_refund_total, |
||||
|
'today_sale': today_sale, |
||||
|
} |
||||
|
|
||||
|
@api.model |
||||
|
def get_the_top_customer(self, ): |
||||
|
""" To get the top Customer details""" |
||||
|
company_id = self.env.company.id |
||||
|
query = '''select res_partner.name as customer,pos_order.partner_id,sum(pos_order.amount_paid) as amount_total from pos_order |
||||
|
inner join res_partner on res_partner.id = pos_order.partner_id where pos_order.company_id = ''' + str( |
||||
|
company_id) + ''' GROUP BY pos_order.partner_id, |
||||
|
res_partner.name ORDER BY amount_total DESC LIMIT 10;''' |
||||
|
self._cr.execute(query) |
||||
|
docs = self._cr.dictfetchall() |
||||
|
|
||||
|
order = [] |
||||
|
for record in docs: |
||||
|
order.append(record.get('amount_total')) |
||||
|
day = [] |
||||
|
for record in docs: |
||||
|
day.append(record.get('customer')) |
||||
|
final = [order, day] |
||||
|
return final |
||||
|
|
||||
|
@api.model |
||||
|
def get_the_top_products(self): |
||||
|
""" Function to get the top products""" |
||||
|
company_id = self.env.company.id |
||||
|
query = '''select DISTINCT(product_template.name)->>'en_US' as product_name,sum(qty) as total_quantity from |
||||
|
pos_order_line inner join product_product on product_product.id=pos_order_line.product_id inner join |
||||
|
product_template on product_product.product_tmpl_id = product_template.id where pos_order_line.company_id = ''' + str( |
||||
|
company_id) + ''' group by product_template.id ORDER |
||||
|
BY total_quantity DESC Limit 10 ''' |
||||
|
self._cr.execute(query) |
||||
|
top_product = self._cr.dictfetchall() |
||||
|
total_quantity = [] |
||||
|
for record in top_product: |
||||
|
total_quantity.append(record.get('total_quantity')) |
||||
|
product_name = [] |
||||
|
for record in top_product: |
||||
|
product_name.append(record.get('product_name')) |
||||
|
final = [total_quantity, product_name] |
||||
|
return final |
||||
|
|
||||
|
@api.model |
||||
|
def get_the_top_categories(self): |
||||
|
""" Function to get the top Product categories""" |
||||
|
company_id = self.env.company.id |
||||
|
query = '''select DISTINCT(product_category.complete_name) as product_category,sum(qty) as total_quantity |
||||
|
from pos_order_line inner join product_product on product_product.id=pos_order_line.product_id inner join |
||||
|
product_template on product_product.product_tmpl_id = product_template.id inner join product_category on |
||||
|
product_category.id =product_template.categ_id where pos_order_line.company_id = ''' + str( |
||||
|
company_id) + ''' group by product_category ORDER BY total_quantity DESC ''' |
||||
|
self._cr.execute(query) |
||||
|
top_product = self._cr.dictfetchall() |
||||
|
total_quantity = [] |
||||
|
for record in top_product: |
||||
|
total_quantity.append(record.get('total_quantity')) |
||||
|
product_categ = [] |
||||
|
for record in top_product: |
||||
|
product_categ.append(record.get('product_category')) |
||||
|
final = [total_quantity, product_categ] |
||||
|
return final |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 134 KiB |
After Width: | Height: | Size: 124 KiB |
After Width: | Height: | Size: 107 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 10 KiB |
@ -0,0 +1,964 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"/> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
||||
|
<title>POS Dashboard</title> |
||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" |
||||
|
rel="stylesheet"/> |
||||
|
<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=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" |
||||
|
rel="stylesheet"> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"/> |
||||
|
<style> |
||||
|
:root { |
||||
|
--primary-color: #7f54b3; |
||||
|
--bg-white: #fff; |
||||
|
--text-color: #121212; |
||||
|
--text-color-light: #64728f; |
||||
|
} |
||||
|
body{ |
||||
|
font-family: "Montserrat", sans-serif; |
||||
|
} |
||||
|
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { |
||||
|
color: var(--text-color); |
||||
|
font-family: Montserrat; |
||||
|
font-size: 16px !important; |
||||
|
font-weight: 500 !important; |
||||
|
border-radius: 30px; |
||||
|
line-height: normal; |
||||
|
text-transform: capitalize; |
||||
|
background-color: #F5F5F5; |
||||
|
border: none; |
||||
|
margin-bottom: 0; |
||||
|
padding: 12px 24px; |
||||
|
} |
||||
|
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { |
||||
|
border-color: transparent; |
||||
|
isolation: isolate; |
||||
|
} |
||||
|
.nav-tabs .nav-link:focus-visible { |
||||
|
border-color: transparent; |
||||
|
box-shadow: none; |
||||
|
} |
||||
|
/* owl-carosel */ |
||||
|
.owl-carousel .owl-nav { |
||||
|
position: absolute; |
||||
|
top: 42%; |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
transform: translateY(-42%); |
||||
|
} |
||||
|
|
||||
|
.owl-carousel .owl-nav button.owl-prev { |
||||
|
position: absolute; |
||||
|
right: -36px; |
||||
|
font-size: 28px; |
||||
|
background-color: #e4e4e4; |
||||
|
border-radius: 20px; |
||||
|
width: 40px; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.owl-carousel .owl-nav button.owl-next { |
||||
|
position: absolute; |
||||
|
left: -36px; |
||||
|
font-size: 28px; |
||||
|
background-color: #e4e4e4; |
||||
|
border-radius: 20px; |
||||
|
width: 40px; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
<!-- overview --> |
||||
|
<div class="container"> |
||||
|
<div class="my-5"> |
||||
|
<!-- button tab --> |
||||
|
<!-- --> |
||||
|
<!-- version support --> |
||||
|
<div class="my-3 d-flex align-items-center justify-content-end"> |
||||
|
<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 class="tab-content" id="myTabContent"> |
||||
|
<!-- description --> |
||||
|
<div class="tab-pane fade show active" id="home" role="tabpanel" |
||||
|
aria-labelledby="home-tab"> |
||||
|
<div class="position-relative" |
||||
|
style="border-radius: 16px; background: #f8f8f8; padding: 20px 0;"> |
||||
|
<div class="row " style=" |
||||
|
padding: 2rem 0rem 0 !important; |
||||
|
"> |
||||
|
<div class="col-lg-8 mx-auto gap-4 d-flex flex-column align-items-center"> |
||||
|
<p class="my-1 text-center text-uppercase" |
||||
|
style=" |
||||
|
letter-spacing: 4px !important; |
||||
|
color: var(--primary-color); |
||||
|
font-weight: bold; |
||||
|
text-align: center; |
||||
|
font-size: 14px; |
||||
|
font-weight: 600; |
||||
|
line-height: 15.96px; |
||||
|
text-transform: uppercase; |
||||
|
"> |
||||
|
This Module Creates a Detailed Dashboard View for POS. |
||||
|
</p> |
||||
|
<h1 class="text-center text-uppercase my-0" |
||||
|
style=" |
||||
|
color: var(--text-color); |
||||
|
font-size: 46px; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
">POS Dashboard</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-lg-12 d-flex justify-content-center align-items-center" |
||||
|
style="margin: 3rem 0;"> |
||||
|
<img src="./assets/icons/brand-pair.svg" |
||||
|
width="100%" |
||||
|
height="auto" |
||||
|
style="width: 50%" |
||||
|
class="img-responsive"/> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<a href="mailto:odoo@cybrosys.com" |
||||
|
target="_blank" |
||||
|
style="background-color: transparent;border-radius: 35px; |
||||
|
font-family: Montserrat; |
||||
|
display: inline-block; |
||||
|
padding: 7px 33px; |
||||
|
border: 1px solid var(--primary-color); |
||||
|
color: var(--primary-color); |
||||
|
text-decoration: none; |
||||
|
" |
||||
|
class="mx-1 mb-2 deep-1 deep_hover"> |
||||
|
<img class="img" |
||||
|
style="width: 24px" |
||||
|
src="./assets/icons/mail.svg"/> |
||||
|
<span class="pl-2" |
||||
|
style=" font-size: 16px; vertical-align: middle" |
||||
|
>Email Us</span |
||||
|
> |
||||
|
</a> |
||||
|
<a href="skype:cybroopenerp?chat" |
||||
|
target="_blank" |
||||
|
style=" |
||||
|
background-color: #7f289b; |
||||
|
font-family: Montserrat; |
||||
|
display: inline-block; |
||||
|
padding: 7px 33px; |
||||
|
border: 1px solid #7f289b; |
||||
|
border-radius: 35px; |
||||
|
text-decoration: none; |
||||
|
" |
||||
|
class="mx-1 mb-2 deep-1 deep_hover"> |
||||
|
<img |
||||
|
class="img" |
||||
|
style="width: 24px" |
||||
|
src="./assets/icons/skype-fill.svg" |
||||
|
/> |
||||
|
<span |
||||
|
class="pl-2" |
||||
|
style="color: #fff; font-size: 16px; vertical-align: middle" |
||||
|
>Skype Us</span |
||||
|
> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="d-flex justify-content-center mt-2"> |
||||
|
<img src="./assets/screenshots/hero.gif" |
||||
|
class="w-100" |
||||
|
style="z-index: 3; height: auto;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-absolute" |
||||
|
style="bottom: 0; z-index: 1; width: 100%;"> |
||||
|
<img src="./assets/icons/banner-bg.svg" |
||||
|
class="img-fluid w-100"> |
||||
|
</div> |
||||
|
<div class="position-absolute" |
||||
|
style="bottom: 0; right: 0; z-index: 2;"> |
||||
|
<img src="./assets/icons/patter.svg"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- key-highlight --> |
||||
|
<div class="" style="border-radius: 16px; |
||||
|
padding: 60px 40px; |
||||
|
border: 1px solid #EBEEF2; |
||||
|
background: #F5F5F7; |
||||
|
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25); "> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
||||
|
<h2 style=" color: var(--text-color); |
||||
|
text-align: center; |
||||
|
font-size: 40px; |
||||
|
font-weight: 700; |
||||
|
text-transform: uppercase; padding-bottom: 50px;">Key |
||||
|
Heighlights</h2> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Total POS Orders. |
||||
|
</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Sale Report Charts. |
||||
|
</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Session Details. |
||||
|
</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Refund Details. |
||||
|
</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Top Products. |
||||
|
</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!--code --> |
||||
|
<div class="my-5"> |
||||
|
<div style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px; position: relative;"> |
||||
|
<div class="wrapper-info" |
||||
|
style="display: flex; flex-direction: column; gap: 20px;"> |
||||
|
<span class="wrapper-subtitle" |
||||
|
style="font-size: 40px; font-weight: 700; color: #fff;line-height: 60px; text-transform: capitalize; width: 450px;">POS Dashboard</span> |
||||
|
<h3 class="wrapper-details" |
||||
|
style="font-size: 20px; font-weight: 400; color: #fff; line-height: 32px; "> |
||||
|
Are you ready to make your business more |
||||
|
organized? |
||||
|
<br> Improve now! |
||||
|
</h3> |
||||
|
<div class="d-flex gap-3"> |
||||
|
<a href="mailto:odoo@cybrosys.com" |
||||
|
class="shop-btn" style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
||||
|
border: 1px solid var(--DarkOverlayElement-DO20, rgba(255, 255, 255, 0.20)); |
||||
|
background: linear-gradient(93deg, rgba(255, 255, 255, 0.08) 6.01%, rgba(255, 255, 255, 0.17) 90.83%); |
||||
|
backdrop-filter: blur(10px); color: #fff; padding: 12px 16px 12px 16px; text-decoration: none;"> |
||||
|
<span style="border-radius: 12px; |
||||
|
background: var(--DarkOverlayElement-DO10, rgba(255, 255, 255, 0.10)); |
||||
|
backdrop-filter: blur(6px);padding: 12px;"> |
||||
|
<img src="./assets/icons/banner-mail.svg"> |
||||
|
</span> |
||||
|
<span style="font-weight: 500;">odoo@cybrosys.com</span> |
||||
|
</a> |
||||
|
<a href="https://wa.me/919074270811" target="_blank" class="shop-btn" |
||||
|
style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
||||
|
border: 1px solid var(--DarkOverlayElement-DO20, rgba(255, 255, 255, 0.20)); |
||||
|
background: linear-gradient(93deg, rgba(255, 255, 255, 0.08) 6.01%, rgba(255, 255, 255, 0.17) 90.83%); |
||||
|
backdrop-filter: blur(10px); color: #fff; padding: 12px 22px 12px 18px; text-decoration: none;"> |
||||
|
<span style="border-radius: 12px; |
||||
|
background: var(--DarkOverlayElement-DO10, rgba(255, 255, 255, 0.10)); |
||||
|
backdrop-filter: blur(6px);padding: 12px;"> |
||||
|
<img src="./assets/icons/banner-call.svg"> |
||||
|
</span> |
||||
|
<span style="font-weight: 500;">+91 9074270811</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="" |
||||
|
style="position: absolute; bottom: 0; right: 0;"> |
||||
|
<img src="./assets/icons/banner-pattern.svg" |
||||
|
style="width: 540px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- end-code --> |
||||
|
<!-- --> |
||||
|
<!-- screenshot and other --> |
||||
|
|
||||
|
<div class="mb-4 bg-white" |
||||
|
style=" border: 1px solid #EBEEF2; border-radius: 6px; box-shadow: 0px 8px 20px -4px rgba(0, 0, 0, 0.10); border: 1px solid #EBEEF2;"> |
||||
|
<div> |
||||
|
<ul class="nav nav-tabs justify-content-center bg-white py-2" |
||||
|
id="myTab" role="tablist" |
||||
|
style="border-radius: 6px 6px 0 0;"> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="overview" |
||||
|
aria-bs-selected="true" |
||||
|
class="nav-link active" data-bs-toggle="tab" |
||||
|
href="#overview" id="overview-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px"> |
||||
|
Screenshots</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="feature" |
||||
|
aria-bs-selected="false" |
||||
|
class="nav-link py-2" data-bs-toggle="tab" |
||||
|
href="#feature" id="feature-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px">Features</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="faq" aria-bs-selected="false" |
||||
|
class="nav-link" data-bs-toggle="tab" |
||||
|
href="#faq" id="faq-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px"> |
||||
|
FAQs</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="releases" |
||||
|
aria-bs-selected="false" class="nav-link" |
||||
|
data-bs-toggle="tab" href="#releases" |
||||
|
id="releases-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px">Releases</a> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="tab-content p-md-5 p-2 py-3" id="myTabContent"> |
||||
|
<div aria-labelledby="overview-tab" |
||||
|
class="tab-pane fade show active" id="overview" |
||||
|
role="tabpanel"> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px"> |
||||
|
<img alt="acc_bg" |
||||
|
class="w-100 h-100 position-absolute img-fluid left_0" |
||||
|
loading="lazy" |
||||
|
src="//apps.odoocdn.com/apps/assets/17.0/ks_dashboard_ninja/ai-img/o3.png?007008f" |
||||
|
style=""> |
||||
|
</div> |
||||
|
<!-- screenshots section--> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
||||
|
font-weight: 700;"> |
||||
|
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> |
||||
|
</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)">From POS --> Reporting --> Dashboard , Click on Dashboard. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/1.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
||||
|
font-weight: 700;"> |
||||
|
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> |
||||
|
</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)">By clicking on each tile, It will go to the respective details in the backend. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/2.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
||||
|
font-weight: 700;"> |
||||
|
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> |
||||
|
</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="./assets/screenshots/3.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="feature-tab" |
||||
|
class="tab-pane fade show py-1" id="feature" |
||||
|
role="tabpanel"> |
||||
|
<div class="row py-4"> |
||||
|
<!-- Features Section --> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px">Total POS Orders.</p> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px">Sale Report Charts.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px">Session Details.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px">Refund Details.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px">Top Products.</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="faq-tab" |
||||
|
class="tab-pane fade show" id="faq" |
||||
|
role="tabpanel"> |
||||
|
<div class="row" |
||||
|
style=" background-color:#fff !important"> |
||||
|
<div class="col-md-12" aria-labelledby="faq-tab" |
||||
|
id="faq" role="tabpanel"> |
||||
|
<div class="accordion mb-4" id="accordion6"> |
||||
|
<div style="background-color:#fff"> |
||||
|
<!-- accordian --> |
||||
|
<div class="accordion" |
||||
|
id="accordion_faq"> |
||||
|
<!-- Question 1 --> |
||||
|
<div class="" |
||||
|
style="margin:1rem 0rem"> |
||||
|
<div aria-expanded="false" |
||||
|
class=" card-header collapsed" |
||||
|
data-bs-toggle="collapse" |
||||
|
data-bs-target="#collapseFAQOne" |
||||
|
href="#collapseFAQOne" |
||||
|
aria-controls="collapseFAQOne" |
||||
|
style="cursor: pointer; background-color:#f8f8f8; border:none; border-top-right-radius:10px; border-top-left-radius:10px; padding: 12px 24px;"> |
||||
|
<a class="card-title text-decoration-none" |
||||
|
style=" font-size:18px; line-height:30px; font-weight:500; color:#040f3a"> |
||||
|
Is there any filter for for the dashboard? |
||||
|
<img alt="" |
||||
|
class="float-end" |
||||
|
src="//apps.odoocdn.com/apps/assets/16.0/index_test_odoo/assets/icons/down.svg?6ef7fd7" |
||||
|
width="25px"> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="accordion-collapse collapse" |
||||
|
aria-labelledby="collapseFAQOne" |
||||
|
data-bs-parent="#accordion_faq" |
||||
|
id="collapseFAQOne" |
||||
|
style=" box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px; border: 1px solid #f8f8f8; border-bottom-right-radius:10px; border-bottom-left-radius:10px"> |
||||
|
<p style=" padding:0.75rem 1.25rem; font-size:16px; line-height:27px; color:#888; font-weight:normal; border-bottom-right-radius:10px; border-bottom-left-radius:10px">Yes you can filter the dashboard hourly, monthly and yearly. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="releases-tab" |
||||
|
class="tab-pane fade show" id="releases" |
||||
|
role="tabpanel"> |
||||
|
<!-- Release Notes --> |
||||
|
<div class="row pt-5 m-0"> |
||||
|
<div class="col-md-3"> |
||||
|
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> |
||||
|
Latest Release 18.0.1.0.0 |
||||
|
</h4> |
||||
|
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> |
||||
|
8th october, 2024 |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="col-md-8"> |
||||
|
<div style="padding:0 0 40px"> |
||||
|
<div style="margin:0 0 10px"> |
||||
|
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> |
||||
|
Add |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex m-0" |
||||
|
style="color:#7A7979;"> |
||||
|
<ul class="pl-3 mb-0"> |
||||
|
<li> |
||||
|
Initial Commit |
||||
|
</li> |
||||
|
|
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
<!-- related post --> |
||||
|
<div class="" style="margin-top: 100px;"> |
||||
|
<div class="text-center mt-4"> |
||||
|
<h3 class="mb-0" style="color: #000; |
||||
|
text-align: center; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 40px; |
||||
|
font-style: normal; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
text-transform: uppercase; |
||||
|
padding-bottom: 50px;" |
||||
|
>Related Modules</h3> |
||||
|
</div> |
||||
|
|
||||
|
<div class="owl-carousel owl-theme"> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/base_accounting_kit" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/1.gif" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center mb-2 pb-0 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Odoo 17 Full Accounting Kit</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/ohrms_core" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/2.gif" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Open HRMS Core</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/invoice_format_editor" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/3.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Odoo17 Invoice Format Editor</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<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-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/4.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
User Log Details</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/17.0/product_barcode" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/5.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Odoo17 Product Barcode Generator</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<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-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/6.jpg" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Send Whatsapp Message Odoo17</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
<!-- service-section --> |
||||
|
|
||||
|
<section id="services" class="mt-5" style="border-radius: 16px; |
||||
|
border: 1px solid #EBEEF2; |
||||
|
background: var(--Neutral-N0, #FFF); |
||||
|
padding: 60px 40px; |
||||
|
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25);"> |
||||
|
<div class="text-center mt-4"><h3 class="mb-0" style="color: #000; |
||||
|
text-align: center; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 40px; |
||||
|
font-style: normal; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
text-transform: uppercase; |
||||
|
padding-bottom: 50px;"> |
||||
|
Our Services</h3></div> |
||||
|
<div class="row mt-3"> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FFE2E5; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FA5A7D; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/gear.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;"> Odoo Customization</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FFF4DE; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FF947A; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/wrench-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;"> Odoo Implementation</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#DCFCE7; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#3CD856; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/life-ring-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Support</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F3E8FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#BF83FF; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/arrows-repeat.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Migration</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F1F9FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#01649C; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/puzzle-piece-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo integration</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#EDF8ED; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#69CC70; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/odoo-consultancy.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Consultancy</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F1F6FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#2E4556; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/odoo-licencing.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Licensing</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FAF6EA; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FCD12C; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/hire-odoo.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Hire Odoo Developer</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- licence --> |
||||
|
<div class="tab-pane fade" id="profile" role="tabpanel" |
||||
|
aria-labelledby="profile-tab"> |
||||
|
<div class="px-5"> |
||||
|
.... |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</div> |
||||
|
</body> |
||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" |
||||
|
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" |
||||
|
crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> |
||||
|
<script> |
||||
|
$('.owl-carousel').owlCarousel({ |
||||
|
rtl:true, |
||||
|
loop:true, |
||||
|
margin:10, |
||||
|
nav:true, |
||||
|
responsive:{ |
||||
|
0:{ |
||||
|
items:1 |
||||
|
}, |
||||
|
600:{ |
||||
|
items:3 |
||||
|
}, |
||||
|
1000:{ |
||||
|
items:3 |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
</script> |
||||
|
</html> |
@ -0,0 +1,431 @@ |
|||||
|
/** @odoo-module **/ |
||||
|
import { registry } from "@web/core/registry"; |
||||
|
import { session } from "@web/session"; |
||||
|
import { _t } from "@web/core/l10n/translation"; |
||||
|
import { Component } from "@odoo/owl"; |
||||
|
import { onWillStart, onMounted, useState } from "@odoo/owl"; |
||||
|
import { useService } from "@web/core/utils/hooks"; |
||||
|
import { user } from "@web/core/user"; |
||||
|
const actionRegistry = registry.category("actions"); |
||||
|
export class PosDashboard extends Component{ |
||||
|
//Initializes the PosDashboard component,
|
||||
|
setup() { |
||||
|
super.setup(...arguments); |
||||
|
this.orm = useService('orm') |
||||
|
this.user = user; |
||||
|
this.actionService = useService("action"); |
||||
|
this.state = useState({ |
||||
|
payment_details : [], |
||||
|
top_salesperson : [], |
||||
|
selling_product : [], |
||||
|
total_sale: [], |
||||
|
total_order_count: [], |
||||
|
total_refund_count : [], |
||||
|
total_session:[], |
||||
|
today_refund_total:[], |
||||
|
today_sale:[], |
||||
|
}); |
||||
|
// When the component is about to start, fetch data in tiles
|
||||
|
onWillStart(async () => { |
||||
|
await this.fetch_data(); |
||||
|
}); |
||||
|
//When the component is mounted, render various charts
|
||||
|
onMounted(async () => { |
||||
|
await this.render_top_customer_graph(); |
||||
|
await this.render_top_product_graph(); |
||||
|
await this.render_product_category_graph(); |
||||
|
await this.onclick_pos_sales('Hourly'); |
||||
|
}); |
||||
|
} |
||||
|
async fetch_data() { |
||||
|
// Function to fetch all the pos details
|
||||
|
var result = await this.orm.call('pos.order','get_refund_details',[]) |
||||
|
this.state.total_sale = result['total_sale'], |
||||
|
this.state.total_order_count = result['total_order_count'] |
||||
|
this.state.total_refund_count = result['total_refund_count'] |
||||
|
this.state.total_session = result['total_session'] |
||||
|
this.state.today_refund_total = result['today_refund_total'] |
||||
|
this.state.today_sale = result['today_sale'] |
||||
|
var data = await this.orm.call('pos.order','get_details',[]) |
||||
|
this.state.payment_details = data['payment_details'] |
||||
|
this.state.top_salesperson = data['salesperson'] |
||||
|
this.state.selling_product = data['selling_product'] |
||||
|
} |
||||
|
pos_order_today (e){ |
||||
|
//To get the details of today's order
|
||||
|
var self = this; |
||||
|
var date = new Date(); |
||||
|
var yesterday = new Date(date.getTime()); |
||||
|
yesterday.setDate(date.getDate() - 1); |
||||
|
e.stopPropagation(); |
||||
|
e.preventDefault(); |
||||
|
this.user.hasGroup('hr.group_hr_user').then(function(has_group){ |
||||
|
if(has_group){ |
||||
|
var options = { |
||||
|
on_reverse_breadcrumb: self.on_reverse_breadcrumb, |
||||
|
}; |
||||
|
self.actionService.doAction({ |
||||
|
name: _t("Today Order"), |
||||
|
type: 'ir.actions.act_window', |
||||
|
res_model: 'pos.order', |
||||
|
view_mode: 'tree,form,calendar', |
||||
|
view_type: 'form', |
||||
|
views: [[false, 'list'],[false, 'form']], |
||||
|
domain: [['date_order','<=', date],['date_order', '>=', yesterday]], |
||||
|
target: 'current' |
||||
|
}, options) |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
pos_refund_orders (e){ |
||||
|
// To get the details of refund orders
|
||||
|
var self = this; |
||||
|
var date = new Date(); |
||||
|
var yesterday = new Date(date.getTime()); |
||||
|
yesterday.setDate(date.getDate() - 1); |
||||
|
e.stopPropagation(); |
||||
|
e.preventDefault(); |
||||
|
this.user.hasGroup('hr.group_hr_user').then(function(has_group){ |
||||
|
if(has_group){ |
||||
|
var options = { |
||||
|
on_reverse_breadcrumb: self.on_reverse_breadcrumb, |
||||
|
}; |
||||
|
self.actionService.doAction({ |
||||
|
name: _t("Refund Orders"), |
||||
|
type: 'ir.actions.act_window', |
||||
|
res_model: 'pos.order', |
||||
|
view_mode: 'tree,form,calendar', |
||||
|
view_type: 'form', |
||||
|
views: [[false, 'list'],[false, 'form']], |
||||
|
domain: [['amount_total', '<', 0.0]], |
||||
|
target: 'current' |
||||
|
}, options) |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
pos_refund_today_orders (e){ |
||||
|
// To get the details of today's order
|
||||
|
var self = this; |
||||
|
var date = new Date(); |
||||
|
var yesterday = new Date(date.getTime()); |
||||
|
yesterday.setDate(date.getDate() - 1); |
||||
|
e.stopPropagation(); |
||||
|
e.preventDefault(); |
||||
|
this.user.hasGroup('hr.group_hr_user').then(function(has_group){ |
||||
|
if(has_group){ |
||||
|
var options = { |
||||
|
on_reverse_breadcrumb: self.on_reverse_breadcrumb, |
||||
|
}; |
||||
|
self.actionService.doAction({ |
||||
|
name: _t("Refund Orders"), |
||||
|
type: 'ir.actions.act_window', |
||||
|
res_model: 'pos.order', |
||||
|
view_mode: 'tree,form,calendar', |
||||
|
view_type: 'form', |
||||
|
views: [[false, 'list'],[false, 'form']], |
||||
|
domain: [['amount_total', '<', 0.0],['date_order','<=', date],['date_order', '>=', yesterday]], |
||||
|
target: 'current' |
||||
|
}, options) |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
pos_order (e){ |
||||
|
// To get total orders details
|
||||
|
var self = this; |
||||
|
var date = new Date(); |
||||
|
var yesterday = new Date(date.getTime()); |
||||
|
yesterday.setDate(date.getDate() - 1); |
||||
|
e.stopPropagation(); |
||||
|
e.preventDefault(); |
||||
|
this.user.hasGroup('hr.group_hr_user').then(function(has_group){ |
||||
|
if(has_group){ |
||||
|
var options = { |
||||
|
on_reverse_breadcrumb: self.on_reverse_breadcrumb, |
||||
|
}; |
||||
|
self.actionService.doAction({ |
||||
|
name: _t("Total Order"), |
||||
|
type: 'ir.actions.act_window', |
||||
|
res_model: 'pos.order', |
||||
|
view_mode: 'tree,form,calendar', |
||||
|
view_type: 'form', |
||||
|
views: [[false, 'list'],[false, 'form']], |
||||
|
target: 'current' |
||||
|
}, options) |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
pos_session (e){ |
||||
|
// To get the Session wise details
|
||||
|
var self = this; |
||||
|
e.stopPropagation(); |
||||
|
e.preventDefault(); |
||||
|
this.user.hasGroup('hr.group_hr_user').then(function(has_group){ |
||||
|
if(has_group){ |
||||
|
var options = { |
||||
|
on_reverse_breadcrumb: self.on_reverse_breadcrumb, |
||||
|
}; |
||||
|
self.actionService.doAction({ |
||||
|
name: _t("sessions"), |
||||
|
type: 'ir.actions.act_window', |
||||
|
res_model: 'pos.session', |
||||
|
view_mode: 'tree,form,calendar', |
||||
|
view_type: 'form', |
||||
|
views: [[false, 'list'],[false, 'form']], |
||||
|
target: 'current' |
||||
|
}, options) |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
onclick_pos_sales (events){ |
||||
|
// To get the Sale bar chart
|
||||
|
var option = $(events.target).val(); |
||||
|
var self = this |
||||
|
var ctx = $("#canvas_1"); |
||||
|
this.orm.call('pos.order', 'get_department',[option]) |
||||
|
.then(function (arrays) { |
||||
|
var data = { |
||||
|
labels: arrays[1], |
||||
|
datasets: [ |
||||
|
{ |
||||
|
label: arrays[2], |
||||
|
data: arrays[0], |
||||
|
backgroundColor: [ |
||||
|
"rgba(255, 99, 132,1)", |
||||
|
"rgba(54, 162, 235,1)", |
||||
|
"rgba(75, 192, 192,1)", |
||||
|
"rgba(153, 102, 255,1)", |
||||
|
"rgba(10,20,30,1)" |
||||
|
], |
||||
|
borderColor: [ |
||||
|
"rgba(255, 99, 132, 0.2)", |
||||
|
"rgba(54, 162, 235, 0.2)", |
||||
|
"rgba(75, 192, 192, 0.2)", |
||||
|
"rgba(153, 102, 255, 0.2)", |
||||
|
"rgba(10,20,30,0.3)" |
||||
|
], |
||||
|
borderWidth: 1 |
||||
|
}, |
||||
|
] |
||||
|
}; |
||||
|
//options
|
||||
|
var options = { |
||||
|
responsive: true, |
||||
|
title: { |
||||
|
display: true, |
||||
|
position: "top", |
||||
|
text: "SALE DETAILS", |
||||
|
fontSize: 18, |
||||
|
fontColor: "#111" |
||||
|
}, |
||||
|
legend: { |
||||
|
display: true, |
||||
|
position: "bottom", |
||||
|
labels: { |
||||
|
fontColor: "#333", |
||||
|
fontSize: 16 |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
//create Chart class object
|
||||
|
if (window.myCharts != undefined) |
||||
|
window.myCharts.destroy(); |
||||
|
window.myCharts = new Chart(ctx, { |
||||
|
type: "bar", |
||||
|
data: data, |
||||
|
options: options |
||||
|
}); |
||||
|
|
||||
|
}); |
||||
|
} |
||||
|
render_top_customer_graph(){ |
||||
|
// To render the top customer pie chart
|
||||
|
var self = this |
||||
|
var ctx = $(".top_customer"); |
||||
|
this.orm.call('pos.order', 'get_the_top_customer') |
||||
|
.then(function (arrays) { |
||||
|
var data = { |
||||
|
labels: arrays[1], |
||||
|
datasets: [ |
||||
|
{ |
||||
|
label: "", |
||||
|
data: arrays[0], |
||||
|
backgroundColor: [ |
||||
|
"rgb(148, 22, 227)", |
||||
|
"rgba(54, 162, 235)", |
||||
|
"rgba(75, 192, 192)", |
||||
|
"rgba(153, 102, 255)", |
||||
|
"rgba(10,20,30)" |
||||
|
], |
||||
|
borderColor: [ |
||||
|
"rgba(255, 99, 132,)", |
||||
|
"rgba(54, 162, 235,)", |
||||
|
"rgba(75, 192, 192,)", |
||||
|
"rgba(153, 102, 255,)", |
||||
|
"rgba(10,20,30,)" |
||||
|
], |
||||
|
borderWidth: 1 |
||||
|
}, |
||||
|
|
||||
|
] |
||||
|
}; |
||||
|
//options
|
||||
|
var options = { |
||||
|
responsive: true, |
||||
|
scales: { |
||||
|
x: { |
||||
|
title: { |
||||
|
display: true, |
||||
|
text: "Top Customer", |
||||
|
position: "top", |
||||
|
fontSize: 24, |
||||
|
color: "#111" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
legend: { |
||||
|
display: true, |
||||
|
position: "bottom", |
||||
|
labels: { |
||||
|
fontColor: "#333", |
||||
|
fontSize: 16 |
||||
|
} |
||||
|
} |
||||
|
}; |
||||
|
//create Chart class object
|
||||
|
var chart = new Chart(ctx, { |
||||
|
type: "pie", |
||||
|
data: data, |
||||
|
options: options |
||||
|
}); |
||||
|
|
||||
|
}); |
||||
|
} |
||||
|
render_top_product_graph (){ |
||||
|
// To render the top product graph
|
||||
|
var self = this |
||||
|
var ctx = $(".top_selling_product"); |
||||
|
this.orm.call('pos.order', 'get_the_top_products') |
||||
|
.then(function (arrays) { |
||||
|
var data = { |
||||
|
|
||||
|
labels: arrays[1], |
||||
|
datasets: [ |
||||
|
{ |
||||
|
label: "Quantity", |
||||
|
data: arrays[0], |
||||
|
backgroundColor: [ |
||||
|
"rgba(255, 99, 132,1)", |
||||
|
"rgba(54, 162, 235,1)", |
||||
|
"rgba(75, 192, 192,1)", |
||||
|
"rgba(153, 102, 255,1)", |
||||
|
"rgba(10,20,30,1)" |
||||
|
], |
||||
|
borderColor: [ |
||||
|
"rgba(255, 99, 132, 0.2)", |
||||
|
"rgba(54, 162, 235, 0.2)", |
||||
|
"rgba(75, 192, 192, 0.2)", |
||||
|
"rgba(153, 102, 255, 0.2)", |
||||
|
"rgba(10,20,30,0.3)" |
||||
|
], |
||||
|
borderWidth: 1 |
||||
|
}, |
||||
|
|
||||
|
] |
||||
|
}; |
||||
|
//options
|
||||
|
var options = { |
||||
|
responsive: true, |
||||
|
indexAxis: 'y', |
||||
|
legend: { |
||||
|
display: true, |
||||
|
position: "bottom", |
||||
|
labels: { |
||||
|
fontColor: "#333", |
||||
|
fontSize: 16 |
||||
|
} |
||||
|
}, |
||||
|
scales: { |
||||
|
x: { |
||||
|
title: { |
||||
|
display: true, |
||||
|
text: "Top products", |
||||
|
position: "top", |
||||
|
fontSize: 24, |
||||
|
color: "#111" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
}; |
||||
|
//create Chart class object
|
||||
|
var chart = new Chart(ctx, { |
||||
|
type: "bar", |
||||
|
data: data, |
||||
|
options: options |
||||
|
}); |
||||
|
}); |
||||
|
} |
||||
|
render_product_category_graph (){ |
||||
|
// To render the product category graph
|
||||
|
var self = this |
||||
|
var ctx = $(".top_product_categories"); |
||||
|
this.orm.call('pos.order', 'get_the_top_categories') |
||||
|
.then(function (arrays) { |
||||
|
var data = { |
||||
|
labels: arrays[1], |
||||
|
datasets: [ |
||||
|
{ |
||||
|
label: "Quantity", |
||||
|
data: arrays[0], |
||||
|
backgroundColor: [ |
||||
|
"rgba(255, 99, 132,1)", |
||||
|
"rgba(54, 162, 235,1)", |
||||
|
"rgba(75, 192, 192,1)", |
||||
|
"rgba(153, 102, 255,1)", |
||||
|
"rgba(10,20,30,1)" |
||||
|
], |
||||
|
borderColor: [ |
||||
|
"rgba(255, 99, 132, 0.2)", |
||||
|
"rgba(54, 162, 235, 0.2)", |
||||
|
"rgba(75, 192, 192, 0.2)", |
||||
|
"rgba(153, 102, 255, 0.2)", |
||||
|
"rgba(10,20,30,0.3)" |
||||
|
], |
||||
|
borderWidth: 1 |
||||
|
}, |
||||
|
] |
||||
|
}; |
||||
|
//options
|
||||
|
var options = { |
||||
|
responsive: true, |
||||
|
scales: { |
||||
|
x: { |
||||
|
title: { |
||||
|
display: true, |
||||
|
text: "Top product categories", |
||||
|
position: "top", |
||||
|
fontSize: 24, |
||||
|
color: "#111" |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
legend: { |
||||
|
display: true, |
||||
|
position: "bottom", |
||||
|
labels: { |
||||
|
fontColor: "#333", |
||||
|
fontSize: 16 |
||||
|
} |
||||
|
}, |
||||
|
indexAxis: 'y', |
||||
|
}; |
||||
|
//create Chart class object
|
||||
|
var chart = new Chart(ctx, { |
||||
|
type: "bar", |
||||
|
data: data, |
||||
|
options: options |
||||
|
}); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
PosDashboard.template = 'PosDashboard' |
||||
|
registry.category("actions").add("pos_order_menu", PosDashboard) |
@ -0,0 +1,313 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<!-- Template for Pos Dashboard --> |
||||
|
<t t-name="PosDashboard"> |
||||
|
<div class="oh_dashboards"> |
||||
|
<div class="container-fluid o_pos_dashboard"> |
||||
|
<div class="row main-section" align="center"> |
||||
|
<div class="col-md-4 col-sm-6 pos_order_today oh-payslip" |
||||
|
t-on-click="pos_order_today"> |
||||
|
<div class="oh-card" style="width: 288px;"> |
||||
|
<div class="oh-card-body"> |
||||
|
<div class="stat-widget-one"> |
||||
|
<div class="stat-icon" |
||||
|
style="background:#5bcbd0"><i class="fa fa-shopping-bag"/></div> |
||||
|
<div class="stat-content"> |
||||
|
<div class="stat-head">Today Orders</div> |
||||
|
<div class="stat_count"><t t-esc="state.today_sale"/></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 pos_order oh-payslip" |
||||
|
t-on-click="pos_order"> |
||||
|
<div class="oh-card" style="width: 288px;"> |
||||
|
<div class="oh-card-body"> |
||||
|
<div class="stat-widget-one"> |
||||
|
<div class="stat-icon" |
||||
|
style="background:#645bd0"><i class="fa fa-shopping-bag"/></div> |
||||
|
<div class="stat-content"> |
||||
|
<div class="stat-head">Total Orders</div> |
||||
|
<div class="stat_count"><t t-esc="state.total_order_count"/></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 pos_total_sales oh-payslip" |
||||
|
t-on-click="pos_order"> |
||||
|
<div class="oh-card" style="width: 350px;"> |
||||
|
<div class="oh-card-body"> |
||||
|
<div class="stat-widget-one"> |
||||
|
<div class="stat-icon" |
||||
|
style="background:#85d05b"><i class="fa fa-shopping-cart"/></div> |
||||
|
<div class="stat-content"> |
||||
|
<div class="stat-head">Total Sales</div> |
||||
|
<div class="stat_count"><t t-esc="state.total_sale"/></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 pos_session oh-payslip" |
||||
|
t-on-click="pos_session"> |
||||
|
<div class="oh-card" |
||||
|
style="width: 288px;"> |
||||
|
<div class="oh-card-body"> |
||||
|
<div class="stat-widget-one"> |
||||
|
<div class="stat-icon" |
||||
|
style="background:#d05bb8"><i class="fa fa-signal"/></div> |
||||
|
<div class="stat-content"> |
||||
|
<div class="stat-head">Sessions</div> |
||||
|
<div class="stat_count"><t t-esc="state.total_session"/></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="col-md-4 col-sm-6 pos_refund_orders oh-payslip" |
||||
|
t-on-click="pos_refund_orders"> |
||||
|
<div class="oh-card" style="width: 288px;"> |
||||
|
<div class="oh-card-body"> |
||||
|
<div class="stat-widget-one"> |
||||
|
<div class="stat-icon" |
||||
|
style="background:#d0c35b"><i class="fa fa-minus-circle"/></div> |
||||
|
<div class="stat-content"> |
||||
|
<div class="stat-head">Total Refund Orders</div> |
||||
|
<div class="stat_count"><t t-esc="state.total_refund_count"/></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-sm-6 pos_refund_today_orders oh-payslip" |
||||
|
t-on-click="pos_refund_today_orders"> |
||||
|
<div class="oh-card" style="width: 350px;"> |
||||
|
<div class="oh-card-body"> |
||||
|
<div class="stat-widget-one"> |
||||
|
<div class="stat-icon" |
||||
|
style="background:#5b8ed0"><i class="fa fa-minus-circle"/></div> |
||||
|
<div class="stat-content"> |
||||
|
<div class="stat-head">Today Refund Order</div> |
||||
|
<div class="stat_count"><t t-esc="state.today_refund_total"/></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-xs-12 col-sm-12 col-lg-12 col-md-12"> |
||||
|
<div class="row" style="margin:0px;"> |
||||
|
<div class="col-md-6" id="col-graph"> |
||||
|
<div class="card"> |
||||
|
<div class="card-header"> |
||||
|
<div class="card-title"> |
||||
|
<b> |
||||
|
<h3 class="custom-h3">SALE REPORT</h3> |
||||
|
</b> |
||||
|
</div> |
||||
|
<div class="card-tools"> |
||||
|
<select id="pos_sales" |
||||
|
t-on-click="onclick_pos_sales"> |
||||
|
<option style="display:none;"> -- select an option -- </option> |
||||
|
<option value="pos_hourly_sales">Hourly</option> |
||||
|
<option value="pos_monthly_sales">Monthly</option> |
||||
|
<option value="pos_year_sales">Yearly</option> |
||||
|
</select> |
||||
|
</div> |
||||
|
</div> |
||||
|
<h4>SALE DETAILS</h4> |
||||
|
<div class="card-body mt-3" id="in_ex_body_hide"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<p id="myelement1"> </p> |
||||
|
<div class="chart"> |
||||
|
<canvas id="canvas_1" width="200" |
||||
|
height="90"> </canvas> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-4 col-lg-4 top_customer_graph_view"> |
||||
|
<div class="oh-card text-color"> |
||||
|
<div class="oh-card-body pb-0"> |
||||
|
<h4 class="mb-0"> |
||||
|
</h4> |
||||
|
</div> |
||||
|
<canvas class="top_customer" width="100" height="80"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-6 col-lg-6 selling_product_graph_view"> |
||||
|
<div class="oh-card text-color"> |
||||
|
<div class="oh-card-body pb-0"> |
||||
|
<h4 class="mb-0"> |
||||
|
</h4> |
||||
|
</div> |
||||
|
<canvas class="top_selling_product" width="200" |
||||
|
height="120"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-sm-6 col-lg-6 selling_product_graph_view"> |
||||
|
<div class="oh-card text-color"> |
||||
|
<div class="oh-card-body pb-0"> |
||||
|
<h4 class="mb-0"> |
||||
|
</h4> |
||||
|
</div> |
||||
|
<canvas class="top_product_categories" width="200" |
||||
|
height="120"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div class="employee_dashboard_main"> |
||||
|
<div class="row main-section"> |
||||
|
<div class="col-md-4 col-lg-4"> |
||||
|
<div class="hr_notification" style="background: #fff;transition: transform 0.2s ease, box-shadow 0.2s ease;will-change: transform, box-shadow;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62,57,107,0.06); |
||||
|
height: 316px;overflow-y: auto;margin-bottom: 15px;"> |
||||
|
<div class="hr_notification_head" |
||||
|
style="font-size: 17px;text-align: center;padding: 12px 0;color: #fff;font-weight: 300;background: #de6a5e;margin-bottom: 9px;"> |
||||
|
Sale by Salesperson |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-lg-12" style="padding:0;"> |
||||
|
<div class="text-color"> |
||||
|
<div class=""> |
||||
|
<div class="media"> |
||||
|
<div class="media-body"> |
||||
|
<table class="table table-sm"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th rowspan="12">Name   </th> |
||||
|
<th rowspan="12">Orders</th> |
||||
|
<th rowspan="12">Amount</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<t t-foreach="state.top_salesperson" |
||||
|
t-as="salesperson" |
||||
|
t-key="salesperson.id"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="salesperson[0]"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="salesperson[2]"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="salesperson[1]"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div></div></div></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-lg-4"> |
||||
|
<div class="hr_notification" style="background: #fff;transition: transform 0.2s ease, box-shadow 0.2s ease;will-change: transform, box-shadow;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62,57,107,0.06); |
||||
|
height: 316px;overflow-y: auto;margin-bottom: 15px;"> |
||||
|
<div class="hr_notification_head" |
||||
|
style="font-size: 17px;text-align: center;padding: 12px 0;color: #fff;font-weight: 300;background:#de6a5e;;margin-bottom: 9px;"> |
||||
|
Payment Method |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-lg-12" style="padding:0;"> |
||||
|
<div class="text-color"> |
||||
|
<div class=""> |
||||
|
<div class="media"> |
||||
|
<div class="media-body"> |
||||
|
<table class="table table-sm"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th rowspan="12">Payment Method   </th> |
||||
|
<th rowspan="12">Amount</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<t t-foreach="state.payment_details" |
||||
|
t-as="payment_method" |
||||
|
t-key="payment_method.id"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="payment_method[0]"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="payment_method[1]"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div></div></div></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-md-4 col-lg-4"> |
||||
|
<div class="hr_notification" style="background: #fff;transition: transform 0.2s ease, box-shadow 0.2s ease;will-change: transform, box-shadow;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62,57,107,0.06); |
||||
|
height: 316px;overflow-y: auto;margin-bottom: 15px;"> |
||||
|
<div class="hr_notification_head" |
||||
|
style="font-size: 17px;text-align: center;padding: 12px 0;color: #fff;font-weight: 300;background: #de6a5e;margin-bottom: 9px;"> |
||||
|
Session Status |
||||
|
</div> |
||||
|
<div class="col-sm-12 col-lg-12" style="padding:0;"> |
||||
|
<div class="text-color"> |
||||
|
<div class=""> |
||||
|
<div class="media"> |
||||
|
<div class="media-body"> |
||||
|
<table class="table table-sm"> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th rowspan="12">Session   </th> |
||||
|
<th rowspan="12">Status</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<t t-foreach="state.selling_product" |
||||
|
t-as="session" |
||||
|
t-key="session.id"> |
||||
|
<tr> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="session['session']"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
<td> |
||||
|
<h2 class="text-color display-6" |
||||
|
style="font-size: 15px;"> |
||||
|
<t t-esc="session['status']"/> |
||||
|
</h2> |
||||
|
</td> |
||||
|
</tr> |
||||
|
</t> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div></div></div></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</templates> |
@ -0,0 +1,13 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<odoo> |
||||
|
<!-- Action for pos order model --> |
||||
|
<record id="pos_order_action" model="ir.actions.client"> |
||||
|
<field name="name">Dashboard</field> |
||||
|
<field name="tag">pos_order_menu</field> |
||||
|
</record> |
||||
|
<!-- For creating Menu for Dashboard --> |
||||
|
<menuitem name="Dashboard" id="pos_order_menu" parent="point_of_sale.menu_point_rep" |
||||
|
sequence="5" |
||||
|
groups="point_of_sale.group_pos_manager" |
||||
|
action="pos_order_action"/> |
||||
|
</odoo> |