@ -0,0 +1,52 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
|||
:alt: License: AGPL-3 |
|||
|
|||
Inventory Turnover Analysis Report |
|||
================================== |
|||
This will helps you to generate inventory turnover analysis report in pdf, xlsx, tree view and graph view. |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (AGPL v3). |
|||
(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) |
|||
|
|||
Installation |
|||
============ |
|||
- www.odoo.com/documentation/16.0/administration/install.html |
|||
- Install our custom addon |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
Credits |
|||
------- |
|||
* Developers: |
|||
Version 16: Syamili K @ cybrosys, odoo@cybrosys.com |
|||
Tech |
|||
==== |
|||
* [Python] - Models |
|||
* [XML] - Odoo views |
|||
|
|||
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,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import conrollers |
|||
from . import models |
|||
from . import wizard |
@ -0,0 +1,52 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': 'Inventory Turnover Analysis Report', |
|||
'version': '16.0.1.0.0', |
|||
'summary': """A module for generate inventory turnover analysis |
|||
report.""", |
|||
'description': """This will helps you to generate inventory turnover |
|||
analysis report in pdf, xlsx, tree view and graph view.""", |
|||
'category': "Warehouse", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': "https://www.cybrosys.com", |
|||
'depends': ['base', 'stock', 'sale', 'purchase'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'views/fetch_data_views.xml', |
|||
'views/turnover_graph_analysis_views.xml', |
|||
'wizard/turnover_report_views.xml', |
|||
'report/turnover_report_templates.xml', |
|||
], |
|||
'assets': { |
|||
'web.assets_backend': [ |
|||
'inventory_turnover_report_analysis/static/src/js/action_manager.js', |
|||
], |
|||
}, |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import inventory_turnover_report_analysis |
@ -0,0 +1,57 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import json |
|||
from odoo import http |
|||
from odoo.http import content_disposition, request |
|||
from odoo.tools import html_escape |
|||
|
|||
|
|||
class XLSXReportController(http.Controller): |
|||
"""From js file it call the url '/xlsx_reports'. """ |
|||
@http.route('/xlsx_reports', type='http', auth='user', methods=['POST'], |
|||
csrf=False) |
|||
def get_report_xlsx(self, model, options, output_format, report_name, **kw): |
|||
"""Controller function for generate the xlsx report.""" |
|||
uid = request.session.uid |
|||
report_obj = request.env[model].with_user(uid) |
|||
options = json.loads(options) |
|||
token = 'dummy-because-api-expects-one' |
|||
try: |
|||
if output_format == 'xlsx': |
|||
response = request.make_response( |
|||
None, |
|||
headers=[ |
|||
('Content-Type', 'application/vnd.ms-excel'), |
|||
('Content-Disposition', |
|||
content_disposition(report_name + '.xlsx')) |
|||
] |
|||
) |
|||
report_obj.get_xlsx_report(options, response) |
|||
response.set_cookie('fileToken', token) |
|||
return response |
|||
except Exception as e: |
|||
error = { |
|||
'code': 200, |
|||
'message': 'Odoo Server Error', |
|||
'data': http.serialize_exception(e) |
|||
} |
|||
return request.make_response(html_escape(json.dumps(error))) |
@ -0,0 +1,6 @@ |
|||
## Module <inventory_turnover_report_analysis> |
|||
|
|||
#### 20.07.2023 |
|||
#### Version 16.0.1.0.0 |
|||
##### ADD |
|||
- Initial commit for Inventory Turnover Analysis Report |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import fetch_data |
|||
from . import turnover_graph_analysis |
@ -0,0 +1,56 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class FetchData(models.Model): |
|||
"""Create new model for to see the records in tree view""" |
|||
_name = "fetch.data" |
|||
_description = "Fetch Data" |
|||
|
|||
company_id = fields.Many2one('res.company', string="Company", |
|||
help="These are the selected companies from " |
|||
"the wizard.") |
|||
warehouse_id = fields.Many2one('stock.warehouse', string="Warehouse", |
|||
help="These are the selected warehouses " |
|||
"from the wizard") |
|||
product_id = fields.Many2one('product.product', string="Product", |
|||
help="Selected all products are listed below.") |
|||
category_id = fields.Many2one('product.category', string="Product category", |
|||
help="Product category of current product") |
|||
opening_stock = fields.Float(string="Opening Stock", |
|||
help="Opening stock: Value of stock at " |
|||
"the beginning of an accounting period") |
|||
closing_stock = fields.Float(string="Closing Stock", |
|||
help="Closing Stock: Value of stock at the " |
|||
"end of an accounting period.") |
|||
average_stock = fields.Float(string="Average Stock", |
|||
help="Average stock: Average of opening stock " |
|||
"and closing stock") |
|||
sale_count = fields.Float(string="Sales Count", |
|||
help="Sales count: Total number of product sale") |
|||
purchase_count = fields.Float(string="Purchase Count", |
|||
help="Purchase count: Total number of " |
|||
"product purchased") |
|||
turnover_ratio = fields.Float(string="Turnover Ratio", |
|||
help="Turnover ratio: It is calculated as " |
|||
"'cost of goods sold/average stock'") |
@ -0,0 +1,56 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class TurnoverGraphAnalysis(models.Model): |
|||
"""Create new model for to see the records in graph view""" |
|||
_name = "turnover.graph.analysis" |
|||
_description = "Turnover Graph Analysis" |
|||
|
|||
company_id = fields.Many2one('res.company', string="Company", |
|||
help="These are the selected companies from " |
|||
"the wizard.") |
|||
warehouse_id = fields.Many2one('stock.warehouse', string="Warehouse", |
|||
help="These are the selected warehouses " |
|||
"from the wizard") |
|||
product_id = fields.Many2one('product.product', string="Product", |
|||
help="Selected all products are listed below.") |
|||
category_id = fields.Many2one('product.category', string="Product category", |
|||
help="Product category of current product") |
|||
opening_stock = fields.Float(string="Opening Stock", |
|||
help="Opening stock: Value of stock at " |
|||
"the beginning of an accounting period") |
|||
closing_stock = fields.Float(string="Closing Stock", |
|||
help="Closing Stock: Value of stock at the " |
|||
"end of an accounting period.") |
|||
average_stock = fields.Float(string="Average Stock", |
|||
help="Average stock: Average of opening stock " |
|||
"and closing stock") |
|||
sale_count = fields.Float(string="Sales Count", |
|||
help="Sales count: Total number of product sale") |
|||
purchase_count = fields.Float(string="Purchase Count", |
|||
help="Purchase count: Total number of " |
|||
"product purchased") |
|||
turnover_ratio = fields.Float(string="Turnover Ratio", |
|||
help="Turnover ratio: It is calculated as " |
|||
"'cost of goods sold/average stock'") |
@ -0,0 +1,66 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- It's the pdf template for showing the turnover report--> |
|||
<record id="inventory_turnover_report" model="ir.actions.report"> |
|||
<field name="name">Inventory Turnover Analysis Report</field> |
|||
<field name="model">turnover.report</field> |
|||
<field name="report_type">qweb-pdf</field> |
|||
<field name="report_name">inventory_turnover_report_analysis.inventory_pdf_turnover_report</field> |
|||
<field name="report_file">inventory_turnover_report_analysis.inventory_pdf_turnover_report</field> |
|||
<field name="binding_model_id" ref="model_turnover_report"/> |
|||
<field name="binding_type">report</field> |
|||
</record> |
|||
<template id="inventory_pdf_turnover_report"> |
|||
<t t-call="web.html_container"> |
|||
<t t-call="web.external_layout"> |
|||
<div class="page"> |
|||
<center> |
|||
<h2>Inventory Turnover Analysis Report</h2> |
|||
</center> |
|||
</div><br/> |
|||
<table class="table"> |
|||
<tr> |
|||
<td> |
|||
<t t-if="start_date"> |
|||
<b>Start date:</b> |
|||
<t t-esc="start_date"/> |
|||
</t> |
|||
</td> |
|||
<td> |
|||
<t t-if="end_date"> |
|||
<b>End date:</b> |
|||
<t t-esc="end_date"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<table class="table"> |
|||
<thead> |
|||
<tr style="text-align: center;"> |
|||
<th style="text-align: left;width:10%">Product</th> |
|||
<th style="width:5%">Opening Stock</th> |
|||
<th style="width:5%">Closing Stock</th> |
|||
<th style="width:5%">Average Stock</th> |
|||
<th style="width:5%">Sales Count</th> |
|||
<th style="width:5%">Purchase Count</th> |
|||
<th style="width:5%">Turnover Ratio</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="stock_report" t-as="i"> |
|||
<tr style="text-align: center;"> |
|||
<td style="text-align: left;" t-esc="i['product']"/> |
|||
<td t-esc="i['opening_stock']"/> |
|||
<td t-esc="i['closing_stock']"/> |
|||
<td t-esc="i['average_stock']"/> |
|||
<td t-esc="i['sale_count']"/> |
|||
<td t-esc="i['purchase_count']"/> |
|||
<td t-esc="i['turnover_ratio']"/> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
</odoo> |
|
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 81 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 272 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 73 KiB |
After Width: | Height: | Size: 96 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 116 KiB |
After Width: | Height: | Size: 113 KiB |
After Width: | Height: | Size: 128 KiB |
After Width: | Height: | Size: 123 KiB |
After Width: | Height: | Size: 171 KiB |
After Width: | Height: | Size: 105 KiB |
After Width: | Height: | Size: 17 KiB |
@ -0,0 +1,600 @@ |
|||
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> |
|||
<!-- TITLE BAR --> |
|||
<div |
|||
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> |
|||
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" style="width: 42px; height: 42px;" /> |
|||
<div> |
|||
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
|||
class="mr-2"> |
|||
<i class="fa fa-check mr-1"></i>Community |
|||
</div> |
|||
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
|||
class="mr-2"> |
|||
<i class="fa fa-check mr-1"></i>Enterprise |
|||
</div> |
|||
<div style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
|||
class="mr-2"> |
|||
<i class="fa fa-check mr-1"></i>Odoo.sh |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- END OF TITLE BAR --> |
|||
|
|||
<!-- APP HERO --> |
|||
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">Inventory Turnover Analysis Report</h1> |
|||
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">This will help you to generate inventory turnover analysis report in pdf, xlsx, tree view and graph view. </p> |
|||
<!-- END OF APP HERO --> |
|||
<img src="assets/screenshots/hero.gif" style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;" /> |
|||
|
|||
</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;"> |
|||
See key screenshots of 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 will help you to generate inventory turnover analysis report in pdf, xlsx, tree view and graph view. |
|||
And have domains for easily filter records. |
|||
|
|||
</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-start" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="/assets/misc/check-box.png" class="mr-2"/> |
|||
<div> |
|||
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
|||
<h3 style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
PDF and XLSX report</h3> |
|||
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;"> |
|||
Easily download pdf and xlsx report. |
|||
</p> |
|||
</span> |
|||
</div> |
|||
</div> |
|||
<div class="d-flex align-items-start" |
|||
style="margin-top: 30px; margin-bottom: 30px"> |
|||
<img src="/assets/misc/check-box.png" class="mr-2"/> |
|||
<div> |
|||
<span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
|||
<h3 style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Tree view and graph view analysis</h3> |
|||
<p style="font-family: 'Roboto', sans-serif !important; font-weight: 400 !important; color: #282F33 !important; font-size: 1rem !important;"> |
|||
Have tree view and graph view of records |
|||
</p> |
|||
</span> |
|||
</div> |
|||
</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;">An "Inventory turnover analysis report" submenu created under the reporting menu. </h3> |
|||
<img src="assets/screenshots/inventory_image_1.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">When click on the menu it will show a wizard for select start date, end date, products, categories, warehouses and companies. |
|||
If we not select anything it will give all records. We can select necessary domains for filter records. Set default values in fields. |
|||
We have PDF Report, XLSX Report, View data and Graph analysis buttons for generate reports.</p> |
|||
<img src="assets/screenshots/inventory_image_2.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Select values</p> |
|||
<img src="assets/screenshots/inventory_image_3.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Click on PDF Report will generate pdf report and automatically download.</p> |
|||
<img src="assets/screenshots/inventory_image_4.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Click on XLSX Report will generate xlsx report. |
|||
</p> |
|||
<img src="assets/screenshots/inventory_image_5.png" class="img-thumbnail"> |
|||
|
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Click on View data button will show records in tree view formate </p> |
|||
<img src="assets/screenshots/inventory_image_6.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Graph analysis button generate the records in different graph formate like bar chart, line chart, pie chart etc.</p> |
|||
<p>Below shows bar chart view and measures</p> |
|||
<img src="assets/screenshots/inventory_image_7.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Change measures </p> |
|||
<img src="assets/screenshots/inventory_image_8.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">Pie chart </p> |
|||
<img src="assets/screenshots/inventory_image_9.png" class="img-thumbnail"> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12"> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<p style="font-family: 'Montserrat', sans-serif;">When click on the data in graph view that will show the corresponding records in tree view. </p> |
|||
<img src="assets/screenshots/inventory_image_10.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/16.0/odoo_chatgpt_connector/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" style="border-radius: 0px;" |
|||
src="assets/modules/img1.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/16.0/login_user_detail/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" style="border-radius: 0px;" |
|||
src="assets/modules/img2.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/16.0/web_login_styles/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" style="border-radius: 0px;" |
|||
src="assets/modules/img3.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/16.0/activity_dashboard_mngmnt/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" style="border-radius: 0px;" |
|||
src="assets/modules/img4.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/16.0/employee_documents_expiry/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" style="border-radius: 0px;" |
|||
src="assets/modules/img5.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/16.0/invoice_stock_move/" target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" style="border-radius: 0px;" |
|||
src="assets/modules/img6.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 & 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 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" |
|||
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" |
|||
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 --> |
@ -0,0 +1,21 @@ |
|||
/** @odoo-module */ |
|||
import { registry } from "@web/core/registry"; |
|||
import { download } from "@web/core/network/download"; |
|||
import framework from 'web.framework'; |
|||
import session from 'web.session'; |
|||
/* Here the report_type is added into a registry and checks report_type is |
|||
‘XLSX.’Then call the corresponding controller function.*/ |
|||
registry.category("ir.actions.report handlers").add("xlsx", async (action) => { |
|||
if (action.report_type === 'xlsx') { |
|||
framework.blockUI(); |
|||
var def = $.Deferred(); |
|||
session.get_file({ |
|||
url: '/xlsx_reports', |
|||
data: action.data, |
|||
success: def.resolve.bind(def), |
|||
error: (error) => this.call('crash_manager', 'rpc_error', error), |
|||
complete: framework.unblockUI, |
|||
}); |
|||
return def; |
|||
} |
|||
}); |
@ -0,0 +1,30 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Action for new model--> |
|||
<record id="fetch_data_action" model="ir.actions.act_window"> |
|||
<field name="name">Turnover Report</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">fetch.data</field> |
|||
<field name="view_mode">tree</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<!--It shows the records in tree view--> |
|||
<record id="fetch_data_view_tree" model="ir.ui.view"> |
|||
<field name="name">fetch.data.view.tree</field> |
|||
<field name="model">fetch.data</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="company_id"/> |
|||
<field name="warehouse_id"/> |
|||
<field name="product_id"/> |
|||
<field name="category_id"/> |
|||
<field name="opening_stock"/> |
|||
<field name="closing_stock"/> |
|||
<field name="average_stock"/> |
|||
<field name="sale_count"/> |
|||
<field name="purchase_count"/> |
|||
<field name="turnover_ratio"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,41 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Record action for new model --> |
|||
<record id="turnover_graph_analysis_action" model="ir.actions.act_window"> |
|||
<field name="name">Turnover Report</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">turnover.graph.analysis</field> |
|||
<field name="view_mode">graph,tree</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<!--List view of the model --> |
|||
<record id="turnover_graph_analysis_view_tree" model="ir.ui.view"> |
|||
<field name="name">turnover.graph.analysis.view.tree</field> |
|||
<field name="model">turnover.graph.analysis</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="company_id"/> |
|||
<field name="warehouse_id"/> |
|||
<field name="product_id"/> |
|||
<field name="category_id"/> |
|||
<field name="opening_stock"/> |
|||
<field name="closing_stock"/> |
|||
<field name="average_stock"/> |
|||
<field name="sale_count"/> |
|||
<field name="purchase_count"/> |
|||
<field name="turnover_ratio"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
<!--Shows the graph view of the model --> |
|||
<record id="turnover_graph_analysis_view_graph" model="ir.ui.view"> |
|||
<field name="name">turnover.graph.analysis.view.graph</field> |
|||
<field name="model">turnover.graph.analysis</field> |
|||
<field name="arch" type="xml"> |
|||
<graph string="Turnover Report" type="bar"> |
|||
<field name="product_id"/> |
|||
<field name="turnover_ratio" type="measure"/> |
|||
</graph> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import turnover_report |
@ -0,0 +1,357 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Syamili K(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# 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 LESSER GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (AGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
import io |
|||
import xlsxwriter |
|||
from odoo import fields, models |
|||
from odoo.tools import date_utils |
|||
from odoo.tools.safe_eval import json |
|||
|
|||
|
|||
class TurnoverReport(models.TransientModel): |
|||
"""Wizard created for to select date, products, categories, companies and |
|||
warehouses. The records are filtered by using this fields""" |
|||
_name = "turnover.report" |
|||
_description = "Turnover Report" |
|||
|
|||
start_date = fields.Date(string="Start Date", |
|||
help="Select inventory start date.") |
|||
end_date = fields.Date(string="End Date", |
|||
help="Select inventory end date.") |
|||
product_ids = fields.Many2many('product.product', string="Products", |
|||
default=lambda self: self.env[ |
|||
'product.product'].search([], limit=1), |
|||
help="Select multiple products " |
|||
"from the list.") |
|||
category_ids = fields.Many2many('product.category', string="Category", |
|||
default=lambda |
|||
self: self._default_categ_ids(), |
|||
help="Select multiple categories " |
|||
"from the list") |
|||
warehouse_ids = fields.Many2many('stock.warehouse', string="Warehouse", |
|||
default=lambda |
|||
self: self._default_warehouse_ids(), |
|||
help="Select multiple warehouses " |
|||
"from the list.") |
|||
company_ids = fields.Many2many('res.company', string="Company", |
|||
default=lambda self: self.env.company, |
|||
help="Select multiple companies " |
|||
"from the list.") |
|||
|
|||
def _default_categ_ids(self): |
|||
"""Return default category to selection field.""" |
|||
category = self.env['product.product']. \ |
|||
search([], limit=1).product_tmpl_id.categ_id |
|||
return [(6, 0, [category.id])] if category else [] |
|||
|
|||
def _default_warehouse_ids(self): |
|||
"""Return default warehouse to selection field.""" |
|||
warehouse = self.env['stock.warehouse'].search([], limit=1) |
|||
return [(6, 0, [warehouse.id])] if warehouse else [] |
|||
|
|||
def action_pdf_report_generate(self): |
|||
"""Here generate a dictionary of list of datas and that return to a |
|||
report action. And it will generate the pdf report. """ |
|||
data = { |
|||
'stock_report': self.call_render_report(), |
|||
'start_date': self.start_date, |
|||
'end_date': self.end_date, |
|||
} |
|||
return self.env.ref( |
|||
'inventory_turnover_report_analysis.inventory_turnover_report'). \ |
|||
report_action(self, data=data) |
|||
|
|||
def action_xlsx_report_generate(self): |
|||
"""Here generate a dictionary of list of datas and that return to a |
|||
report action. And it will generate the xlsx report. """ |
|||
data = { |
|||
'stock_report': self.call_render_report(), |
|||
'start_date': self.start_date, |
|||
'end_date': self.end_date, |
|||
} |
|||
return { |
|||
'type': 'ir.actions.report', |
|||
'data': {'model': 'turnover.report', |
|||
'options': json.dumps(data, |
|||
default=date_utils.json_default), |
|||
'output_format': 'xlsx', |
|||
'report_name': 'Inventory Turnover Analysis Report', |
|||
}, |
|||
'report_type': 'xlsx', |
|||
} |
|||
|
|||
def get_xlsx_report(self, data, response): |
|||
"""This function is for create xlsx report""" |
|||
output = io.BytesIO() |
|||
workbook = xlsxwriter.Workbook(output, {'in_memory': True}) |
|||
sheet = workbook.add_worksheet('Inventory Turnover Analysis Report') |
|||
head = workbook.add_format({'align': 'center', 'bold': True, |
|||
'font_size': '30px'}) |
|||
sheet.set_column('A:A', 30) |
|||
sheet.set_column('B:B', 15) |
|||
sheet.set_column('C:C', 15) |
|||
sheet.set_column('D:D', 15) |
|||
sheet.set_column('E:E', 15) |
|||
sheet.set_column('F:F', 15) |
|||
sheet.set_column('G:G', 15) |
|||
sheet.merge_range('A3:G1', 'Inventory Turnover Analysis Report', head) |
|||
row = 6 |
|||
column = 0 |
|||
if data['start_date']: |
|||
sheet.write(5, 1, 'Start Date:', workbook.add_format({ |
|||
'align': 'center', 'bold': True})) |
|||
sheet.write(5, 2, data['start_date'], workbook.add_format({ |
|||
'align': 'center', 'bold': True})) |
|||
row += 1 |
|||
if data['end_date']: |
|||
sheet.write(5, 4, 'End Date:', workbook.add_format({ |
|||
'align': 'center', 'bold': True})) |
|||
sheet.write(5, 5, data['end_date'], workbook.add_format({ |
|||
'align': 'center', 'bold': True})) |
|||
row += 1 |
|||
head_table = workbook.add_format({'align': 'center', 'bold': True}) |
|||
sheet.write(row, column, 'Product', workbook.add_format({ |
|||
'align': 'left', 'bold': True})) |
|||
column += 1 |
|||
sheet.write(row, column, 'Opening Stock', head_table) |
|||
column += 1 |
|||
sheet.write(row, column, 'Closing Stock', head_table) |
|||
column += 1 |
|||
sheet.write(row, column, 'Average Stock', head_table) |
|||
column += 1 |
|||
sheet.write(row, column, 'Sale count', head_table) |
|||
column += 1 |
|||
sheet.write(row, column, 'Purchase Count', head_table) |
|||
column += 1 |
|||
sheet.write(row, column, 'Turnover Ratio', head_table) |
|||
for datas in data['stock_report']: |
|||
row += 1 |
|||
column = 0 |
|||
table_body = workbook.add_format({'align': 'center'}) |
|||
sheet.write(row, column, datas['product'], workbook.add_format({ |
|||
'align': 'left'})) |
|||
column += 1 |
|||
sheet.write(row, column, datas['opening_stock'], table_body) |
|||
column += 1 |
|||
sheet.write(row, column, datas['closing_stock'], table_body) |
|||
column += 1 |
|||
sheet.write(row, column, datas['average_stock'], table_body) |
|||
column += 1 |
|||
sheet.write(row, column, datas['sale_count'], table_body) |
|||
column += 1 |
|||
sheet.write(row, column, datas['purchase_count'], table_body) |
|||
column += 1 |
|||
sheet.write(row, column, datas['turnover_ratio'], table_body) |
|||
workbook.close() |
|||
output.seek(0) |
|||
response.stream.write(output.read()) |
|||
output.close() |
|||
|
|||
def action_data_fetch(self): |
|||
"""Here generate a list of dictionary of datas, and from that list |
|||
create records. And it will return tree view with created records.""" |
|||
self.env['fetch.data'].search([]).unlink() |
|||
filtered_records = self.call_render_model() |
|||
for rec in filtered_records: |
|||
self.env['fetch.data'].create({ |
|||
'company_id': rec['company_id'], |
|||
'warehouse_id': rec['warehouse_id'], |
|||
'product_id': rec['id'], |
|||
'category_id': rec['category_id'], |
|||
'opening_stock': rec['opening_stock'], |
|||
'closing_stock': rec['closing_stock'], |
|||
'average_stock': rec['average_stock'], |
|||
'sale_count': rec['sale_count'], |
|||
'purchase_count': rec['purchase_count'], |
|||
'turnover_ratio': rec['turnover_ratio'], |
|||
}) |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'view_mode': 'tree', |
|||
'res_model': 'fetch.data', |
|||
'name': 'Turnover Analysis Report', |
|||
'target': 'current', |
|||
'context': {"create": False}, |
|||
} |
|||
|
|||
def action_generate_graph_view(self): |
|||
"""Here generate a list of dictionary of datas, and from that list |
|||
create records. And it will return graph view with created records.""" |
|||
self.env['turnover.graph.analysis'].search([]).unlink() |
|||
filtered_records = self.call_render_model() |
|||
for rec in filtered_records: |
|||
self.env['turnover.graph.analysis'].create({ |
|||
'company_id': rec['company_id'], |
|||
'warehouse_id': rec['warehouse_id'], |
|||
'product_id': rec['id'], |
|||
'category_id': rec['category_id'], |
|||
'opening_stock': rec['opening_stock'], |
|||
'closing_stock': rec['closing_stock'], |
|||
'average_stock': rec['average_stock'], |
|||
'sale_count': rec['sale_count'], |
|||
'purchase_count': rec['purchase_count'], |
|||
'turnover_ratio': rec['turnover_ratio'], |
|||
}) |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'view_mode': 'graph', |
|||
'res_model': 'turnover.graph.analysis', |
|||
'name': 'Turnover Analysis', |
|||
'target': 'current', |
|||
'context': {"create": False}, |
|||
} |
|||
|
|||
def call_render_report(self): |
|||
"""Function call for get datas to generate PDF and XLSX report, and |
|||
return the computed record.""" |
|||
stock_report = [] |
|||
warehouse = False |
|||
last_count_date = False |
|||
domain = [] |
|||
domain_list = [] |
|||
domain.append(('product_id', 'in', |
|||
self.product_ids.ids), ) if self.product_ids else None |
|||
domain.append(('company_id', 'in', |
|||
self.company_ids.ids), ) if self.company_ids else None |
|||
domain.append(('product_categ_id', 'in', |
|||
self.category_ids.ids), ) if self.category_ids else None |
|||
if self.warehouse_ids: |
|||
for warehouse in self.warehouse_ids: |
|||
domain_list += warehouse.lot_stock_id.search([ |
|||
('location_id', 'child_of', |
|||
warehouse.view_location_id.id)]).ids |
|||
domain.append(('location_id', 'in', domain_list)) |
|||
quants = self.env['stock.quant'].search(domain) |
|||
for quant in quants: |
|||
closing_stock = 0 |
|||
opening_stock = 0 |
|||
sales_count = quant.product_id.sales_count |
|||
purchase_count = quant.product_id.purchased_product_qty |
|||
category_id = quant.product_id.categ_id.complete_name |
|||
if quant.location_id.usage == 'internal': |
|||
opening_stock += quant.available_quantity |
|||
closing_stock += quant.quantity |
|||
warehouse = quant.location_id.warehouse_id.name |
|||
last_count_date = quant.last_count_date |
|||
average_stock = (opening_stock + closing_stock) / 2 |
|||
stock_count = sales_count + opening_stock |
|||
turnover_ratio = 0 if average_stock == 0 or stock_count == 0 else \ |
|||
stock_count / average_stock |
|||
turnover = round(turnover_ratio, 2) |
|||
name = quant.product_id.display_name |
|||
split_name = name.split(']') |
|||
product_name = split_name[0] if len(split_name) == 1 else \ |
|||
split_name[1] |
|||
dict = {'id': quant.product_id.id, |
|||
'product': product_name, |
|||
'last_count_date': last_count_date, |
|||
'opening_stock': opening_stock, |
|||
'closing_stock': closing_stock, |
|||
'average_stock': average_stock, |
|||
'sale_count': sales_count, |
|||
'purchase_count': purchase_count, |
|||
'turnover_ratio': turnover, |
|||
'category_id': category_id, |
|||
'company_id': quant.company_id.name, |
|||
'warehouse_id': warehouse} |
|||
stock_report.append(dict) |
|||
return self._date_comparison(stock_report) |
|||
|
|||
def call_render_model(self): |
|||
"""Function call for get datas to generate list and graph view, and |
|||
return the computed record.""" |
|||
stock_report = [] |
|||
warehouse = False |
|||
last_count_date = False |
|||
domain = [] |
|||
domain_list = [] |
|||
domain.append(('product_id', 'in', |
|||
self.product_ids.ids), ) if self.product_ids else None |
|||
domain.append(('company_id', 'in', |
|||
self.company_ids.ids), ) if self.company_ids else None |
|||
domain.append(('product_categ_id', 'in', |
|||
self.category_ids.ids), ) if self.category_ids else None |
|||
if self.warehouse_ids: |
|||
for warehouse in self.warehouse_ids: |
|||
domain_list += warehouse.lot_stock_id.search( |
|||
[('location_id', 'child_of', |
|||
warehouse.view_location_id.id)]).ids |
|||
domain.append(('location_id', 'in', domain_list)) |
|||
quants = self.env['stock.quant'].search(domain) |
|||
for quant in quants: |
|||
closing_stock = 0 |
|||
opening_stock = 0 |
|||
sales_count = quant.product_id.sales_count |
|||
purchase_count = quant.product_id.purchased_product_qty |
|||
category_id = quant.product_id.categ_id.id |
|||
if quant.location_id.usage == 'internal': |
|||
opening_stock += quant.available_quantity |
|||
closing_stock += quant.quantity |
|||
warehouse = quant.location_id.warehouse_id.id |
|||
last_count_date = quant.last_count_date |
|||
average_stock = (opening_stock + closing_stock) / 2 |
|||
stock_count = sales_count + opening_stock |
|||
turnover_ratio = 0 if average_stock == 0 or stock_count == 0 else \ |
|||
stock_count / average_stock |
|||
turnover = round(turnover_ratio, 2) |
|||
dict = {'id': quant.product_id.id, |
|||
'last_count_date': last_count_date, |
|||
'opening_stock': opening_stock, |
|||
'closing_stock': closing_stock, |
|||
'average_stock': average_stock, |
|||
'sale_count': sales_count, |
|||
'purchase_count': purchase_count, |
|||
'turnover_ratio': turnover, |
|||
'category_id': category_id, |
|||
'company_id': quant.company_id.id, |
|||
'warehouse_id': warehouse} |
|||
stock_report.append(dict) |
|||
return self._date_comparison(stock_report) |
|||
|
|||
def _date_comparison(self, data): |
|||
"""Function is for filter data by selected date range.""" |
|||
filtered_records = [] |
|||
record_dict = {} |
|||
for item in data: |
|||
key = (item['id'], item['last_count_date']) |
|||
if key in record_dict: |
|||
record = record_dict[key] |
|||
record['opening_stock'] += item['opening_stock'] |
|||
record['closing_stock'] += item['closing_stock'] |
|||
else: |
|||
record_dict[key] = item |
|||
for record in record_dict.values(): |
|||
record_date = record['last_count_date'] |
|||
if ((not self.start_date and not self.end_date) or |
|||
(self.start_date and self.end_date and |
|||
self.start_date <= self.end_date and |
|||
self.start_date <= record_date <= self.end_date) or |
|||
(self.start_date and not self.end_date and |
|||
record_date >= self.start_date) or |
|||
(not self.start_date and self.end_date and |
|||
record_date <= self.end_date)): |
|||
if record['id'] in filtered_records: |
|||
filtered_record = filtered_records[record['id']] |
|||
filtered_record['opening_stock'] += record['opening_stock'] |
|||
filtered_record['closing_stock'] += record['closing_stock'] |
|||
else: |
|||
filtered_records.append(record) |
|||
return filtered_records |
@ -0,0 +1,59 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Action for the new model turnover.report--> |
|||
<record id="turnover_report_action" model="ir.actions.act_window"> |
|||
<field name="name">Report</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">turnover.report</field> |
|||
<field name="view_mode">form</field> |
|||
<field name="target">new</field> |
|||
</record> |
|||
<!--Shows the form view of the model with given fields--> |
|||
<record id="turnover_report_view_form" model="ir.ui.view"> |
|||
<field name="name">turnover.report.view.form</field> |
|||
<field name="model">turnover.report</field> |
|||
<field name="arch" type="xml"> |
|||
<form string="Inventory Turnover Analysis Report"> |
|||
<group> |
|||
<group> |
|||
<separator string="SELECT DATE"/> |
|||
<field name="start_date"/> |
|||
<field name="end_date"/> |
|||
</group> |
|||
<group> |
|||
<separator string="SELECT PRODUCTS AND CATEGORIES"/> |
|||
<field name="product_ids" widget="many2many_tags"/> |
|||
<field name="category_ids" widget="many2many_tags"/> |
|||
</group> |
|||
<group> |
|||
<separator string="SELECT WAREHOUSES AND COMPANIES"/> |
|||
<field name="warehouse_ids" widget="many2many_tags"/> |
|||
<field name="company_ids" widget="many2many_tags"/> |
|||
</group> |
|||
</group> |
|||
<footer> |
|||
<button name="action_pdf_report_generate" |
|||
string="PDF Report" |
|||
type="object" class="oe_highlight"/> |
|||
<button name="action_xlsx_report_generate" |
|||
string="XLSX Report" |
|||
type="object" class="oe_highlight"/> |
|||
<button name="action_data_fetch" string="View Data" |
|||
type="object" class="oe_highlight"/> |
|||
<button name="action_generate_graph_view" |
|||
string="Graph Analysis" |
|||
type="object" class="oe_highlight"/> |
|||
<button name="action_cancel" string="Discard" |
|||
class="btn-secondary" special="cancel" |
|||
data-hotkey="z"/> |
|||
</footer> |
|||
</form> |
|||
</field> |
|||
</record> |
|||
<!--Menu action added to open the model--> |
|||
<menuitem id="inventory_report_menu" |
|||
name="Inventory Turnover Analysis Report" |
|||
parent="stock.menu_warehouse_report" |
|||
action="turnover_report_action" |
|||
sequence="1"/> |
|||
</odoo> |