Browse Source

Feb 20 : [ADD] Initial Commit 'product_management_app'

pull/195/merge
RisvanaCybro 1 year ago
parent
commit
39b7227d1f
  1. 47
      product_management_app/README.rst
  2. 21
      product_management_app/__init__.py
  3. 56
      product_management_app/__manifest__.py
  4. 6
      product_management_app/doc/RELEASE_NOTES.md
  5. 21
      product_management_app/models/__init__.py
  6. 145
      product_management_app/models/product_template.py
  7. BIN
      product_management_app/static/description/assets/icons/check.png
  8. BIN
      product_management_app/static/description/assets/icons/chevron.png
  9. BIN
      product_management_app/static/description/assets/icons/cogs.png
  10. BIN
      product_management_app/static/description/assets/icons/consultation.png
  11. BIN
      product_management_app/static/description/assets/icons/ecom-black.png
  12. BIN
      product_management_app/static/description/assets/icons/education-black.png
  13. BIN
      product_management_app/static/description/assets/icons/hotel-black.png
  14. BIN
      product_management_app/static/description/assets/icons/license.png
  15. BIN
      product_management_app/static/description/assets/icons/lifebuoy.png
  16. BIN
      product_management_app/static/description/assets/icons/manufacturing-black.png
  17. BIN
      product_management_app/static/description/assets/icons/pos-black.png
  18. BIN
      product_management_app/static/description/assets/icons/puzzle.png
  19. BIN
      product_management_app/static/description/assets/icons/restaurant-black.png
  20. BIN
      product_management_app/static/description/assets/icons/service-black.png
  21. BIN
      product_management_app/static/description/assets/icons/trading-black.png
  22. BIN
      product_management_app/static/description/assets/icons/training.png
  23. BIN
      product_management_app/static/description/assets/icons/update.png
  24. BIN
      product_management_app/static/description/assets/icons/user.png
  25. BIN
      product_management_app/static/description/assets/icons/wrench.png
  26. BIN
      product_management_app/static/description/assets/misc/categories.png
  27. BIN
      product_management_app/static/description/assets/misc/check-box.png
  28. BIN
      product_management_app/static/description/assets/misc/compass.png
  29. BIN
      product_management_app/static/description/assets/misc/corporate.png
  30. BIN
      product_management_app/static/description/assets/misc/customer-support.png
  31. BIN
      product_management_app/static/description/assets/misc/cybrosys-logo.png
  32. BIN
      product_management_app/static/description/assets/misc/features.png
  33. BIN
      product_management_app/static/description/assets/misc/logo.png
  34. BIN
      product_management_app/static/description/assets/misc/pictures.png
  35. BIN
      product_management_app/static/description/assets/misc/pie-chart.png
  36. BIN
      product_management_app/static/description/assets/misc/right-arrow.png
  37. BIN
      product_management_app/static/description/assets/misc/star.png
  38. BIN
      product_management_app/static/description/assets/misc/support.png
  39. BIN
      product_management_app/static/description/assets/misc/whatsapp.png
  40. BIN
      product_management_app/static/description/assets/modules/1.png
  41. BIN
      product_management_app/static/description/assets/modules/2.png
  42. BIN
      product_management_app/static/description/assets/modules/3.png
  43. BIN
      product_management_app/static/description/assets/modules/4.png
  44. BIN
      product_management_app/static/description/assets/modules/5.gif
  45. BIN
      product_management_app/static/description/assets/modules/6.png
  46. BIN
      product_management_app/static/description/assets/screenshots/dashboard.png
  47. BIN
      product_management_app/static/description/assets/screenshots/hero.gif
  48. BIN
      product_management_app/static/description/assets/screenshots/monthly_analysis.png
  49. BIN
      product_management_app/static/description/assets/screenshots/product_menu.png
  50. BIN
      product_management_app/static/description/assets/screenshots/products_by_loc.png
  51. BIN
      product_management_app/static/description/banner.png
  52. BIN
      product_management_app/static/description/icon.png
  53. 660
      product_management_app/static/description/index.html
  54. 321
      product_management_app/static/src/css/dashboard_views.css
  55. 472
      product_management_app/static/src/js/product_dashboard.js
  56. 252
      product_management_app/static/src/xml/dashboard.xml
  57. 14
      product_management_app/views/product_dashboard.xml
  58. 28
      product_management_app/views/product_template_views.xml

47
product_management_app/README.rst

