@ -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 |
|||
|
|||
Inventory All In One Report Generator |
|||
===================================== |
|||
* Inventory All In One Dynamic Report For Odoo 18 community And Enterprise editions |
|||
|
|||
Configuration |
|||
============= |
|||
* No additional configurations needed |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (AGPL v3). |
|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
|||
|
|||
Credits |
|||
------- |
|||
* Developer: (V17) Mruthul Raj, |
|||
(V18) Ranjith R, |
|||
Contact:odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 controllers |
|||
from . import models |
|||
from . import report |
@ -0,0 +1,51 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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': 'Inventory All In One Report Generator', |
|||
'version': '18.0.1.0.0', |
|||
'category': 'Productivity', |
|||
'summary': "Dynamic Inventory Report Generator for Odoo 17", |
|||
'description': "Streamline your inventory reporting with ease. Generate " |
|||
"dynamic reports, gain insights, and make informed " |
|||
"decisions.", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['stock'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'views/inventory_report_views.xml', |
|||
'report/inventory_pdf_report_templates.xml' |
|||
], |
|||
'assets': { |
|||
'web.assets_backend': [ |
|||
'inventory_report_generator/static/src/js/inventory_report.js', |
|||
'inventory_report_generator/static/src/css/inventory_report.css', |
|||
'inventory_report_generator/static/src/xml/inventory_report_templates.xml', |
|||
] |
|||
}, |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 inventory_report_generator |
@ -0,0 +1,73 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 json |
|||
from odoo import http |
|||
from odoo.http import content_disposition, request |
|||
from odoo.tools import html_escape |
|||
|
|||
|
|||
class InventoryReportGenerator(http.Controller): |
|||
"""Controller for handling dynamic inventory report exports in XLSX format. |
|||
This controller provides an HTTP endpoint for generating and exporting |
|||
dynamic inventory reports in XLSX format. It takes input options and |
|||
report data, creates an XLSX report, and sends it as an HTTP response.""" |
|||
|
|||
@http.route('/inventory_dynamic_xlsx_reports', type='http', auth='user', |
|||
methods=['POST'], csrf=False) |
|||
def get_report_xlsx(self, model, options, output_format, report_data, |
|||
report_name, dfr_data, **kw): |
|||
"""Generate and export a dynamic inventory report in XLSX format. |
|||
This method handles the generation and export of dynamic inventory |
|||
reports in XLSX format. It takes various parameters like the report |
|||
model, export options, output format, and report data. |
|||
model: The report model for which the report is generated. |
|||
options: The export options and configuration. |
|||
output_format: The desired output format, such as 'xlsx'. |
|||
report_data: The data to be included in the report. |
|||
report_name: The name of the generated report file. |
|||
dfr_data: Additional data for report generation. |
|||
kw: Additional keyword arguments. |
|||
return: An HTTP response containing the generated XLSX report.""" |
|||
uid = request.session.uid |
|||
report_obj = request.env[model].with_user(uid) |
|||
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_inventory_xlsx_report(options, response, |
|||
report_data, dfr_data) |
|||
response.set_cookie('fileToken', token) |
|||
return response |
|||
except Exception as e: |
|||
se = http.serialize_exception(e) |
|||
error = { |
|||
'code': 200, |
|||
'message': 'Odoo Server Error', |
|||
'data': se |
|||
} |
|||
return request.make_response(html_escape(json.dumps(error))) |
@ -0,0 +1,6 @@ |
|||
## Module <inventory_report_generator> |
|||
|
|||
#### 29.01.2025 |
|||
#### Version 18.0.1.0.0 |
|||
#### ADD |
|||
- Initial Commit for Inventory All In One Report Generator |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 dynamic_inventory_report |
@ -0,0 +1,430 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 io |
|||
import json |
|||
from odoo import api, fields, models |
|||
|
|||
try: |
|||
from odoo.tools.misc import xlsxwriter |
|||
except ImportError: |
|||
import xlsxwriter |
|||
|
|||
|
|||
class DynamicInventoryReport(models.Model): |
|||
"""Model for generating dynamic inventory reports. |
|||
This class represents a model for generating dynamic inventory reports |
|||
based on various criteria. It provides methods for creating, updating, |
|||
and generating reports with options like report type,date range, |
|||
and filters.""" |
|||
_name = "dynamic.inventory.report" |
|||
_description = "All in one inventory report" |
|||
|
|||
purchase_report = fields.Char(string="Inventory Report", |
|||
help="The name or title of the dynamic " |
|||
"inventory report.") |
|||
date_from = fields.Datetime(string="Date From", help="The starting date") |
|||
date_to = fields.Datetime(string="Date to", help="The ending date") |
|||
report_type = fields.Selection([ |
|||
('report_by_transfers', 'Report By Transfers'), |
|||
('report_by_categories', 'Report By Categories'), |
|||
('report_by_warehouse', 'Report By Warehouse'), |
|||
('report_by_location', 'Report By Location')], string="Report Type", |
|||
default='report_by_transfers', help="The type of dynamic inventory" |
|||
"report to generate.") |
|||
|
|||
@api.model |
|||
def inventory_report(self, option): |
|||
"""Generate and return an inventory report. |
|||
Args: |
|||
option (list): A list containing the report options. |
|||
Returns: |
|||
dict: A dictionary containing report data.""" |
|||
report_values = self.env['dynamic.inventory.report'].search( |
|||
[('id', '=', option[0])]) |
|||
data = { |
|||
'report_type': report_values.report_type, |
|||
'model': self, |
|||
} |
|||
if report_values.date_from: |
|||
data.update({ |
|||
'date_from': report_values.date_from, |
|||
}) |
|||
if report_values.date_to: |
|||
data.update({ |
|||
'date_to': report_values.date_to, |
|||
}) |
|||
filters = self.get_filter(option) |
|||
self._get_report_values(data) |
|||
lines = self._get_report_values(data).get('INVENTORY') |
|||
return { |
|||
'name': "Inventory Orders", |
|||
'type': 'ir.actions.client', |
|||
'tag': 's_r', |
|||
'orders': data, |
|||
'filters': filters, |
|||
'report_lines': lines, |
|||
} |
|||
|
|||
def get_filter(self, option): |
|||
"""Get filters for the inventory report. |
|||
Args: |
|||
option (list): A list containing the report options. |
|||
Returns: |
|||
dict: A dictionary containing filter data for the report.""" |
|||
data = self.get_filter_data(option) |
|||
filters = {} |
|||
if data.get('report_type') == 'report_by_transfers': |
|||
filters['report_type'] = 'Report By Transfers' |
|||
elif data.get('report_type') == 'report_by_categories': |
|||
filters['report_type'] = 'Report By Categories' |
|||
elif data.get('report_type') == 'report_by_warehouse': |
|||
filters['report_type'] = 'Report By Warehouse' |
|||
elif data.get('report_type') == 'report_by_location': |
|||
filters['report_type'] = 'Report By Location' |
|||
else: |
|||
filters['report_type'] = 'report_by_transfers' |
|||
return filters |
|||
|
|||
def get_filter_data(self, option): |
|||
"""Get filter data for the inventory report. |
|||
Args: |
|||
option (list): A list containing the report options. |
|||
Returns: |
|||
dict: A dictionary containing filter data for the report.""" |
|||
r = self.env['dynamic.inventory.report'].search( |
|||
[('id', '=', option[0])]) |
|||
default_filters = {} |
|||
filter_dict = { |
|||
'report_type': r.report_type, |
|||
} |
|||
filter_dict.update(default_filters) |
|||
return filter_dict |
|||
|
|||
@api.model |
|||
def create(self, vals): |
|||
"""Create a new record of DynamicInventoryReport. |
|||
Args: |
|||
vals (dict): A dictionary of field values for the new record. |
|||
Returns: |
|||
DynamicInventoryReport: The created record.""" |
|||
res = super(DynamicInventoryReport, self).create(vals) |
|||
return res |
|||
|
|||
def write(self, vals): |
|||
"""Update records of DynamicInventoryReport. |
|||
Args: |
|||
vals (dict): A dictionary of field values to update the records. |
|||
Returns: |
|||
bool: True if the records were successfully updated.""" |
|||
res = super(DynamicInventoryReport, self).write(vals) |
|||
return res |
|||
|
|||
def _get_report_sub_lines(self, data, report, date_from, date_to): |
|||
"""Get sub-lines of the inventory report. |
|||
Args: |
|||
data (dict): Data for generating the report. |
|||
report (str): The type of report. |
|||
date_from (datetime): Start date for filtering. |
|||
date_to (datetime): End date for filtering. |
|||
Returns: |
|||
list: List of sub-lines for the inventory report.""" |
|||
report_sub_lines = [] |
|||
if data.get('report_type') == 'report_by_transfers': |
|||
query = '''select l.name,l.partner_id,l.scheduled_date,l.origin, |
|||
l.company_id,l.state,res_partner.name as partner, |
|||
res_company.name as company,l.id as id from stock_picking as l |
|||
left join res_partner on l.partner_id = res_partner.id left join |
|||
res_company on l.company_id = res_company.id''' |
|||
term = 'Where ' |
|||
if data.get('date_from'): |
|||
query += " Where l.scheduled_date >= '%s' " % data.get( |
|||
'date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + " l.scheduled_date <= '%s' " % data.get( |
|||
'date_to') |
|||
self._cr.execute(query) |
|||
report_by_order = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_order) |
|||
elif data.get('report_type') == 'report_by_categories': |
|||
query = """ |
|||
select |
|||
product_product.standard_price as value_float, |
|||
product_template.name, |
|||
product_template.create_date, |
|||
product_template.categ_id, |
|||
product_product.id, |
|||
stock_quant.quantity, |
|||
product_category.name as category, |
|||
stock_location.complete_name as location |
|||
from |
|||
product_product |
|||
inner join |
|||
product_template on product_product.product_tmpl_id = |
|||
product_template.id |
|||
inner join |
|||
stock_quant on product_product.id = stock_quant.product_id |
|||
inner join |
|||
stock_location on stock_quant.location_id = stock_location.id |
|||
left join |
|||
product_category on product_category.id = |
|||
product_template.categ_id""" |
|||
term = ' Where ' |
|||
if data.get('date_from'): |
|||
query += " Where stock_quant.create_date >= '%s' " % data.get( |
|||
'date_from') |
|||
term = ' AND ' |
|||
if data.get('date_to'): |
|||
query += term + " stock_quant.create_date <= '%s' " % data.get( |
|||
'date_to') |
|||
self._cr.execute(query) |
|||
report_by_order_details = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_order_details) |
|||
elif data.get('report_type') == 'report_by_warehouse': |
|||
query = '''select l.name,l.company_id,l.view_location_id, |
|||
l.reception_route_id as route,l.write_date,res_company.name as |
|||
company,stock_location.name as location,stock_route.name as |
|||
route from stock_warehouse as l left join res_company on |
|||
res_company.id = l.company_id left join stock_location on |
|||
stock_location.id = l.view_location_id left join stock_route on |
|||
stock_route.id = l.reception_route_id''' |
|||
term = ' Where ' |
|||
if data.get('date_from'): |
|||
query += " Where l.write_date >= '%s' " % data.get('date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + "l.write_date <= '%s' " % data.get('date_to') |
|||
self._cr.execute(query) |
|||
report_by_product = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_product) |
|||
elif data.get('report_type') == 'report_by_location': |
|||
query = '''select l.complete_name,l.usage as location_type, |
|||
l.create_date,l.company_id,res_company.name as company from |
|||
stock_location as l left join res_company on res_company.id = |
|||
l.company_id''' |
|||
term = ' Where ' |
|||
if data.get('date_from'): |
|||
query += " Where l.create_date >= '%s' " % data.get('date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + "l.create_date <= '%s' " % data.get('date_to') |
|||
self._cr.execute(query) |
|||
report_by_categories = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_categories) |
|||
return report_sub_lines |
|||
|
|||
def _get_report_total_value(self, data, report): |
|||
"""Get the total value for the inventory report. |
|||
Args: |
|||
data (dict): Data for generating the report. |
|||
report (str): The type of report. |
|||
Returns: |
|||
list: List of total values for the inventory report.""" |
|||
report_main_lines = [] |
|||
if data.get('report_type') == 'report_by_order': |
|||
self._cr.execute(''' |
|||
select count(so.id) as order,sum(so.amount_total) as amount |
|||
from sale_order as so |
|||
''') |
|||
report_by_order = self._cr.dictfetchall() |
|||
report_main_lines.append(report_by_order) |
|||
elif data.get('report_type') == 'report_by_order_detail': |
|||
self._cr.execute('''select count(so_line.id) as order, |
|||
sum(so_line.price_subtotal) as total from sale_order_line as so_line |
|||
''') |
|||
report_by_order_detail = self._cr.dictfetchall() |
|||
report_main_lines.append(report_by_order_detail) |
|||
elif data.get('report_type') == 'report_by_product': |
|||
self._cr.execute(''' |
|||
select count(so_line.product_id) as order, |
|||
sum(so_line.price_subtotal) as amount from |
|||
sale_order_line as so_line ''') |
|||
report_by_product = self._cr.dictfetchall() |
|||
report_main_lines.append(report_by_product) |
|||
else: |
|||
report_main_lines = False |
|||
return report_main_lines |
|||
|
|||
def _get_report_values(self, data): |
|||
"""Get the values for the inventory report. |
|||
Args: |
|||
data (dict): Data for generating the report. |
|||
Returns: |
|||
dict: Dictionary containing report data.""" |
|||
docs = data['model'] |
|||
date_from = data.get('date_from') |
|||
date_to = data.get('date_to') |
|||
if data['report_type'] == 'report_by_transfers': |
|||
report = ['Report By Transfers'] |
|||
elif data['report_type'] == 'report_by_categories': |
|||
report = ['Report By Categories'] |
|||
elif data['report_type'] == 'report_by_warehouse': |
|||
report = ['Report By Warehouse'] |
|||
elif data['report_type'] == 'report_by_location': |
|||
report = ['Report By Location'] |
|||
else: |
|||
report = ['report_by_transfers By Order'] |
|||
if data.get('report_type'): |
|||
report_res = \ |
|||
self._get_report_sub_lines(data, report, date_from, date_to)[0] |
|||
else: |
|||
report_res = self._get_report_sub_lines(data, report, date_from, |
|||
date_to) |
|||
return { |
|||
'doc_ids': self.ids, |
|||
'docs': docs, |
|||
'INVENTORY': report_res, |
|||
} |
|||
|
|||
def get_inventory_xlsx_report(self, data, response, report_data, dfr_data): |
|||
"""Generate an XLSX report for the inventory data. |
|||
Args: |
|||
data (str): JSON data for the report. |
|||
response (object): Response object for the XLSX report. |
|||
report_data (str): JSON data for the report. |
|||
dfr_data (str): JSON data for DynamicInventoryReport.""" |
|||
report_data_main = json.loads(report_data) |
|||
output = io.BytesIO() |
|||
filters = json.loads(data) |
|||
workbook = xlsxwriter.Workbook(output, {'in_memory': True}) |
|||
sheet = workbook.add_worksheet() |
|||
head = workbook.add_format({'align': 'center', 'bold': True, |
|||
'font_size': '20px'}) |
|||
heading = workbook.add_format( |
|||
{'align': 'center', 'bold': True, 'font_size': '10px', |
|||
'border': 2, |
|||
'border_color': 'black'}) |
|||
txt_l = workbook.add_format( |
|||
{'font_size': '10px', 'border': 1, 'bold': True}) |
|||
sheet.merge_range('A2:F3', 'Inventory Report', head) |
|||
if filters.get('report_type') == 'report_by_transfers': |
|||
sheet.merge_range('A5:D5', 'Report Type: ' + |
|||
filters.get('report_type'), txt_l) |
|||
sheet.write('A7', 'Reference', heading) |
|||
sheet.write('B7', 'Scheduled Date', heading) |
|||
sheet.write('C7', 'Source Document', heading) |
|||
sheet.write('D7', 'Company', heading) |
|||
sheet.write('E7', 'Delivery Address', heading) |
|||
sheet.write('F7', 'State', heading) |
|||
lst = [] |
|||
for rec in report_data_main[0]: |
|||
lst.append(rec) |
|||
row = 6 |
|||
col = 0 |
|||
sheet.set_column(3, 0, 15) |
|||
sheet.set_column(4, 1, 15) |
|||
sheet.set_column(5, 2, 15) |
|||
sheet.set_column(6, 3, 15) |
|||
sheet.set_column(7, 4, 15) |
|||
sheet.set_column(8, 5, 15) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['name'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['scheduled_date'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['origin'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['company'], txt_l) |
|||
sheet.write(row, col + 4, rec_data['partner'], txt_l) |
|||
sheet.write(row, col + 5, rec_data['state'], txt_l) |
|||
if filters.get('report_type') == 'report_by_categories': |
|||
sheet.merge_range('B5:D5', 'Report Type: ' + |
|||
filters.get('report_type'), txt_l) |
|||
sheet.write('A7', 'Category', heading) |
|||
sheet.write('B7', 'Product Name', heading) |
|||
sheet.write('C7', 'Create Date', heading) |
|||
sheet.write('D7', 'Product Cost', heading) |
|||
sheet.write('E7', 'Location', heading) |
|||
sheet.write('F7', 'On Hand Qty', heading) |
|||
lst = [] |
|||
for rec in report_data_main[0]: |
|||
lst.append(rec) |
|||
row = 6 |
|||
col = 0 |
|||
sheet.set_column(3, 0, 15) |
|||
sheet.set_column(4, 1, 15) |
|||
sheet.set_column(5, 2, 15) |
|||
sheet.set_column(6, 3, 15) |
|||
sheet.set_column(7, 4, 15) |
|||
sheet.set_column(8, 5, 15) |
|||
sheet.set_column(9, 6, 15) |
|||
sheet.set_column(10, 7, 15) |
|||
sheet.set_column(11, 8, 15) |
|||
sheet.set_column(12, 9, 15) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['category'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['name']['en_US'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['create_date'], txt_l) |
|||
if rec_data['value_float']: |
|||
value = list(rec_data['value_float'].values())[0] |
|||
sheet.write(row, col + 3, value, txt_l) |
|||
sheet.write(row, col + 4, rec_data['location'], txt_l) |
|||
sheet.write(row, col + 5, rec_data['quantity'], txt_l) |
|||
if filters.get('report_type') == 'report_by_warehouse': |
|||
sheet.merge_range('B5:D5', 'Report Type: ' + |
|||
filters.get('report_type'), txt_l) |
|||
sheet.write('A7', 'Warehouse', heading) |
|||
sheet.write('B7', 'Date', heading) |
|||
sheet.write('C7', 'Company', heading) |
|||
sheet.write('D7', 'Location', heading) |
|||
sheet.write('E7', 'Route', heading) |
|||
lst = [] |
|||
for rec in report_data_main[0]: |
|||
lst.append(rec) |
|||
row = 6 |
|||
col = 0 |
|||
sheet.set_column(3, 0, 15) |
|||
sheet.set_column(4, 1, 15) |
|||
sheet.set_column(5, 2, 15) |
|||
sheet.set_column(6, 3, 15) |
|||
sheet.set_column(7, 4, 15) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['name'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['write_date'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['company'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['location'], txt_l) |
|||
sheet.write(row, col + 4, rec_data['route']['en_US'], txt_l) |
|||
if filters.get('report_type') == 'report_by_location': |
|||
sheet.merge_range('B5:D5', 'Report Type: ' + |
|||
filters.get('report_type'), txt_l) |
|||
sheet.write('B7', 'Location', heading) |
|||
sheet.write('C7', 'Location Type', heading) |
|||
sheet.write('D7', 'Create Date', heading) |
|||
sheet.write('E7', 'Company', heading) |
|||
lst = [] |
|||
for rec in report_data_main[0]: |
|||
lst.append(rec) |
|||
row = 6 |
|||
col = 1 |
|||
sheet.set_column(3, 1, 15) |
|||
sheet.set_column(4, 2, 15) |
|||
sheet.set_column(5, 3, 15) |
|||
sheet.set_column(6, 4, 15) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['complete_name'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['location_type'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['create_date'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['company'], txt_l) |
|||
workbook.close() |
|||
output.seek(0) |
|||
response.stream.write(output.read()) |
|||
output.close() |
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 inventory_pdf_report |
@ -0,0 +1,44 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ranjith R(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 odoo import api, models |
|||
|
|||
|
|||
class InventoryPDFReport(models.AbstractModel): |
|||
"""This abstract model is used for generating an inventory PDF report. |
|||
This model serves as a template for generating PDF reports related |
|||
to inventory data. It is designed to be used as a base for specific |
|||
report generators.""" |
|||
_name = 'report.inventory_report_generator.inventory_pdf_report' |
|||
|
|||
@api.model |
|||
def _get_report_values(self, docids, data=None): |
|||
"""Get report values for generating an inventory PDF report. |
|||
docids: IDs of the documents to be included in the report. |
|||
data: Additional data or options for generating the report. |
|||
return: A dictionary containing the report data and parameters.""" |
|||
if self.env.context.get('inventory_pdf_report'): |
|||
data.update({'report_main_line_data': data.get('report_data')[ |
|||
'report_lines'], |
|||
'Filters': data.get('report_data')['filters'], |
|||
'Dates': data.get('report_data')['orders'], |
|||
'company': self.env.company, |
|||
}) |
|||
return data |
@ -0,0 +1,281 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Define an action for the Inventory All In One Report --> |
|||
<record id="action_report_inventory_all_in_one" model="ir.actions.report"> |
|||
<field name="name">Inventory All In One Report</field> |
|||
<field name="model">dynamic.inventory.report</field> |
|||
<field name="report_type">qweb-pdf</field> |
|||
<field name="report_name">inventory_report_generator.inventory_pdf_report</field> |
|||
<field name="report_file">inventory_report_generator.inventory_pdf_report</field> |
|||
<field name="binding_type">report</field> |
|||
</record> |
|||
<!-- Define a template for the Inventory PDF Report --> |
|||
<template id="inventory_pdf_report"> |
|||
<t t-call="web.html_container"> |
|||
<t t-call="web.external_layout"> |
|||
<t t-if="Filters.get('report_type')=='Report By Transfers'"> |
|||
<t t-call="inventory_report_generator.report_by_transfers"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By Categories'"> |
|||
<t t-call="inventory_report_generator.report_by_categories"/> |
|||
</t> |
|||
|
|||
<t t-if="Filters.get('report_type')=='Report By Warehouse'"> |
|||
<t t-call="inventory_report_generator.report_by_warehouse"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By Location'"> |
|||
<t t-call="inventory_report_generator.report_by_location"/> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
<!-- Define a template for the 'Report By Transfers' --> |
|||
<template id="report_by_transfers"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Dates.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Dates['date_from']"/> |
|||
</span> |
|||
<span t-if="Dates.get('date_to')"> |
|||
<strong>To:</strong> |
|||
<t t-esc="Dates['date_to']"/> |
|||
</span> |
|||
<div> |
|||
<div style="width:100%;"> |
|||
<div style="text-align:centre;" class="row"> |
|||
<div class="col-2"> |
|||
<strong>Report Type:</strong> |
|||
<t t-esc="Filters.get('report_type')"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<br/> |
|||
<table class="table table-sm table-reports"> |
|||
<thead> |
|||
<tr> |
|||
<th colspan="6" class="text-left">Reference</th> |
|||
<th colspan="6" class="text-center">Scheduled |
|||
Date |
|||
</th> |
|||
<th colspan="6" class="text-right">Source |
|||
Document |
|||
</th> |
|||
<th colspan="6" class="text-right">Company</th> |
|||
<th colspan="6" class="text-center">Delivery |
|||
Address |
|||
</th> |
|||
<th colspan="6" class="text-left">State</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody class="text-left"> |
|||
<t t-foreach="report_main_line_data" t-as="main"> |
|||
<tr style="font-weight: bold;"> |
|||
<td colspan="6"> |
|||
<span t-esc="main['name']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['scheduled_date']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['origin']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['company']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['partner']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['state']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- Template for 'Report By Categories' --> |
|||
<template id="report_by_categories"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<span t-if="Filters.get('date_to')"> |
|||
<strong>To:</strong> |
|||
<t t-esc="Filters['date_to']"/> |
|||
</span> |
|||
<div> |
|||
<div style="width:100%;"> |
|||
<div style="text-align:centre;" class="row"> |
|||
|
|||
<div class="col-2"> |
|||
<strong>Report Type:</strong> |
|||
<t t-esc="Filters.get('report_type')"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<br/> |
|||
<table class="table table-sm table-reports"> |
|||
<thead> |
|||
<tr class="text-left"> |
|||
<th colspan="6">Category</th> |
|||
<th colspan="6">Product Name</th> |
|||
<th colspan="6" class="text-right">Create Date</th> |
|||
<th colspan="6" class="text-center">Product Cost |
|||
</th> |
|||
<th colspan="6" class="text-center">Location |
|||
</th> |
|||
<th colspan="6" class="text-center">On Hand Qty |
|||
</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_main_line_data" t-as="main"> |
|||
<tr class="text-center" style="font-weight: bold;"> |
|||
<td colspan="6"> |
|||
<span t-esc="main['category']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['name']['en_US']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['create_date']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<t t-if="main['value_float']"> |
|||
<span t-esc="main['value_float']"/> |
|||
</t> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['location']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['quantity']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- Template for 'Report By Warehouse' --> |
|||
<template id="report_by_warehouse"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<span t-if="Filters.get('date_to')"> |
|||
<strong>To:</strong> |
|||
<t t-esc="Filters['date_to']"/> |
|||
</span> |
|||
<div> |
|||
<div style="width:100%;"> |
|||
<div style="text-align:centre;" class="row"> |
|||
|
|||
<div class="col-2"> |
|||
<strong>Report Type:</strong> |
|||
<t t-esc="Filters.get('report_type')"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<br/> |
|||
<table class="table table-sm table-reports"> |
|||
<thead> |
|||
<tr> |
|||
<th colspan="6" class="text-left">Warehouse</th> |
|||
<th colspan="6" class="text-center">Date</th> |
|||
<th colspan="6" class="text-right">Company</th> |
|||
<th colspan="6" class="text-right">Location</th> |
|||
<th colspan="6" class="text-center">Route</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_main_line_data" t-as="main"> |
|||
<tr style="font-weight: bold;"> |
|||
<td colspan="6"> |
|||
<span t-esc="main['name']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['write_date']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['company']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['location']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['route']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- Template for 'Report By Location' --> |
|||
<template id="report_by_location"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<span t-if="Filters.get('date_to')"> |
|||
<strong>To:</strong> |
|||
<t t-esc="Filters['date_to']"/> |
|||
</span> |
|||
<div> |
|||
<div style="width:100%;"> |
|||
<div style="text-align:centre;" class="row"> |
|||
<div class="col-2"> |
|||
<strong>Report Type:</strong> |
|||
<t t-esc="Filters.get('report_type')"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<br/> |
|||
<table class="table table-sm table-reports"> |
|||
<thead> |
|||
<tr> |
|||
<th colspan="6">Location</th> |
|||
<th colspan="6">Location Type</th> |
|||
<th colspan="6">Create Date</th> |
|||
<th colspan="6">Company</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_main_line_data" t-as="main"> |
|||
<tr style="font-weight: bold;"> |
|||
<td colspan="6"> |
|||
<span t-esc="main['complete_name']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['location_type']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['create_date']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['company']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
</odoo> |
|
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 767 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 760 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 697 KiB |
After Width: | Height: | Size: 1.1 MiB |
After Width: | Height: | Size: 250 KiB |
After Width: | Height: | Size: 218 KiB |
After Width: | Height: | Size: 193 KiB |
After Width: | Height: | Size: 244 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 309 KiB |
After Width: | Height: | Size: 880 KiB |
After Width: | Height: | Size: 746 KiB |
After Width: | Height: | Size: 35 KiB |
@ -0,0 +1,975 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8"/> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
|||
<title>Inventory All In One Report Generator</title> |
|||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" |
|||
rel="stylesheet"/> |
|||
<link rel="preconnect" href="https://fonts.googleapis.com"> |
|||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
|||
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" |
|||
rel="stylesheet"> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/> |
|||
<link rel="stylesheet" |
|||
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"/> |
|||
<style> |
|||
:root { |
|||
--primary-color: #7f54b3; |
|||
--bg-white: #fff; |
|||
--text-color: #121212; |
|||
--text-color-light: #64728f; |
|||
} |
|||
|
|||
body { |
|||
font-family: "Montserrat", sans-serif; |
|||
} |
|||
|
|||
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { |
|||
color: #121212; |
|||
font-family: Montserrat; |
|||
font-size: 16px !important; |
|||
font-weight: 500 !important; |
|||
border-radius: 30px; |
|||
line-height: normal; |
|||
text-transform: capitalize; |
|||
background-color: #F5F5F5; |
|||
border: none; |
|||
margin-bottom: 0; |
|||
padding: 12px 24px; |
|||
} |
|||
|
|||
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { |
|||
border-color: transparent; |
|||
isolation: isolate; |
|||
} |
|||
|
|||
.nav-tabs .nav-link:focus-visible { |
|||
border-color: transparent; |
|||
box-shadow: none; |
|||
} |
|||
|
|||
/* owl-carosel */ |
|||
.owl-carousel .owl-nav { |
|||
position: absolute; |
|||
top: 42%; |
|||
width: 100%; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
transform: translateY(-42%); |
|||
} |
|||
|
|||
.owl-carousel .owl-nav button.owl-prev { |
|||
position: absolute; |
|||
right: -36px; |
|||
font-size: 28px; |
|||
background-color: #e4e4e4; |
|||
border-radius: 20px; |
|||
width: 40px; |
|||
height: 40px; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
} |
|||
|
|||
.owl-carousel .owl-nav button.owl-next { |
|||
position: absolute; |
|||
left: -36px; |
|||
font-size: 28px; |
|||
background-color: #e4e4e4; |
|||
border-radius: 20px; |
|||
width: 40px; |
|||
height: 40px; |
|||
display: flex; |
|||
justify-content: center; |
|||
align-items: center; |
|||
|
|||
} |
|||
|
|||
</style> |
|||
</head> |
|||
<body> |
|||
<!-- overview --> |
|||
<div class="container"> |
|||
<div class="my-5"> |
|||
<!-- button tab --> |
|||
<!-- --> |
|||
<!-- version support --> |
|||
<section> |
|||
<div class="my-3 d-flex align-items-center justify-content-end"> |
|||
<div class="text-center" |
|||
style="background-color:#017E84 !important; font-size:0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
|||
Community |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#875A7B !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
|||
Enterprise |
|||
</div> |
|||
<div class="text-center" |
|||
style="background-color:#7C7BAD !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
|||
Odoo.sh |
|||
</div> |
|||
</div> |
|||
<div class="tab-content" id="myTabContent"> |
|||
<!-- description --> |
|||
<div class="tab-pane fade show active" id="home" role="tabpanel" |
|||
aria-labelledby="home-tab"> |
|||
<div class="position-relative" |
|||
style="border-radius: 16px; background: #f8f8f8; padding: 20px 0;"> |
|||
<div class="row " style=" |
|||
padding: 2rem 0rem 0 !important; |
|||
"> |
|||
<div class="col-lg-8 mx-auto gap-4 d-flex flex-column align-items-center"> |
|||
<p class="my-1 text-center text-uppercase" |
|||
style=" |
|||
letter-spacing: 4px !important; |
|||
color: #7f54b3; |
|||
font-weight: bold; |
|||
text-align: center; |
|||
font-size: 14px; |
|||
font-weight: 600; |
|||
line-height: 15.96px; |
|||
text-transform: uppercase; |
|||
"> |
|||
Get Dynamic Inventory Report. |
|||
</p> |
|||
<h1 class="text-center text-uppercase my-0" |
|||
style=" |
|||
color: #121212; |
|||
font-size: 46px; |
|||
font-weight: 700; |
|||
line-height: normal; |
|||
"><span>Inventory All In One Report Generator</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-lg-12 d-flex justify-content-center align-items-center" |
|||
style="margin: 3rem 0;"> |
|||
<img src="./assets/icons/brand-pair.svg" |
|||
width="100%" |
|||
height="auto" |
|||
style="width: 50%" |
|||
class="img-responsive"/> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<a href="mailto:odoo@cybrosys.com" |
|||
target="_blank" |
|||
style="background-color: transparent;border-radius: 35px; |
|||
font-family: Montserrat; |
|||
display: inline-block; |
|||
padding: 7px 33px; |
|||
border: 1px solid #7f54b3; |
|||
color: #7f54b3; |
|||
text-decoration: none; |
|||
" |
|||
class="mx-1 mb-2 deep-1 deep_hover"> |
|||
<img class="img" |
|||
style="width: 24px" |
|||
src="./assets/icons/mail.svg"/> |
|||
<span class="pl-2" |
|||
style=" font-size: 16px; vertical-align: middle" |
|||
>Email Us</span |
|||
> |
|||
</a> |
|||
<a href="skype:cybroopenerp?chat" |
|||
target="_blank" |
|||
style=" |
|||
background-color: #7f289b; |
|||
font-family: Montserrat; |
|||
display: inline-block; |
|||
padding: 7px 33px; |
|||
border: 1px solid #7f289b; |
|||
border-radius: 35px; |
|||
text-decoration: none; |
|||
" |
|||
class="mx-1 mb-2 deep-1 deep_hover"> |
|||
<img |
|||
class="img" |
|||
style="width: 24px" |
|||
src="./assets/icons/skype-fill.svg" |
|||
/> |
|||
<span |
|||
class="pl-2" |
|||
style="color: #fff; font-size: 16px; vertical-align: middle" |
|||
>Skype Us</span |
|||
> |
|||
</a> |
|||
</div> |
|||
<div class="d-flex justify-content-center mt-2"> |
|||
<img src="./assets/screenshots/hero.gif" |
|||
class="w-100" |
|||
style="z-index: 3; height: auto;"> |
|||
</div> |
|||
</div> |
|||
<div class="position-absolute bottom-0" |
|||
style="z-index: 1; width: 100%;"> |
|||
<img src="./assets/icons/banner-bg.svg" |
|||
class="img-fluid w-100"> |
|||
</div> |
|||
<div class="position-absolute bottom-0 end-0" |
|||
style=" z-index: 2;"> |
|||
<img src="./assets/icons/patter.svg"> |
|||
</div> |
|||
</div> |
|||
<section class="oe_container pb-5"> |
|||
<div class="mt64 mb64"> |
|||
<div class="col-sm-12 py-4"> |
|||
|
|||
<div class="alert alert-primary mt-4" |
|||
style="color: #000;background-color: #f8f8f8;border: 1px solid #dcdcdc;border-radius: 16px;"> |
|||
<hr style="color: #888;"> |
|||
This app helps to print report of inventory on multiple condition. |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- key-highlight --> |
|||
<div class="" style="border-radius: 16px; |
|||
padding: 60px 40px; |
|||
border: 1px solid #EBEEF2; |
|||
background: #F5F5F7; |
|||
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25); "> |
|||
<div class="row"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
|||
<h2 style=" color: #121212; |
|||
text-align: center; |
|||
font-size: 40px; |
|||
font-weight: 700; |
|||
text-transform: uppercase; padding-bottom: 50px;">Key |
|||
Highlights</h2> |
|||
</div> |
|||
<div class="col-lg-6"> |
|||
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
|||
style="border-radius: 12px; border: 1px solid #B6BCCD; |
|||
background: #FFF;padding:32px "> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
|||
<img src="./assets/icons/feature-icon.svg" |
|||
class="img-responsive" |
|||
height="26px" |
|||
width="26px"> |
|||
</div> |
|||
<h5 class="m-0" |
|||
style="color:#000 !important; font-weight:bold"> |
|||
printing report you will get view in backend |
|||
odoo. |
|||
</h5> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-6"> |
|||
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
|||
style="border-radius: 12px; |
|||
border: 1px solid #B6BCCD; |
|||
background: #FFF;padding:32px "> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
|||
<img src="./assets/icons/feature-icon.svg" |
|||
class="img-responsive" |
|||
height="26px" |
|||
width="26px"> |
|||
</div> |
|||
<h5 class="m-0" |
|||
style="color:#000 !important; font-weight:bold"> |
|||
Print XLSX and PDF:Print the |
|||
required report in pdf or excel format.</h5> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!--code --> |
|||
<div class="my-5"> |
|||
<div class="position-relative" |
|||
style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px;"> |
|||
<div class="d-flex flex-column gap-4"> |
|||
<span class="wrapper-subtitle" |
|||
style="font-size: 40px; font-weight: 700; color: #fff;line-height: 60px; text-transform: capitalize; width: 450px; font-family: Montserrat;">Inventory All In One Report Generator</span> |
|||
<h3 class="wrapper-details" |
|||
style="font-size: 20px; font-weight: 400; color: #fff; line-height: 32px; "> |
|||
Are you ready to make your business more |
|||
organized? |
|||
<br> Improve now! |
|||
</h3> |
|||
<div class="d-flex gap-3"> |
|||
<a href="mailto:odoo@cybrosys.com" |
|||
class="shop-btn" style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
|||
border: 1px solid #ffffff33; |
|||
background-color: #ffffff14; |
|||
backdrop-filter: blur(10px); color: #fff; padding: 12px 16px 12px 16px; text-decoration: none;"> |
|||
<span style="border-radius: 12px; |
|||
background-color: #ffffff1a; |
|||
backdrop-filter: blur(6px);padding: 12px; "> |
|||
<img src="./assets/icons/banner-mail.svg"> |
|||
</span> |
|||
<span style="font-weight: 500;font-family: Montserrat;">odoo@cybrosys.com</span> |
|||
</a> |
|||
<a href="tel:+91 9074270811" |
|||
class="shop-btn" |
|||
style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
|||
border: 1px solid #ffffff33; |
|||
background-color: #ffffff14; |
|||
backdrop-filter: blur(10px); color: #fff; padding: 12px 22px 12px 18px; text-decoration: none;"> |
|||
<span style="border-radius: 12px; |
|||
background-color: #ffffff1a; |
|||
backdrop-filter: blur(6px);padding: 12px;"> |
|||
<img src="./assets/icons/banner-call.svg"> |
|||
</span> |
|||
<span style="font-weight: 500;font-family: Montserrat;">+91 9074270811</span> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="position-absolute bottom-0 end-0"> |
|||
<img src="./assets/icons/banner-pattern.svg" |
|||
style="width: 540px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- end-code --> |
|||
<!-- --> |
|||
<!-- screenshot and other --> |
|||
|
|||
<div class="mb-4 bg-white" |
|||
style=" border: 1px solid #EBEEF2; border-radius: 6px; box-shadow: 0px 8px 20px -4px rgba(0, 0, 0, 0.10); border: 1px solid #EBEEF2;"> |
|||
<div> |
|||
<ul class="nav nav-tabs justify-content-center bg-white py-2" |
|||
id="myTab" role="tablist" |
|||
style="border-radius: 6px 6px 0 0;"> |
|||
<li class="nav-item"> |
|||
<a aria-controls="overview" |
|||
aria-bs-selected="true" |
|||
class="nav-link active" |
|||
data-bs-toggle="tab" |
|||
href="#overview" id="overview-tab" |
|||
role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px"> |
|||
Screenshots</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a aria-controls="feature" |
|||
aria-bs-selected="false" |
|||
class="nav-link py-2" |
|||
data-bs-toggle="tab" |
|||
href="#feature" id="feature-tab" |
|||
role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px">Features</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a aria-controls="faq" |
|||
aria-bs-selected="false" |
|||
class="nav-link" data-bs-toggle="tab" |
|||
href="#faq" id="faq-tab" role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px"> |
|||
FAQs</a> |
|||
</li> |
|||
<li class="nav-item"> |
|||
<a aria-controls="releases" |
|||
aria-bs-selected="false" class="nav-link" |
|||
data-bs-toggle="tab" href="#releases" |
|||
id="releases-tab" role="tab" |
|||
style="color:#121212; font-weight:500; font-size:16px">Releases</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
<div class="tab-content p-md-5 p-2 py-3" |
|||
id="myTabContent"> |
|||
<div aria-labelledby="overview-tab" |
|||
class="tab-pane fade show active" id="overview" |
|||
role="tabpanel"> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px"> |
|||
<img alt="acc_bg" |
|||
class="w-100 h-100 position-absolute img-fluid left_0" |
|||
loading="lazy" |
|||
src="//apps.odoocdn.com/apps/assets/17.0/ks_dashboard_ninja/ai-img/o3.png?007008f" |
|||
style=""> |
|||
</div> |
|||
<!-- screenshots section--> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
|||
font-weight: 700;"> |
|||
<span style="color:#121212; font-size:calc(1.1rem + 1vw)">All In One Inventory Report Menu. |
|||
</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" |
|||
class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/1.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12 mb-4"> |
|||
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:#64728f"> |
|||
Inventory Report Based On Product Categories. |
|||
</p> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" |
|||
class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/2.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
|||
font-weight: 700;"> |
|||
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> |
|||
Inventory Report Based On Location. |
|||
</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" |
|||
class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/3.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
|||
font-weight: 700;"> |
|||
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> |
|||
Inventory Report Based On Transfers. |
|||
</span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" |
|||
class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/4.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="position-relative mb-4" |
|||
style="border-radius:10px; background-color:#f4f4f4"> |
|||
<div class="p-md-5 p-3 position-relative"> |
|||
<div class="row"> |
|||
<div class="col-md-12"> |
|||
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
|||
font-weight: 700;"> |
|||
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> |
|||
Inventory Report Based On Location. </span> |
|||
</h1> |
|||
</div> |
|||
<div class="col-md-12 text-center"> |
|||
<div class="d-inline-block p-3 shadow-sm" |
|||
style="background-color:#fff; border-radius:10px"> |
|||
<img alt="" |
|||
class="img-fluid" |
|||
loading="lazy" |
|||
src="./assets/screenshots/5.png" |
|||
style="min-height: 1px;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div aria-labelledby="feature-tab" |
|||
class="tab-pane fade show py-1" id="feature" |
|||
role="tabpanel"> |
|||
<div class="row py-4"> |
|||
<!-- Features Section --> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex flex-column align-items-start h-100" |
|||
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
|||
<div class="d-flex align-items-center justify-content-center"> |
|||
<div class="d-flex align-items-center justify-content-center " |
|||
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
|||
<i class="fa fa-star " |
|||
style="color:#fff; font-size:14px"></i> |
|||
</div> |
|||
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
|||
printing report you will get view in backend |
|||
odoo. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex flex-column align-items-start h-100" |
|||
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
|||
<div class="d-flex align-items-center justify-content-center"> |
|||
<div class="d-flex align-items-center justify-content-center " |
|||
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
|||
<i class="fa fa-star " |
|||
style="color:#fff; font-size:14px"></i> |
|||
</div> |
|||
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px"> |
|||
Print XLSX and PDF:Print the |
|||
required report in pdf or excel format.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div aria-labelledby="faq-tab" class="tab-pane fade show py-1" id="faq" role="tabpanel"> |
|||
<div class="row py-4"> |
|||
<div class="col-md-12"> |
|||
<h2 class="text-center" style="font-weight: 700; font-size: calc(1.1rem + 1vw);"> |
|||
Frequently Asked Questions (FAQ) |
|||
</h2> |
|||
</div> |
|||
<div class="col-md-12 mt-4"> |
|||
<div class="accordion" id="faqAccordion"> |
|||
|
|||
<!-- FAQ Item 1 --> |
|||
<div class="accordion-item"> |
|||
<h2 class="accordion-header" id="faqHeading1"> |
|||
<button class="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target="#faqCollapse1" aria-expanded="true" aria-controls="faqCollapse1"> |
|||
What is the purpose of this module? |
|||
</button> |
|||
</h2> |
|||
<div id="faqCollapse1" class="accordion-collapse collapse show" aria-labelledby="faqHeading1" data-bs-parent="#faqAccordion"> |
|||
<div class="accordion-body"> |
|||
This module helps generate detailed inventory reports based on product categories, locations, and transfers, with support for PDF and Excel formats. |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- FAQ Item 2 --> |
|||
<div class="accordion-item"> |
|||
<h2 class="accordion-header" id="faqHeading2"> |
|||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faqCollapse2" aria-expanded="false" aria-controls="faqCollapse2"> |
|||
Can I export reports to other formats? |
|||
</button> |
|||
</h2> |
|||
<div id="faqCollapse2" class="accordion-collapse collapse" aria-labelledby="faqHeading2" data-bs-parent="#faqAccordion"> |
|||
<div class="accordion-body"> |
|||
Yes, the module supports exporting reports to both PDF and Excel (XLSX) formats for easy sharing and analysis. |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- FAQ Item 3 --> |
|||
<div class="accordion-item"> |
|||
<h2 class="accordion-header" id="faqHeading3"> |
|||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faqCollapse3" aria-expanded="false" aria-controls="faqCollapse3"> |
|||
How do I access these inventory reports? |
|||
</button> |
|||
</h2> |
|||
<div id="faqCollapse3" class="accordion-collapse collapse" aria-labelledby="faqHeading3" data-bs-parent="#faqAccordion"> |
|||
<div class="accordion-body"> |
|||
Inventory reports can be accessed through the backend dashboard under the 'Inventory Reports' menu. |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- FAQ Item 4 --> |
|||
<div class="accordion-item"> |
|||
<h2 class="accordion-header" id="faqHeading4"> |
|||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#faqCollapse4" aria-expanded="false" aria-controls="faqCollapse4"> |
|||
Is this module compatible with my Odoo version? |
|||
</button> |
|||
</h2> |
|||
<div id="faqCollapse4" class="accordion-collapse collapse" aria-labelledby="faqHeading4" data-bs-parent="#faqAccordion"> |
|||
<div class="accordion-body"> |
|||
This module is designed for Odoo version 17.0. Please ensure you are using the correct version to avoid compatibility issues. |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div aria-labelledby="releases-tab" |
|||
class="tab-pane fade show" id="releases" |
|||
role="tabpanel"> |
|||
<!-- Release Notes --> |
|||
<div class="row pt-5 m-0"> |
|||
<div class="col-md-3"> |
|||
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> |
|||
Latest Release 18.0.1.0.0 |
|||
</h4> |
|||
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> |
|||
13th January, 2025 |
|||
</span> |
|||
</div> |
|||
<div class="col-md-8"> |
|||
<div style="padding:0 0 40px"> |
|||
<div style="margin:0 0 10px"> |
|||
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> |
|||
Add |
|||
</div> |
|||
</div> |
|||
<div class="d-flex m-0" |
|||
style="color:#7A7979;"> |
|||
<ul class="pl-3 mb-0"> |
|||
<li> Initial Commit for |
|||
Inventory All In One Report Generator |
|||
</li> |
|||
|
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- --> |
|||
<!-- related post --> |
|||
<!-- --> |
|||
<section class="oe_container mt32"> |
|||
<h2 style="color: #091E42;font-family: "Montserrat";text-align: center;margin: 25px auto;text-transform: uppercase;" |
|||
class="oe_slogan"> |
|||
<b>Related Products</b> |
|||
</h2> |
|||
<div id="demo" class="row carousel slide mt64 mb32" |
|||
data-bs-ride="carousel"> |
|||
<!-- The slideshow --> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active"> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float: left; padding: 10px;"> |
|||
<a href="https://apps.odoo.com/apps/modules/18.0/base_accounting_kit" |
|||
target="_blank" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
|||
class="shadow-sm"> |
|||
<img class="img img-responsive center-block" |
|||
style=" max-width: 100%;" |
|||
src="./assets/modules/1.jpg"/> |
|||
<h4 class="mt0 text-truncate" |
|||
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
|||
Odoo 18 Full Accounting |
|||
Kit</h4> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float: left; padding: 10px;"> |
|||
<a href="https://apps.odoo.com/apps/modules/18.0/ohrms_core" |
|||
target="_blank" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
|||
class="shadow-sm"> |
|||
<img class="img img-responsive center-block" |
|||
style=" max-width: 100%;" |
|||
src="./assets/modules/2.jpg"/> |
|||
<h4 class="mt0 text-truncate" |
|||
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
|||
Open HRMS Core</h4> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float: left; padding: 10px;"> |
|||
<a href="https://apps.odoo.com/apps/modules/18.0/woo_commerce" |
|||
target="_blank" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border-radius: 6px;padding: 16px; border: 1px solid #cbcbcb;" |
|||
class="shadow-sm"> |
|||
<img class="img img-responsive center-block" |
|||
style=" max-width: 100%;" |
|||
src="./assets/modules/3.jpg"/> |
|||
<h4 class="mt0 text-truncate" |
|||
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
|||
Odoo WooCommerce |
|||
Connector </h4> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item"> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float: left; padding: 10px;"> |
|||
<a href="https://apps.odoo.com/apps/modules/18.0/dynamic_accounts_report" |
|||
target="_blank" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
|||
class="shadow-sm"> |
|||
<img class="img img-responsive center-block" |
|||
style=" max-width: 100%;" |
|||
src="./assets/modules/4.png"/> |
|||
<h4 class="mt0 text-truncate" |
|||
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
|||
Odoo18 Dynamic Accounting |
|||
Reports</h4> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float: left; padding: 10px;"> |
|||
<a href="https://apps.odoo.com/apps/modules/18.0/hide_menu_user" |
|||
target="_blank" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
|||
class="shadow-sm"> |
|||
<img class="img img-responsive center-block" |
|||
style=" max-width: 100%;" |
|||
src="./assets/modules/5.jpg"/> |
|||
<h4 class="mt0 text-truncate" |
|||
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
|||
Hide Any Menu User Wise</h4> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float: left; padding: 10px;"> |
|||
<a href="https://apps.odoo.com/apps/modules/18.0/odoo_dynamic_dashboard" |
|||
target="_blank" |
|||
style="color: #000; text-decoration: none;"> |
|||
<div style="border-radius: 6px; padding: 16px; border: 1px solid #cbcbcb;" |
|||
class="shadow-sm"> |
|||
<img class="img img-responsive center-block" |
|||
style=" max-width: 100%;" |
|||
src="./assets/modules/6.gif"/> |
|||
<h4 class="mt0 text-truncate" |
|||
style="text-align:center;width:100% margin-bottom: 8px; font-weight: 600; padding-top: 16px; text-decoration:none;font-size: 18px; padding-bottom: 8px; margin-bottom: 0px"> |
|||
Odoo Dynamic Dashboard</h4> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- Left and right controls --> |
|||
<a class="carousel-control-prev" href="#demo" |
|||
data-bs-slide="prev" |
|||
style="margin-left: -30px;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="#demo" |
|||
data-bs-slide="next" |
|||
style="margin-right: -30px;width: 35px;color: #000;"> |
|||
<span class="carousel-control-next-icon"> |
|||
<i class="fa fa-chevron-right" style="font-size:24px"></i> |
|||
</span> |
|||
</a> |
|||
</div> |
|||
</section> |
|||
<!-- service-section --> |
|||
|
|||
<section id="services" class="mt-5" style="border-radius: 16px; |
|||
border: 1px solid #EBEEF2; |
|||
background: var(--Neutral-N0, #FFF); |
|||
padding: 60px 40px; |
|||
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25);"> |
|||
<div class="text-center mt-4"><h3 class="mb-0" style="color: #000; |
|||
text-align: center; |
|||
font-family: Montserrat; |
|||
font-size: 40px; |
|||
font-style: normal; |
|||
font-weight: 700; |
|||
line-height: normal; |
|||
text-transform: uppercase; |
|||
padding-bottom: 50px;"> |
|||
Our Services</h3></div> |
|||
<div class="row mt-3"> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#FFE2E5; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#FA5A7D; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/gear.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;"> Odoo Customization</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#FFF4DE; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#FF947A; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/wrench-icon.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;"> Odoo Implementation</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#DCFCE7; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#3CD856; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/life-ring-icon.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Support</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#F3E8FF; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#BF83FF; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/arrows-repeat.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Migration</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#F1F9FF; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#01649C; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/puzzle-piece-icon.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo integration</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#EDF8ED; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
|
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#69CC70; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/odoo-consultancy.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Consultancy</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#F1F6FF; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
|
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#2E4556; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/odoo-licencing.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Odoo Licensing</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-lg-3 col-sm-12 mb-3"> |
|||
<a href="#" style="text-decoration:none"> |
|||
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
|||
style="font-size:25px; font-weight:bold;background-color:#FAF6EA; margin:auto; gap: 16px; border-radius: 8px;"> |
|||
|
|||
<div class="d-flex justify-content-center align-items-center" |
|||
style="background-color:#FCD12C; border-radius:50%; height:56px; width:56px"> |
|||
<img src="./assets/icons/hire-odoo.svg" |
|||
class="img-responsive" |
|||
height="28px" width="28px"> |
|||
</div> |
|||
<span style="font-size: 18px; |
|||
color: var(--text-color); |
|||
font-weight: 600;">Hire Odoo Developer</span> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
</div> |
|||
<!-- licence --> |
|||
<div class="tab-pane fade" id="profile" role="tabpanel" |
|||
aria-labelledby="profile-tab"> |
|||
<div class="px-5"> |
|||
.... |
|||
</div> |
|||
</div> |
|||
<!-- --> |
|||
</div> |
|||
</section> |
|||
<!-- --> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> |
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" |
|||
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" |
|||
crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> |
|||
<script> |
|||
$('.owl-carousel').owlCarousel({ |
|||
rtl: true, |
|||
loop: true, |
|||
margin: 10, |
|||
nav: true, |
|||
responsive: { |
|||
0: { |
|||
items: 1 |
|||
}, |
|||
600: { |
|||
items: 3 |
|||
}, |
|||
1000: { |
|||
items: 3 |
|||
} |
|||
} |
|||
}) |
|||
</script> |
|||
</html> |
@ -0,0 +1,57 @@ |
|||
.time_range_pr { |
|||
width: 125px; |
|||
border: 2px solid #ccc; |
|||
border-radius: 5px; |
|||
padding: 10px; |
|||
} |
|||
.apply_sale{ |
|||
margin-right: 5px; |
|||
padding: 4px; |
|||
} |
|||
a.dropdown-toggle.report-type { |
|||
margin: 10px; |
|||
} |
|||
.search { |
|||
border: 2px solid #ccc; |
|||
width: 257px; |
|||
margin-right: 10px; |
|||
margin-left: 10px; |
|||
border-radius: 5px; |
|||
} |
|||
.table_pr_head { |
|||
background-color: #7c7bad; |
|||
color: #fff; |
|||
padding: 20px; |
|||
margin: 20px; |
|||
height: 57px; |
|||
width: 100%; |
|||
border: 1px solid #000; |
|||
} |
|||
element.style { |
|||
top: 0px; |
|||
height: 42px; |
|||
color: white; |
|||
background-color: #7c7bad; |
|||
border-color: #7c7bad; |
|||
width: 100px; |
|||
} |
|||
tr.pr-line { |
|||
height: 48px; |
|||
} |
|||
tr.table_pr_head th { |
|||
font-size: 18px; |
|||
text-align: center; |
|||
} |
|||
.btn-secondary { |
|||
color: #000000; |
|||
background-color: #FFFFFF; |
|||
border-color: #FFFFFF; |
|||
color: #66598f; |
|||
PADDING: 0PX; |
|||
} |
|||
.table_view_pr { |
|||
overflow-y: scroll; |
|||
position: relative; |
|||
height: 800px; |
|||
max-width: 100%; |
|||
} |
@ -0,0 +1,204 @@ |
|||
/** @odoo-module */ |
|||
import { registry} from '@web/core/registry'; |
|||
import { useService } from "@web/core/utils/hooks"; |
|||
const { Component,useRef, onWillStart,onMounted} = owl |
|||
import { rpc } from "@web/core/network/rpc"; |
|||
import { _t } from "@web/core/l10n/translation"; |
|||
import { renderToElement } from "@web/core/utils/render"; |
|||
import { BlockUI } from "@web/core/ui/block_ui"; |
|||
import { download } from "@web/core/network/download"; |
|||
|
|||
export class InventoryReport extends Component { |
|||
/** |
|||
* Initializes the InventoryReport component. |
|||
*/ |
|||
setup() { |
|||
this.action = useService("action"); |
|||
self.initial_render = false; |
|||
this.table_view_pr = useRef('table_view_pr'); |
|||
this.date_from = useRef('date_from'); |
|||
this.date_to = useRef('date_to'); |
|||
this.report_type = useRef('report_type'); |
|||
this.report_res = useRef('report_res'); |
|||
this.dates = useRef('dates'); |
|||
onMounted(async () => { |
|||
var self = this; |
|||
self.initial_render = true; |
|||
await rpc('/web/dataset/call_kw/dynamic.inventory.report/create', { |
|||
model: 'dynamic.inventory.report', |
|||
method: 'create', |
|||
args: [{}], |
|||
kwargs: {}, |
|||
}).then(async function(res) { |
|||
self.wizard_id = res; |
|||
await self.load_data(self.initial_render); |
|||
self.apply_filter(); |
|||
}) |
|||
}); |
|||
} |
|||
/** |
|||
* Loads data for the report. |
|||
* |
|||
* @param {boolean} initial_render - Indicates if it's the initial render. |
|||
*/ |
|||
async load_data(initial_render = true) { |
|||
var self = this; |
|||
await rpc('/web/dataset/call_kw/dynamic.inventory.report/inventory_report', { |
|||
model: 'dynamic.inventory.report', |
|||
method: 'inventory_report', |
|||
args: [ |
|||
[this.wizard_id] |
|||
], |
|||
kwargs: {}, |
|||
}).then(function(datas) { |
|||
if (datas['orders'] ) { |
|||
self.table_view_pr.el.innerHTML = ''; |
|||
self.table_view_pr.el.append(renderToElement('InventoryReportTable', { |
|||
filter: datas['filters'], |
|||
order: datas['orders'], |
|||
report_lines: datas['report_lines'], |
|||
main_lines: datas['report_main_line'], |
|||
this: self, |
|||
})) |
|||
} |
|||
}) |
|||
} |
|||
/** |
|||
* Applies filters to the report. |
|||
*/ |
|||
apply_filter() { |
|||
var self = this; |
|||
self.initial_render = false; |
|||
var filter_data_selected = {}; |
|||
|
|||
function setFilterValue(selector, key, target) { |
|||
var value =selector.el.value; |
|||
if (value) { |
|||
filter_data_selected[key] = value; |
|||
target.el.innerHTML = value; |
|||
} |
|||
} |
|||
setFilterValue(self.date_from, 'date_from', this.dates); |
|||
setFilterValue(self.date_to, 'date_to', this.dates); |
|||
if (filter_data_selected.date_from && filter_data_selected.date_to) { |
|||
self.dates.el.innerHTML = filter_data_selected.date_from + " to " + filter_data_selected.date_to; |
|||
} |
|||
if (self.report_type) { |
|||
var report_res = self.report_res; |
|||
filter_data_selected.report_type = self.report_type.el.value; |
|||
report_res.el.innerHTML = self.report_type.el.options[self.report_type.el.selectedIndex].text || "report_by_order"; |
|||
} |
|||
rpc('/web/dataset/call_kw/dynamic.inventory.report/write', { |
|||
model: 'dynamic.inventory.report', |
|||
method: 'write', |
|||
args: [self.wizard_id, filter_data_selected], |
|||
kwargs: {}, |
|||
}).then(function(res) { |
|||
self.initial_render = false; |
|||
self.load_data(self.initial_render); |
|||
}); |
|||
} |
|||
/** |
|||
* Prints the report as a PDF. |
|||
* |
|||
* @param {Event} e - The event object. |
|||
*/ |
|||
print_pdf(e) { |
|||
e.preventDefault(); |
|||
var self = this; |
|||
var action_title = self._title; |
|||
rpc('/web/dataset/call_kw/dynamic.inventory.report/inventory_report', { |
|||
model: 'dynamic.inventory.report', |
|||
method: 'inventory_report', |
|||
args: [ |
|||
[self.wizard_id] |
|||
], |
|||
kwargs: {}, |
|||
}).then(function(data) { |
|||
var action = { |
|||
'type': 'ir.actions.report', |
|||
'report_type': 'qweb-pdf', |
|||
'report_name': 'inventory_report_generator.inventory_pdf_report', |
|||
'report_file': 'inventory_report_generator.inventory_pdf_report', |
|||
'data': { |
|||
'report_data': data |
|||
}, |
|||
'context': { |
|||
'active_model': 'inventory.report', |
|||
'landscape': 1, |
|||
'inventory_pdf_report': true |
|||
}, |
|||
'display_name': 'Inventory Report', |
|||
}; |
|||
return self.action.doAction(action); |
|||
}); |
|||
} |
|||
/** |
|||
* Opens a view for a specific order. |
|||
* |
|||
* @param {Event} ev - The event object. |
|||
*/ |
|||
button_view_order(ev) { |
|||
ev.preventDefault(); |
|||
var self = this; |
|||
var context = {}; |
|||
this.action.doAction({ |
|||
name: _t("Transfer Order"), |
|||
type: 'ir.actions.act_window', |
|||
res_model: 'stock.picking', |
|||
view_type: 'form', |
|||
domain: [ |
|||
['id', '=', ev.target.id] |
|||
], |
|||
views: [ |
|||
[false, 'list'], |
|||
[false, 'form'] |
|||
], |
|||
target: 'current' |
|||
}); |
|||
} |
|||
/** |
|||
* Exports the report data as an XLSX file. |
|||
*/ |
|||
print_xlsx() { |
|||
var self = this; |
|||
rpc('/web/dataset/call_kw/dynamic.inventory.report/inventory_report', { |
|||
model: 'dynamic.inventory.report', |
|||
method: 'inventory_report', |
|||
args: [ |
|||
[self.wizard_id] |
|||
], |
|||
kwargs: {}, |
|||
}).then(function(data) { |
|||
var action = { |
|||
'data': { |
|||
'model': 'dynamic.inventory.report', |
|||
'options': JSON.stringify(data['orders']), |
|||
'output_format': 'xlsx', |
|||
'report_data': JSON.stringify(data['report_lines']), |
|||
'report_name': 'Inventory Report', |
|||
'dfr_data': JSON.stringify(data), |
|||
}, |
|||
}; |
|||
self.downloadXlsx(action); |
|||
}); |
|||
} |
|||
/** |
|||
* Downloads the XLSX report. |
|||
* |
|||
* @param {Object} action - The action data for downloading. |
|||
*/ |
|||
async downloadXlsx(action) { |
|||
if (action['data']['output_format']) { |
|||
BlockUI; |
|||
await download({ |
|||
url: '/inventory_dynamic_xlsx_reports', |
|||
data: action.data, |
|||
complete: () => unblockUI, |
|||
error: (error) => self.call('crash_manager', 'rpc_error', error), |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
InventoryReport.template = "InventoryReport" |
|||
registry.category("actions").add("inv_r", InventoryReport) |
@ -0,0 +1,364 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<templates> |
|||
<!-- Inventory Report Template --> |
|||
<t t-name="InventoryReport"> |
|||
<div> |
|||
<div> |
|||
<center> |
|||
<h1 style="margin: 20px;">Inventory Report</h1> |
|||
</center> |
|||
</div> |
|||
<div> |
|||
<div class="filter_view_pr"> |
|||
<t t-call="InventoryFilterView"/> |
|||
</div> |
|||
</div> |
|||
<div> |
|||
<div class="table_view_pr" style="width: 95%; margin: auto;" t-ref="table_view_pr"/> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
<!-- Inventory Filter View Template --> |
|||
<t t-name="InventoryFilterView"> |
|||
<div style="display: flex; margin-right: 10px; margin-left: 10px;justify-content:space-between"> |
|||
<div class="sub_container_left" |
|||
style="width: 285px; margin-left: 36px;"> |
|||
<div class="row report_print"> |
|||
<button type="button" class="btn btn-primary" |
|||
t-on-click="(e) => this.print_pdf(e)" id="pdf" |
|||
style="top: 0px; height: 42px; color: white; background-color: #7c7bad; border-color: #7c7bad; width: 127px; margin-right:4px;"> |
|||
Print (PDF) |
|||
</button> |
|||
<button type="button" class="btn btn-primary" id="xlsx" |
|||
t-on-click="() => this.print_xlsx()" |
|||
style="top: 0px; height: 42px; color: white; background-color: #7c7bad; border-color: #7c7bad; width: 127px;"> |
|||
Export (XLSX) |
|||
</button> |
|||
</div> |
|||
</div> |
|||
<div style="margin-bottom: 40px;display: flex; margin-right:10px;"> |
|||
<div class="dropdown"> |
|||
<button class="btn btn-secondary dropdown-toggle time_range_pr" |
|||
type="button" id="date_chose" |
|||
data-bs-toggle="dropdown" aria-expanded="false" |
|||
style="height:33px;width:150px;align-items:center;display:flex;"> |
|||
<span class="fa fa-calendar" title="Dates" role="img" |
|||
aria-label="Dates" |
|||
style="display:block;margin-right:5px;"/> |
|||
Date Range |
|||
</button> |
|||
<div class="dropdown-menu" role="menu" |
|||
aria-labelledby="date_chose"> |
|||
<div class="form-group" |
|||
style="margin-left:10px; margin-right:10px;"> |
|||
<label class="" for="date_from">Start Date : |
|||
</label> |
|||
<input type="date" id="date_from" t-ref="date_from" |
|||
class="form-control"/> |
|||
<label class="" for="date_to">End Date :</label> |
|||
<input type="date" id="date_to" t-ref="date_to" |
|||
class="form-control"/> |
|||
</div> |
|||
</div> |
|||
<span id="dates" t-ref="dates"/> |
|||
</div> |
|||
<div class="search-Result-Selection search" |
|||
style="display:flex;"> |
|||
<div class="dropdown" |
|||
style="border=2px;width:100%;margin-right:10px;border-radius:5px;"> |
|||
<a class="btn btn-secondary dropdown-togglereport-type" |
|||
href="#" role="button" id="dropdownMenuLink" |
|||
data-bs-toggle="dropdown" aria-expanded="false"> |
|||
<span class="fa fa-book"/> |
|||
<span class="low_case">Report Type :</span> |
|||
</a> |
|||
<select id="selection" |
|||
class="dropdown-menu report_type" |
|||
name="states[]" t-ref="report_type"> |
|||
<div role="separator" class="dropdown-divider"/> |
|||
<option value="report_by_transfers" selected=""> |
|||
Report By Transfers |
|||
</option> |
|||
<option value="report_by_categories">Report By |
|||
Categories |
|||
</option> |
|||
<option value="report_by_warehouse">Report By |
|||
Warehouse |
|||
</option> |
|||
<option value="report_by_location">Report By |
|||
Location |
|||
</option> |
|||
</select> |
|||
<span id="report_res" t-ref="report_res"/> |
|||
</div> |
|||
</div> |
|||
<div class="row report_print" |
|||
style="margin-left:4px; margin-right: 4px;"> |
|||
<button type="button" id="apply_filter" |
|||
t-on-click="() => this.apply_filter()" |
|||
class="btn btn-primary"> |
|||
Apply |
|||
</button> |
|||
</div> |
|||
<div class="row report_print" style="margin-left:4px;"> |
|||
<button class="btn btn-danger g-col-6 p-2" |
|||
onclick="location.reload()"> |
|||
Reset |
|||
</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
<!-- Inventory Report Table Template --> |
|||
<t t-name="InventoryReportTable"> |
|||
<div t-if="order.report_type == 'report_by_transfers'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_pr_head"> |
|||
<th>Reference</th> |
|||
<th class="mon_fld">Scheduled Date</th> |
|||
<th class="mon_fld">Source Document</th> |
|||
<th class="mon_fld">Company</th> |
|||
<th class="mon_fld">Delivery Address</th> |
|||
<th class="mon_fld">State</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_lines" |
|||
t-as="dynamic_inventory_report" |
|||
t-key="dynamic_inventory_report"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="pr-line" |
|||
t-att-data-account-id="dynamic_inventory_report['id']" |
|||
t-attf-data-target=".a{{dynamic_inventory_report['id']}}"> |
|||
<td> |
|||
<t t-if="dynamic_inventory_report['id']"> |
|||
<div class="dropdown dropdown-toggle text-center"> |
|||
<a data-toggle="dropdown" href="#" |
|||
id="table_toggle_btn" |
|||
data-bs-toggle="dropdown" |
|||
aria-expanded="false"> |
|||
<span class="caret"/> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['name']"/> |
|||
</span> |
|||
</a> |
|||
<ul class="dropdown-menu" |
|||
role="menu" |
|||
aria-labelledby="table_toggle_btn"> |
|||
<li> |
|||
<a class="view_transfer_order" |
|||
tabindex="-1" href="#" |
|||
t-on-click="(ev) => this.button_view_order(ev)" |
|||
t-att-id="dynamic_inventory_report['id']"> |
|||
View Transfer Order |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</t> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['scheduled_date']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['origin']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['company']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['partner']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['state']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<div t-if="order.report_type == 'report_by_categories'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_pr_head"> |
|||
<th>Category</th> |
|||
<th class="mon_fld">Product Name</th> |
|||
<th> |
|||
<span class="mon_fld">Create Date</span> |
|||
<br/> |
|||
<p class="tip_title">( Product creation date ) |
|||
</p> |
|||
</th> |
|||
<th class="mon_fld">Product Cost</th> |
|||
<th class="mon_fld">Location</th> |
|||
<th class="mon_fld">On Hand Qty</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_lines" |
|||
t-as="dynamic_inventory_report" |
|||
t-key="dynamic_inventory_report"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="pr-line text-center" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="dynamic_inventory_report['id']" |
|||
t-attf-data-target=".a{{dynamic_inventory_report['id']}}"> |
|||
<td style="border: 0px solid black;"> |
|||
<i class="fa fa-caret-down" role="img" |
|||
aria-label="Unfolded" title="Unfolded"/> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['category']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['name']['en_US']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['create_date']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-if="dynamic_inventory_report['value_float']" t-esc="dynamic_inventory_report['value_float'][1]"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['location']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['quantity']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<div t-if="order.report_type == 'report_by_warehouse'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_pr_head"> |
|||
<th>Warehouse</th> |
|||
<th class="mon_fld">Date</th> |
|||
<th class="mon_fld">Company</th> |
|||
<th class="mon_fld">Location</th> |
|||
<th class="mon_fld">Route</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_lines" |
|||
t-as="dynamic_inventory_report" |
|||
t-key="dynamic_inventory_report"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="pr-line text-center" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="dynamic_inventory_report['id']" |
|||
t-attf-data-target=".a{{dynamic_inventory_report['id']}}"> |
|||
<td style="border: 0px solid black;text-align:center;"> |
|||
<i class="fa fa-caret-down" role="img" |
|||
aria-label="Unfolded" title="Unfolded"/> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['name']"/> |
|||
<br/> |
|||
<t t-esc="dynamic_inventory_report['location']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['write_date']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['company']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['location']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['route']['en_US']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<div t-if="order.report_type == 'report_by_location'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
|
|||
<thead> |
|||
<tr class="table_pr_head"> |
|||
<th>Location</th> |
|||
<th class="mon_fld">Location Type</th> |
|||
<th class="mon_fld">Create Date</th> |
|||
<th class="mon_fld">Company</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_lines" |
|||
t-as="dynamic_inventory_report" |
|||
t-key="dynamic_inventory_report"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="pr-line text-center" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="dynamic_inventory_report['id']" |
|||
t-attf-data-target=".a{{dynamic_inventory_report['id']}}"> |
|||
<td style="border: 0px solid black;"> |
|||
<i class="fa fa-caret-down" role="img" |
|||
aria-label="Unfolded" title="Unfolded"/> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['complete_name']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['location_type']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['create_date']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="dynamic_inventory_report['company']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</templates> |
@ -0,0 +1,13 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo> |
|||
<!-- Define a new client action for the All-In-One Inventory Report --> |
|||
<record id="inventory_all_report_action" model="ir.actions.client"> |
|||
<field name="name">All In One Inventory Report</field> |
|||
<field name="tag">inv_r</field> |
|||
</record> |
|||
<!-- Create a menu item to access the All-In-One Inventory Report --> |
|||
<menuitem action="inventory_all_report_action" |
|||
parent="stock.menu_warehouse_report" |
|||
id="inventory_all_in_one_report" |
|||
name="All In One Inventory Report"/> |
|||
</odoo> |