@ -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
Product Management
==================
This module allows to Post and Register payment of multiple expenses together.
Configuration
=============
* No Additional configuration is needed.
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
Gnu Affero General Public License, Version 3 (AGPL v3).
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Credits
-------
* Developer: (V15) Nikhil M,
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>`__

21
product_management_app/__init__.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Nikhil M(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
###############################################################################
from . import models

56
product_management_app/__manifest__.py

@ -0,0 +1,56 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Nikhil M(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
###############################################################################
{
'name': 'Product Management',
'version': '15.0.1.0.0',
'category': 'Sales',
'summary': 'Product Management Dashboard',
'description': """This module allows you Effortlessly manage your products,
gain insights into top sales, purchases,
and stock movements with our intuitive dashboard.""",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['stock', 'sale_management', 'purchase'],
'data': [
'views/product_template_views.xml',
'views/product_dashboard.xml',
],
'assets': {
'web.assets_backend': [
'product_management_app/static/src/js/product_dashboard.js',
'product_management_app/static/src/xml/dashboard.xml',
'product_management_app/static/src/css/dashboard_views.css',
'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.bundle.js',
],
'web.assets_qweb': [
'product_management_app/static/src/xml/dashboard.xml',
],
},
'images': [
'static/description/banner.png',
],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': False,
}

6
product_management_app/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <product_management_app>
#### 27.12.2023
#### Version 15.0.1.0.0
##### ADD
- Initial Commit for product Management

21
product_management_app/models/__init__.py

@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Nikhil M(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
###############################################################################
from . import product_template

145
product_management_app/models/product_template.py

@ -0,0 +1,145 @@
# -*- coding: utf-8 -*-
###############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Nikhil M(odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details.
#
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
# (AGPL v3) along with this program.
###############################################################################
import calendar
from odoo import api, models
class ProductTemplate(models.Model):
"""Custom Dashboard for Viewing Product Details.
This class extends the base model 'product.template' to create a custom dashboard
for viewing specific product details in a more user-friendly manner."""
_inherit = 'product.template'
@api.model
def get_data(self):
"""Returns data to the tiles of dashboard"""
obj = self.env['product.template']
return {
'product_templates': obj.search_count([]),
'product_variants': self.env['product.product'].search_count([]),
'storable': obj.search_count([('detailed_type', '=', 'product')]),
'consumable': obj.search_count([('detailed_type', '=', 'consu')]),
'service': obj.search_count([('detailed_type', '=', 'service')]),
'category': self.env['product.category'].search_count([]),
'price_list': self.env['product.pricelist'].search_count([]),
'product_attribute': self.env['product.attribute'].search_count([])
}
@api.model
def get_top_sale_data(self):
"""return the top sale"""
query = ('''select DISTINCT(product_template.name) as product_name,
sum(product_uom_qty) as total_quantity from sale_order_line
inner join product_product on
product_product.id=sale_order_line.product_id
inner join product_template on
product_product.product_tmpl_id = product_template.id
where sale_order_line.company_id = '''
+ str(self.env.company.id) + ''' group by product_template.id ORDER BY
total_quantity DESC Limit 10 ''')
self._cr.execute(query)
top_product = self._cr.dictfetchall()
product_names = [item['product_name'] for item in top_product]
quantities = [item['total_quantity'] for item in top_product]
final = [quantities, product_names]
return final
@api.model
def get_top_purchase_data(self):
"""Returns top purchase data"""
query = ('''select DISTINCT(product_template.name) as product_name,sum(product_qty) as total_quantity from
purchase_order_line inner join product_product on product_product.id=purchase_order_line.product_id inner join
product_template on product_product.product_tmpl_id = product_template.id where purchase_order_line.company_id = '''
+ str(self.env.company.id) + ''' group by product_template.id ORDER BY total_quantity DESC Limit 10 ''')
self._cr.execute(query)
top_product = self._cr.dictfetchall()
product_names = [item['product_name'] for item in top_product]
quantities = [item['total_quantity'] for item in top_product]
final = [quantities, product_names]
return final
@api.model
def get_product_location_analysis(self):
"""Returns the location, location id to the selection"""
categ_qry = """select id, complete_name from stock_location"""
self._cr.execute(categ_qry)
location = self._cr.dictfetchall()
location_name = [item['complete_name'] for item in location]
location_id = [item['id'] for item in location]
return {'location_id': location_id, 'location_name': location_name}
@api.model
def get_products(self):
"""Returns the product, product name to the selection"""
new_data = self.env['product.template'].search_read(fields=['id', 'name'])
product_names = [item['name'] for item in new_data]
product_ids = [item['id'] for item in new_data]
return {'product_id': product_ids, 'product_name': product_names}
@api.model
def get_prod_details(self, data):
"""Returns the monthly analysis of product movement"""
query = ("""select product_template.name as name,
sum(stock_move_line.qty_done),EXTRACT(month from
stock_move_line.date) from stock_move_line inner join
product_product on stock_move_line.product_id =
product_product.id inner join product_template on
product_product.product_tmpl_id = product_template.id
where stock_move_line.company_id = %s and
stock_move_line.product_id = %s group by
product_template.name,stock_move_line.date"""
% (self.env.company.id, data))
self._cr.execute(query)
product_move = self._cr.dictfetchall()
month = []
for rec in product_move:
month.append(int(rec['date_part']))
rec.update({
'count': rec['sum'],
'dates': calendar.month_name[int(rec['date_part'])],
'month': int(rec['date_part'])
})
for rec in range(1, 13):
if rec not in month:
product_move.append({'count': 0,'dates': calendar.month_name[rec],'month': rec})
cr = sorted(product_move, key=lambda i: i['month'])
count = [item['count'] for item in cr]
months = [item['dates'] for item in cr]
return {'count': count,'dates': months}
@api.model
def get_product_qty_by_loc(self, args):
"""Returns product qty based on the location selected"""
query = ('''select sl.complete_name, pt.name as name, sq.quantity from
stock_quant sq inner join stock_location sl on sq.location_id =
sl.id inner join product_product pp on sq.product_id = pp.id
inner join product_template pt on pp.product_tmpl_id = pt.id
where sq.company_id = '%s' and sl.id = '%s' group by
sl.complete_name,pt.name, sq.quantity '''
% (self.env.company.id, int(args)))
self._cr.execute(query)
product_qty = self._cr.dictfetchall()
product_names = [item['name'] for item in product_qty]
quantities = [item['quantity'] for item in product_qty]
return {
'products': product_names,
'quantity': quantities,
}

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

BIN
product_management_app/static/description/assets/screenshots/dashboard.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
product_management_app/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

BIN
product_management_app/static/description/assets/screenshots/monthly_analysis.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
product_management_app/static/description/assets/screenshots/product_menu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
product_management_app/static/description/assets/screenshots/products_by_loc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
product_management_app/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
product_management_app/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

660
product_management_app/static/description/index.html

@ -0,0 +1,660 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #547BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Product Management</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This module allows you Effortlessly manage your products, gain insights into top sales, purchases,
and stock movements with our intuitive dashboard.</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
This Module Allows You Effortlessly Manage Your Products, Gain Insights
Into Top Sales, Purchases,
And Stock Movements With Our Intuitive Dashboard.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product As Separate Module</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage Product, Product Variants, Price List, Product Stock, its Movements</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Dashboard To Show The Product's Contents In General</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Graphs To Show Top Sold/Purchased Products</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Graphs To Show Product Movements In Each Month</span>
</div>
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Graphs To Show Product Based On The Location</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Product Module Overview
</h3>
<img src="assets/screenshots/product_menu.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Product's Dashboard
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Dashboard for quick overview of the products</p>
<img src="assets/screenshots/dashboard.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Product's monthly analysis
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Product moved are plot against each month</p>
<img src="assets/screenshots/monthly_analysis.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Products by location
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Based on the selected location the product, it's quantity can be
viewed in the bar graph</p>
<img src="assets/screenshots/products_by_loc.png"
class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/dynamic_accounts_report/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/custom_gantt_view/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/project_custom_gantt/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active"
style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/account_reports_xlsx/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/base_accounting_kit/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/5.gif">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16"
style="float:left">
<a href="https://apps.odoo.com/apps/modules/15.0/hr_payroll_community/"
target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev"
style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i
class="fa fa-chevron-left"
style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1"
data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i
class="fa fa-chevron-right"
style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

321
product_management_app/static/src/css/dashboard_views.css

@ -0,0 +1,321 @@
.oh_dashboards{
padding-top :15px;
background-color: #f8faff !important;
}
.oh-card h4 {
font-size: 1.1rem;
}
/* Widget One
---------------------------*/
.stat-content {
display: inline-block;
width: 66%;
}
.stat-icon{
display: inline-block;
}
.stat-widget-one .stat-icon {
vertical-align: top;
margin: auto;
width: 100%;
color: #01c490;
}
.stat-widget-one .stat-icon i {
font-size: 30px;
font-weight: 900;
display: inline-block;
color: #01c490;}
.stat-widget-one .stat-text {
font-size: 14px;
color: #868e96;
font-weight: bold;
}
.stat-widget-one .stat-digit {
font-size: 24px;
color: #02448b; }
.stat-count {
font-size: 20px;
text-align: center;
color: #00438b;}
.stat-title {
font-size: 17px;
text-align: center;
color: #00438b; }
.mb-0{
position: relative;
}
.mb-0 .dash-title {
font-size: 20px;
color: rgba(255, 255, 255, 0.81);
}
.oh-card {
padding-top: 0px;
padding: 0px;
margin-bottom: 1.5rem;
border-radius: 0px;
box-shadow: none;
background: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
will-change: transform, box-shadow;
}
.oh-card:hover {
transform: translateY(-2px) translateZ(0) !important;
box-shadow: 0 10px 10px 0 rgba(62, 57, 107, 0.12), 0 0 0 transparent !important;
}
.oh-data {
margin-top: 4.5%;
}
.oh-data .stat-icon {
width: 30%;
height: 85px;
text-align: center;
background: #ff8762;
color: #fff;
width: 32%;
padding-top: 2%;
font-size: xxx-large;
}
.oh-data .oh-card {
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);
}
.stat-widget-one .stat-text {
font-size: 14px;
color: #ff8762;
margin-top: 2.3rem;
margin-left: 1rem;
}
.stat-widget-one .stat-digit {
font-size: 26px;
color:#993232;
margin-left: 1rem;
margin-top: -1px;
font-family: initial
}
.stat-widget-one .stat-icon i {
font-size: 25px;
font-weight: 900;
display: inline-block;
color: #fff;
}
.stat-widget-one {
background-color: white;
text-align: left;
}
.stat-widget-one {
width: 100%;
}
.oh-data .stat-icon {
width: 30%;
height: 85px;
text-align: center;
padding-top: 2%;
}
h4 .stat-count {
font-size: 17px;
text-align: center;
color: #000 !important;
margin-top: 0px;
width: 100%;
float: left;
margin: 0;
}
.stat-head {
text-align: left !important;
font-weight: 300;
font-size: 15px;
margin-bottom: 25px;
margin-left: 24px;
width: 100%;
}
.oh-card-body {
display: flex;
justify-content: space-between;
align-items: center;
}
.o_action_manager{
overflow-y: scroll !important;
max-width:100%;
}
.stat_count{
margin-top: -89px;
margin-left: 35px;
font-size: 33px;
}
.stat-head {
text-align: left !important;
font-weight: 300;
font-size: 18px;
margin-bottom: 25px;
margin-left: 24px;
width: 100%;
margin-top: 57px;
color: black;
}
.top_chart{
height: fit-content;
}
.row.main-section {
margin-right: 0px; !important;
}
.chart-container {
border-radius: 0.3rem;
padding: 1rem;
margin: 1rem auto;
}
.chart-container.card-shadow {
height: 100%;
}
.half_chart.chart-container.card-shadow {
height: 49%;
}
#container {
height: 400px;
}
/*table*/
.graph_details_table{
position: absolute;
top: 45px;
right: 15px;
background-color: white;
border-collapse: collapse;
border: 1px solid #ddd;
}
.graph_details_table th{
background-color:#67b7dc;
color: white;
width: 250px;
height: 30px;
}
.graph_details_table td{
border: 1px solid #ddd;
height: 20px;
}
.graph_details_table tr:nth-child(even){background-color: #f2f2f2;}
.graph_details_table tr:hover {background-color: #ddd;}
.chart-container h2 {
font-weight: 700;
font-size: 1.690rem;
}
.hr_notification {
background: #f6f7fa;
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;
}
.hr_notification .media {
border-bottom: 1px solid #e6e6e6;
padding-bottom: 6px;
margin-bottom: 10px;
}
hr_notification .text-color.display-6 {
margin: 0px 0 3px;
color: #2d2d2d;
}
.hr_notification p {
margin: 0 0 1px;
color: #666;
font-size: 10px;
}
.chart_head {
font-size: 17px;
text-align: center;
padding: 12px 0;
color: #fff;
font-weight: 300;
background: #5ebade;
margin-bottom: 25px;
}
.hr_notification_head {
font-size: 17px;
text-align: center;
padding: 12px 0;
color: #fff;
font-weight: 300;
background: #5ebade;
margin-bottom: 9px;
}
@media (max-width: 767.98px) {
.oh-card{
width: 100% !important;
}
.dashboard_main_section .form-control{
width: 85% !important;
margin: 15px auto;
}
.sale_details{
position: relative;
top: 0px !important;
right: 0px !important;
}
.selling_product_graph_view{
margin-top: 5rem;
}
.hr_notification{
min-width: 90% !important;
}
}
.hr_notification{
min-width: 425.683px;
min-height: 316px;
max-width: 100%;
}
.media-body{
background: #466b8d;
float: left;
margin: 0;
width: 100%
}

472
product_management_app/static/src/js/product_dashboard.js

@ -0,0 +1,472 @@
odoo.define("product_management_app.ProductDashboard", function (require) {
"use strict";
var AbstractAction = require('web.AbstractAction');
var core = require('web.core');
var QWeb = core.qweb;
var web_client = require('web.web_client');
var _t = core._t;
var rpc = require('web.rpc');
var self = this;
var DashBoard = AbstractAction.extend({
contentTemplate: 'ProductDashboard',
events: {
'change #prod_selection': 'onchange_prod_selection',
'change #product_location_selection': 'onchange_location_selection',
},
init: function(parent, context) {
this._super(parent, context);
this.dashboard_templates = ['ProductMainSection', 'ProductGraphs'];
},
start: function() {
var self = this;
this.set("title", 'Dashboard');
return this._super().then(function() {
self.render_dashboards();
self.render_graphs();
});
},
willStart: function() {
var self = this;
return this._super()
},
render_dashboards: function() {
//function to render main dashboard templates
var self = this;
this.fetch_data()
var templates = ['ProductMainSection', 'ProductGraphs'];
_.each(templates, function(template) {
self.$('.o_hr_dashboard').append(QWeb.render(template, {widget: self}))
});
},
fetch_data: function() {
//function to fetch data to the tiles
var self = this
var def1 = this._rpc({
model: 'product.template',
method: "get_data",
})
.then(function (result) {
self.$("#product_templates").append('<span>' + result.product_templates + '</span>');
self.$('#variants_count').append('<span>' + result.product_variants + '</span>');
self.$('#products_storable').append('<span>' + result.storable + '</span>');
self.$('#product_consumable').append('<span>' + result.consumable + '</span>');
self.$('#product_service').append('<span>' + result.service + '</span>');
self.$('#product_categ').append('<span>' + result.category + '</span>');
self.$('#product_pricelist').append('<span>' + result.price_list + '</span>');
self.$('#product_attribute').append('<span>' + result.product_attribute + '</span>');
});
},
on_reverse_breadcrumb: function() {
// This function is called when the breadcrumb navigation is reversed.
var self = this;
web_client.do_push_state({});
this.update_cp();
this.fetch_data().then(function() {
self.$('.o_hr_dashboard').reload();
self.render_dashboards();
});
},
render_graphs: function(){
//function to render graphs to the dashboard
var self = this;
self.render_top_sold_product();
self.render_top_purchase_product();
self.render_monthly_chart();
self.render_product_categ_analysis();
},
render_top_sold_product: function() {
//function to render data for top sold canvas
var self = this
var ctx = self.$(".top_sale_chart");
rpc.query({
model: "product.template",
method: 'get_top_sale_data',
}).then(function (arrays) {
var data = {
labels : arrays[1],
datasets: [{
label: "",
data: arrays[0],
backgroundColor: [
"#1E90FF",
"#95B9C7",
"#66CDAA",
"#FF7F50",
"#F67280",
"#810541",
"#7D0552",
"#D58A94",
"#B041FF"
],
borderColor: [
"#1E90FF",
"#95B9C7",
"#66CDAA",
"#FF7F50",
"#F67280",
"#810541",
"#7D0552",
"#D58A94",
"#B041FF"
],
borderWidth: 1
},]
};
//options
var options = {
responsive: true,
title: false,
legend: {
display: true,
position: "right",
labels: {
fontColor: "#333",
fontSize: 16
}
},
scales: {
yAxes: [{
gridLines: {
color: "rgba(0, 0, 0, 0)",
display: false,
},
ticks: {
min: 0,
display: false,
}
}]
}
};
//create Chart class object
var chart = new Chart(ctx, {
type: "pie",
data: data,
options: options
});
});
},
render_top_purchase_product: function() {
//function to render data for top purchase canvas
var self = this
var ctx = self.$(".top_purchase_chart");
rpc.query({
model: "product.template",
method: 'get_top_purchase_data',
}).then(function (arrays) {
var data = {
labels : arrays[1],
datasets: [{
label: "",
data: arrays[0],
backgroundColor: [
"#003f5c",
"#2f4b7c",
"#f95d6a",
"#665191",
"#d45087",
"#ff7c43",
"#ffa600",
"#a05195",
"#6d5c16"
],
borderColor: [
"#003f5c",
"#2f4b7c",
"#f95d6a",
"#665191",
"#d45087",
"#ff7c43",
"#ffa600",
"#a05195",
"#6d5c16"
],
borderWidth: 1
},]
};
//options
var options = {
responsive: true,
title: false,
legend: {
display: true,
position: "right",
labels: {
fontColor: "#333",
fontSize: 16
}
},
scales: {
yAxes: [{
gridLines: {
color: "rgba(0, 0, 0, 0)",
display: false,
},
ticks: {
min: 0,
display: false,
}
}]
}
};
//create Chart class object
var chart = new Chart(ctx, {
type: "doughnut",
data: data,
options: options
});
});
},
render_product_categ_analysis: function() {
//function to render data for product category analysis
var self = this;
rpc.query({
model: "product.template",
method: 'get_product_location_analysis',
}).then(function (result) {
var ctx = self.$("#product_categ_purchases");
var location_name = result.location_name
var location_id = result.location_id
var j = 0;
var k = 0;
Object.entries(result.location_name).forEach(([key, value]) => {
if(k == 0){
self.$('#product_location_selection').append('<option id="'+key+'" value="'+location_id[k]+'" selected="selected">'+value+'</option>')
k++;
}else{
self.$('#product_location_selection').append('<option id="'+key+'" value="'+location_id[k]+'">'+value+'</option>')
k++;
}
});
self.$('#product_categ_table').hide();
var option =self.$("#product_location_selection" ).val();
rpc.query({
model: "product.template",
method: "get_product_qty_by_loc",
args: [option]
}).then(function(result) {
var product = result.products
var product = result.quantity
var ctx = self.$("#product_qty");
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: product,//x axis
datasets: [{
label: 'Count', // Name the series
data: product, // Specify the data values array
backgroundColor: '#ac3973',
borderColor: '#ac3973',
barPercentage: 0.5,
barThickness: 6,
maxBarThickness: 8,
minBarLength: 0,
borderWidth: 1, // Specify bar border width
type: 'bar', // Set this data to a line chart
fill: false
}]
},
options: {
scales: {
y: {
beginAtZero: true
},
},
responsive: true, // Instruct chart js to respond nicely.
maintainAspectRatio: false, // Add to prevent default behaviour of full-width/height
}
});
});
});
},
render_monthly_chart: function(e) {
//function to render data monthly wise.
var self = this;
rpc.query({
model: "product.template",
method: 'get_products',
}).then(function (result) {
var ctx = self.$("#purchase_product");
var product_id = result.product_id
var product_name = result.product_name
var j = 0;
var k = 0;
Object.entries(result.product_name).forEach(([key, value]) => {
if(k == 0){
self.$('#prod_selection').append('<option id="'+key+'" value="'+product_id[k]+'" selected="selected">'+value+'</option>')
k++;
}else{
self.$('#prod_selection').append('<option id="'+key+'" value="'+product_id[k]+'">'+value+'</option>')
k++;
}
});
var option = self.$("#prod_selection" ).val();
rpc.query({
model: "product.template",
method: 'get_prod_details',
args: [option]
}).then(function (result) {
self.$("#purchase_product").empty();
var ctx = self.$("#purchase_product");
var name = result.name
var count = result.count;
var sum = result.sum;
var j = 0;
if (result) {
self.$('#purchase_product').append('
<div class="graph_canvas" style="margin-top: 30px;">
<canvas id="partner_graph" height="500px" width="150px"/>
</div>')
var ctx = self.$("#partner_graph");
var name = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
var j = 0;
if (window.myChart_year != undefined)
window.myChart_year.destroy();
window.myChart_year = new Chart(ctx, {
type: 'line',
data: {
labels: name,//x axis
datasets: [
{
label: 'Product Moves', // Name the series
data: count, // Specify the data values array
backgroundColor: '#0000ff',
borderColor: '#0000ff',
barPercentage: 0.5,
barThickness: 6,
maxBarThickness: 8,
minBarLength: 0,
borderWidth: 1, // Specify bar border width
type: 'line', // Set this data to a line chart
fill: false
},]
},
options: {
scales: {
y: {
beginAtZero: true
},
},
responsive: true, // Instruct chart js to respond nicely.
maintainAspectRatio: false, // Add to prevent default behaviour of full-width/height
}
});
}
});
});
},
onchange_prod_selection: function() {
//function to render data while changing products
var self = this;
var option = self.$("#prod_selection" ).val();
rpc.query({
model: "product.template",
method: 'get_prod_details',
args: [option]
}).then(function (result) {
self.$("#purchase_product").empty();
var ctx = self.$("#purchase_product");
var name = result.name
var count = result.count;
var sum = result.sum;
var j = 0;
if (result) {
self.$('#purchase_product').append('
<div class="graph_canvas" style="margin-top: 30px;">
<canvas id="partner_graph" height="500px" width="150px"/>
</div>')
var ctx = self.$("#partner_graph");
var name = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
var j = 0;
if (window.myChart_year != undefined)
window.myChart_year.destroy();
window.myChart_year = new Chart(ctx, {
type: 'line',
data: {
labels: name,//x axis
datasets: [
{
label: 'Purchase Order Total', // Name the series
data: count, // Specify the data values array
backgroundColor: '#0000ff',
borderColor: '#0000ff',
barPercentage: 0.5,
barThickness: 6,
maxBarThickness: 8,
minBarLength: 0,
borderWidth: 1, // Specify bar border width
type: 'line', // Set this data to a line chart
fill: false
},]
},
options: {
scales: {
y: {
beginAtZero: true
},
},
responsive: true, // Instruct chart js to respond nicely.
maintainAspectRatio: false, // Add to prevent default behaviour of full-width/height
}
});
}
});
},
onchange_location_selection: function() {
//function to render stock data of product while changing location
var self = this;
var option = self.$( "#product_location_selection" ).val();
rpc.query({
model: "product.template",
method: "get_product_qty_by_loc",
args: [option]
}).then(function(result) {
var product = result.products
var quantity = result.quantity
var ctx = self.$("#product_qty");
var myChart = new Chart(ctx, {
type: 'bar',
data: {
labels: product,//x axis
datasets: [{
label: 'Count', // Name the series
data: quantity, // Specify the data values array
backgroundColor: '#ac3973',
borderColor: '#ac3973',
barPercentage: 0.5,
barThickness: 6,
maxBarThickness: 8,
minBarLength: 0,
borderWidth: 1, // Specify bar border width
type: 'bar', // Set this data to a line chart
fill: false
}]
},
options: {
scales: {
y: {
beginAtZero: true
},
},
responsive: true, // Instruct chart js to respond nicely.
maintainAspectRatio: false, // Add to prevent default behaviour of full-width/height
}
});
});
},
});
core.action_registry.add('product_dashboard_tag', DashBoard);
return DashBoard;
});

252
product_management_app/static/src/xml/dashboard.xml

@ -0,0 +1,252 @@
<?xml version="1.0" encoding="utf-8"?>
<template>
<t t-name="ProductDashboard">
<div class="oh_dashboards">
<div class="container-fluid my-5 o_hr_dashboard"/>
</div>
</t>
<t t-name="ProductMainSection">
<section class="dashboard_main" id="main_section">
<div class="col-sm-12 mb-4">
<div class="row">
<div class="col-12 col-sm-12 col-md-8">
<h2 class="section-header">Product Dashboard</h2>
</div>
<!-- Tiles -->
<div class="col-sm-12 mb-3">
<div class="row">
<div class="col-md-3 col-sm-5 all_products oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#ff4d94">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Products</div>
<div class="stat_count">
<span id="templates">
<div id="product_templates"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 product_variants oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#99e6ff">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Product Variants</div>
<div class="stat_count">
<span id="count">
<div id="variants_count"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 storable_products oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#aaff80">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Storable Products</div>
<div class="stat_count">
<span id="storable">
<div id="products_storable"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 consu_products oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#bf80ff">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head" style="margin-left: 10px;">Consumable Products</div>
<div class="stat_count">
<span id="consumable">
<div id="product_consumable"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 service_prod oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#ff4d94">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Service Products</div>
<div class="stat_count">
<span id="service">
<div id="product_service"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 categ_prod oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#99e6ff">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Product Category</div>
<div class="stat_count">
<span id="categ">
<div id="product_categ"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 categ_prod oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#aaff80">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Price Lists</div>
<div class="stat_count">
<span id="categ">
<div id="product_pricelist"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3 col-sm-5 categ_prod oh-data">
<div class="oh-card" style="width: 288px;">
<div class="oh-card-body">
<div class="stat-widget-one">
<div class="stat-icon" style="background:#bf80ff">
<i class="fa fa-star"/>
</div>
<div class="stat-content">
<div class="stat-head">Product Attribute</div>
<div class="stat_count">
<span id="categ">
<div id="product_attribute"/>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</t>
<t t-name="ProductGraphs">
<div class="col-xs-12 col-sm-12 col-lg-12 col-md-12">
<div class="row main-section">
<div class="col-sm-6 col-lg-6 top_chart">
<div class="chart_head"
style="font-size: 17px;text-align: center;padding: 12px 0;color: #fff;font-weight: 700;background: #0b3c38b0;margin-bottom: 4rem;">
Top Sale Charts
</div>
<div class="top_chart_pie_div half_chart chart-container card-shadow">
<div class="graph_canvas">
<canvas class="top_sale_chart" width="200" height="120"/>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-6 top_chart">
<div class="chart_head"
style="font-size: 17px;text-align: center;padding: 12px 0;color: #fff;font-weight: 700;background: #3e6c1eb0;">
Top Purchase Charts
</div>
<div class="top_chart_pie_div half_chart chart-container card-shadow">
<div class="graph_canvas">
<canvas class="top_purchase_chart" width="200" height="120"/>
</div>
</div>
</div>
</div>
</div>
<br/>
<div class="col-xs-12 col-sm-12 col-lg-12 col-md-12">
<div class="row main-section">
<div class="col-sm-6 col-lg-6">
<div class="purchase_prod_categ chart-container card-shadow">
<div class="chart_head"
style="font-size: 17px;text-align: left;padding: 12px 0;color: #fff;font-weight: 700;background: #669731d4;text-align: center;">
Product Moves Monthly Analysis
</div>
<div class="form-group col-4" style="padding: 12px 0;" id="vendor_select">
<select id="prod_selection" class="btn btn-primary">
</select>
</div>
<div style="height: 20px; max-height: 20px;"
id="purchase_product">
</div>
</div>
</div>
<div class="col-sm-6 col-lg-6">
<div class="purchase_prod_categ chart-container card-shadow" id="tiles">
<div class="chart_head"
style="font-size: 17px;text-align: left;padding: 12px 0;color: #fff;font-weight: 700;background: #137660c2;text-align: center;">
Product By Location
</div>
<div style="height: 20px; max-height: 20px; margin-left: -16px; margin-top: 50px;"
class="d-flex justify-content-between align-items-center">
<div class="form-group col-4" id="product_categ_select">
<select id="product_location_selection" class="btn btn-primary">
</select>
</div>
</div>
<div class="graph_canvas" style="margin-top: 50px;">
<canvas id="product_qty" height="500px" width="150px"/>
</div>
</div>
</div>
</div>
</div>
<br/>
</t>
</template>

14
product_management_app/views/product_dashboard.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- This XML code defines a record action for the product dashboard.-->
<record id="product_template_dashboard_action" model="ir.actions.client">
<field name="name">Dashboard</field>
<field name="tag">product_dashboard_tag</field>
</record>
<!-- This XML code defines a menu item for a product dashboard. -->
<menuitem id="product_template_menu_dashboard"
name="Dashboard"
parent="product_management_app.product_template_menu"
action="product_template_dashboard_action"
sequence="-10"/>
</odoo>

28
product_management_app/views/product_template_views.xml

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Menu Item: Products -->
<menuitem id="product_template_menu" name="Products" sequence="10" web_icon="product_management_app,static/description/icon.png"/>
<!-- Submenu Item: Products Templates -->
<menuitem id="product_template_menu_product_templates" name="Products" parent="product_template_menu"
action="product.product_template_action"/>
<!-- Submenu Item: Product Variants -->
<menuitem id="product_template_menu_product_variants" name="Products Variants" parent="product_template_menu"
action="product.product_normal_action" groups="product.group_product_variant" sequence="20"/>
<!-- Submenu Item: Pricelists -->
<menuitem id="product_template_menu_pricelists" name="Pricelists" parent="product_template_menu"
action="product.product_pricelist_action2" groups="product.group_product_pricelist" sequence="30"/>
<!-- Menu Item: Stock -->
<menuitem id="stock_move_menu" name="Stock" parent="product_template_menu" sequence="230"/>
<!-- Submenu Item: Stock Moves -->
<menuitem action="stock.stock_move_action" id="stock_move_menu_stock" parent="stock_move_menu" groups="base.group_no_one"/>
<!-- Submenu Item: Product Lines -->
<menuitem action="stock.stock_move_line_action"
id="stock_move_menu_product_lines"
parent="stock_move_menu" sequence="200"/>
</odoo>
Loading…
Cancel
Save