diff --git a/inventory_report_generator/README.rst b/inventory_report_generator/README.rst new file mode 100644 index 000000000..f02066406 --- /dev/null +++ b/inventory_report_generator/README.rst @@ -0,0 +1,42 @@ +Inventory All In One Report Generator +===================================== +* Inventory All In One Dynamic Report For Odoo 14 community And Enterprise editions + +Installation +============ + - www.odoo.com/documentation/14.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v15) Sreelakshmi @ Cybrosys + + +Contacts +-------- +* Mail Contact : odoo@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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/inventory_report_generator/__init__.py b/inventory_report_generator/__init__.py new file mode 100644 index 000000000..4a84e60d7 --- /dev/null +++ b/inventory_report_generator/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models +from . import report +from . import controllers diff --git a/inventory_report_generator/__manifest__.py b/inventory_report_generator/__manifest__.py new file mode 100644 index 000000000..59b3b23c4 --- /dev/null +++ b/inventory_report_generator/__manifest__.py @@ -0,0 +1,47 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': 'Inventory All In One Report Generator', + 'version': '14.0.1.0.0', + 'summary': "Dynamic Inventory Report Generator", + 'description': "Dynamic Inventory Report Generator", + 'category': 'Inventory', + 'author': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['stock'], + 'data': [ + 'security/ir.model.access.csv', + 'views/inventory_report.xml', + 'views/templates.xml', + 'report/inventory_pdf_report.xml' + ], + 'qweb': [ + 'static/src/xml/inventory_report_view.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'auto_install': False, +} diff --git a/inventory_report_generator/controllers/__init__.py b/inventory_report_generator/controllers/__init__.py new file mode 100644 index 000000000..8edd0b2d2 --- /dev/null +++ b/inventory_report_generator/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import main diff --git a/inventory_report_generator/controllers/main.py b/inventory_report_generator/controllers/main.py new file mode 100644 index 000000000..322653f77 --- /dev/null +++ b/inventory_report_generator/controllers/main.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +import json +from odoo import http +from odoo.http import content_disposition, request +from odoo.addons.web.controllers.main import _serialize_exception +from odoo.tools import html_escape + + +class TBXLSXReportController(http.Controller): + @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): + uid = request.session.uid + report_obj = request.env[model].with_user(uid) + dfr_data = dfr_data + options = options + token = 'dummy-because-api-expects-one' + try: + if output_format == 'xlsx': + response = request.make_response( + None, + headers=[ + ('Content-Type', 'application/vnd.ms-excel'), + ('Content-Disposition', content_disposition(report_name + '.xlsx')) + ] + ) + report_obj.get_inventory_xlsx_report(options, response, report_data, dfr_data) + response.set_cookie('fileToken', token) + return response + except Exception as e: + se = _serialize_exception(e) + error = { + 'code': 200, + 'message': 'Odoo Server Error', + 'data': se + } + return request.make_response(html_escape(json.dumps(error))) diff --git a/inventory_report_generator/doc/RELEASE_NOTES.md b/inventory_report_generator/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..3c841bed0 --- /dev/null +++ b/inventory_report_generator/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 21.06.2022 +#### Version 14.0.1.0.0 +#### ADD +Initial Commit diff --git a/inventory_report_generator/models/__init__.py b/inventory_report_generator/models/__init__.py new file mode 100644 index 000000000..dcab515ab --- /dev/null +++ b/inventory_report_generator/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import inventory_report diff --git a/inventory_report_generator/models/inventory_report.py b/inventory_report_generator/models/inventory_report.py new file mode 100644 index 000000000..a616804c9 --- /dev/null +++ b/inventory_report_generator/models/inventory_report.py @@ -0,0 +1,414 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields, api +import io +import json + +try: + from odoo.tools.misc import xlsxwriter +except ImportError: + import xlsxwriter + + +class DynamicInventoryReport(models.Model): + _name = "dynamic.inventory.report" + + purchase_report = fields.Char(string="Purchase Report") + date_from = fields.Datetime(string="Date From") + date_to = fields.Datetime(string="Date to") + 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')], + default='report_by_transfers') + + @api.model + def inventory_report(self, option): + # orders = self.env['purchase.order'].search([]) + 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) + report = 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): + 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): + 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): + + res = super(DynamicInventoryReport, self).create(vals) + return res + + + def write(self, vals): + res = super(DynamicInventoryReport, self).write(vals) + return res + + def _get_report_sub_lines(self, data, report, date_from, date_to): + report_sub_lines = [] + new_filter = None + + 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 prop_date.res_id,prop_date.value_float,product_template.name,product_template.create_date,product_template.categ_id,product_product.id, stock_quant.quantity,product_category.name as category 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 + LEFT OUTER JOIN ir_property prop_date ON prop_date.res_id = CONCAT('product.product,', product_product.id) + left join product_category on product_category.id = product_template.categ_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_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_location_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_location_route on stock_location_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): + 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): + 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): + 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'}) + sub_heading = workbook.add_format( + {'align': 'center', 'bold': True, 'font_size': '10px', + 'border': 1, + 'border_color': 'black'}) + heading = workbook.add_format( + {'align': 'center', 'bold': True, 'font_size': '10px', + 'border': 2, + 'border_color': 'black'}) + txt = workbook.add_format({'font_size': '10px', 'border': 1}) + txt_l = workbook.add_format( + {'font_size': '10px', 'border': 1, 'bold': True}) + txt_v = workbook.add_format( + {'align': 'right', 'font_size': '10px', 'border': 1}) + sheet.merge_range('A2:H3', + 'Purchase Report', + head) + date_head = workbook.add_format({'align': 'center', 'bold': True, + 'font_size': '10px'}) + date_style = workbook.add_format({'align': 'center', + 'font_size': '10px'}) + + if filters.get('report_type') == 'report_by_transfers': + + sheet.merge_range('B5: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: + one_lst = [] + two_lst = [] + 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', 'On Hand Qty', heading) + # sheet.write('F7', 'Product Name', heading) + # sheet.write('G7', 'Price unit', heading) + # sheet.write('H7', 'Qty', heading) + # sheet.write('I7', 'Price Total', 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: + one_lst = [] + two_lst = [] + row += 1 + sheet.write(row, col, rec_data['category'], txt_l) + sheet.write(row, col + 1, rec_data['name'], txt_l) + sheet.write(row, col + 2, rec_data['create_date'], txt_l) + sheet.write(row, col + 3, rec_data['value_float'], txt_l) + sheet.write(row, col + 4, rec_data['quantity'], txt_l) + # sheet.write(row, col + 5, rec_data['product'], txt_l) + # sheet.write(row, col + 6, rec_data['price_unit'], txt_l) + # sheet.write(row, col + 7, rec_data['sum'], txt_l) + # sheet.write(row, col + 8, rec_data['amount_total'], 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: + one_lst = [] + two_lst = [] + 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'], 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: + one_lst = [] + two_lst = [] + 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() diff --git a/inventory_report_generator/report/__init__.py b/inventory_report_generator/report/__init__.py new file mode 100644 index 000000000..7cee049b6 --- /dev/null +++ b/inventory_report_generator/report/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import inventory_pdf_report diff --git a/inventory_report_generator/report/inventory_pdf_report.py b/inventory_report_generator/report/inventory_pdf_report.py new file mode 100644 index 000000000..7d7ba9dad --- /dev/null +++ b/inventory_report_generator/report/inventory_pdf_report.py @@ -0,0 +1,37 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import api, models, _ + + +class PurchaseOrder(models.AbstractModel): + _name = 'report.inventory_report_generator.inventory_pdf_report' + + @api.model + def _get_report_values(self, docids, data=None): + if self.env.context.get('inventory_pdf_report'): + + if data.get('report_data'): + data.update({'report_main_line_data': data.get('report_data')['report_lines'], + 'Filters': data.get('report_data')['filters'], + 'company': self.env.company, + }) + return data diff --git a/inventory_report_generator/report/inventory_pdf_report.xml b/inventory_report_generator/report/inventory_pdf_report.xml new file mode 100644 index 000000000..a0457d3b8 --- /dev/null +++ b/inventory_report_generator/report/inventory_pdf_report.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + Inventory All In One Report + dynamic.inventory.report + qweb-pdf + inventory_report_generator.inventory_pdf_report + inventory_report_generator.inventory_pdf_report + + + \ No newline at end of file diff --git a/inventory_report_generator/security/ir.model.access.csv b/inventory_report_generator/security/ir.model.access.csv new file mode 100644 index 000000000..145db76e6 --- /dev/null +++ b/inventory_report_generator/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_dynamic_inventory_report,access.dynamic.inventory.report,model_dynamic_inventory_report,base.group_user,1,1,1,1 diff --git a/inventory_report_generator/static/description/assets/icons/check.png b/inventory_report_generator/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/check.png differ diff --git a/inventory_report_generator/static/description/assets/icons/chevron.png b/inventory_report_generator/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/chevron.png differ diff --git a/inventory_report_generator/static/description/assets/icons/cogs.png b/inventory_report_generator/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/cogs.png differ diff --git a/inventory_report_generator/static/description/assets/icons/consultation.png b/inventory_report_generator/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/consultation.png differ diff --git a/inventory_report_generator/static/description/assets/icons/ecom-black.png b/inventory_report_generator/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/ecom-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/education-black.png b/inventory_report_generator/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/education-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/hotel-black.png b/inventory_report_generator/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/hotel-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/license.png b/inventory_report_generator/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/license.png differ diff --git a/inventory_report_generator/static/description/assets/icons/lifebuoy.png b/inventory_report_generator/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/lifebuoy.png differ diff --git a/inventory_report_generator/static/description/assets/icons/logo.png b/inventory_report_generator/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/logo.png differ diff --git a/inventory_report_generator/static/description/assets/icons/manufacturing-black.png b/inventory_report_generator/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/manufacturing-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/pos-black.png b/inventory_report_generator/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/pos-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/puzzle.png b/inventory_report_generator/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/puzzle.png differ diff --git a/inventory_report_generator/static/description/assets/icons/restaurant-black.png b/inventory_report_generator/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/restaurant-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/service-black.png b/inventory_report_generator/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/service-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/trading-black.png b/inventory_report_generator/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/trading-black.png differ diff --git a/inventory_report_generator/static/description/assets/icons/training.png b/inventory_report_generator/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/training.png differ diff --git a/inventory_report_generator/static/description/assets/icons/update.png b/inventory_report_generator/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/update.png differ diff --git a/inventory_report_generator/static/description/assets/icons/user.png b/inventory_report_generator/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/user.png differ diff --git a/inventory_report_generator/static/description/assets/icons/wrench.png b/inventory_report_generator/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/inventory_report_generator/static/description/assets/icons/wrench.png differ diff --git a/inventory_report_generator/static/description/assets/modules/customer_so_history.png b/inventory_report_generator/static/description/assets/modules/customer_so_history.png new file mode 100644 index 000000000..a49d2394c Binary files /dev/null and b/inventory_report_generator/static/description/assets/modules/customer_so_history.png differ diff --git a/inventory_report_generator/static/description/assets/modules/individual_product_report.png b/inventory_report_generator/static/description/assets/modules/individual_product_report.png new file mode 100644 index 000000000..cd5d80e40 Binary files /dev/null and b/inventory_report_generator/static/description/assets/modules/individual_product_report.png differ diff --git a/inventory_report_generator/static/description/assets/modules/sale_discount_total.png b/inventory_report_generator/static/description/assets/modules/sale_discount_total.png new file mode 100644 index 000000000..924a65196 Binary files /dev/null and b/inventory_report_generator/static/description/assets/modules/sale_discount_total.png differ diff --git a/inventory_report_generator/static/description/assets/modules/sale_report_advanced.png b/inventory_report_generator/static/description/assets/modules/sale_report_advanced.png new file mode 100644 index 000000000..1c019bdd8 Binary files /dev/null and b/inventory_report_generator/static/description/assets/modules/sale_report_advanced.png differ diff --git a/inventory_report_generator/static/description/assets/modules/sale_report_format_editor.png b/inventory_report_generator/static/description/assets/modules/sale_report_format_editor.png new file mode 100644 index 000000000..c58491994 Binary files /dev/null and b/inventory_report_generator/static/description/assets/modules/sale_report_format_editor.png differ diff --git a/inventory_report_generator/static/description/assets/modules/sales_order_delivery_status.png b/inventory_report_generator/static/description/assets/modules/sales_order_delivery_status.png new file mode 100644 index 000000000..94c023fe1 Binary files /dev/null and b/inventory_report_generator/static/description/assets/modules/sales_order_delivery_status.png differ diff --git a/inventory_report_generator/static/description/assets/screenshots/hero.gif b/inventory_report_generator/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..faad1aebb Binary files /dev/null and b/inventory_report_generator/static/description/assets/screenshots/hero.gif differ diff --git a/inventory_report_generator/static/description/assets/screenshots/inventory_report1.png b/inventory_report_generator/static/description/assets/screenshots/inventory_report1.png new file mode 100644 index 000000000..03b6f9e18 Binary files /dev/null and b/inventory_report_generator/static/description/assets/screenshots/inventory_report1.png differ diff --git a/inventory_report_generator/static/description/assets/screenshots/inventory_report2.png b/inventory_report_generator/static/description/assets/screenshots/inventory_report2.png new file mode 100644 index 000000000..e33ce4fd4 Binary files /dev/null and b/inventory_report_generator/static/description/assets/screenshots/inventory_report2.png differ diff --git a/inventory_report_generator/static/description/assets/screenshots/inventory_report3.png b/inventory_report_generator/static/description/assets/screenshots/inventory_report3.png new file mode 100644 index 000000000..dcd29f6f3 Binary files /dev/null and b/inventory_report_generator/static/description/assets/screenshots/inventory_report3.png differ diff --git a/inventory_report_generator/static/description/assets/screenshots/inventory_report4.png b/inventory_report_generator/static/description/assets/screenshots/inventory_report4.png new file mode 100644 index 000000000..3c1ce64df Binary files /dev/null and b/inventory_report_generator/static/description/assets/screenshots/inventory_report4.png differ diff --git a/inventory_report_generator/static/description/assets/screenshots/inventory_report_menu.png b/inventory_report_generator/static/description/assets/screenshots/inventory_report_menu.png new file mode 100644 index 000000000..7de0bac28 Binary files /dev/null and b/inventory_report_generator/static/description/assets/screenshots/inventory_report_menu.png differ diff --git a/inventory_report_generator/static/description/banner.png b/inventory_report_generator/static/description/banner.png new file mode 100644 index 000000000..4e10a2722 Binary files /dev/null and b/inventory_report_generator/static/description/banner.png differ diff --git a/inventory_report_generator/static/description/icon.png b/inventory_report_generator/static/description/icon.png new file mode 100644 index 000000000..4fbfd4441 Binary files /dev/null and b/inventory_report_generator/static/description/icon.png differ diff --git a/inventory_report_generator/static/description/index.html b/inventory_report_generator/static/description/index.html new file mode 100644 index 000000000..0749975d7 --- /dev/null +++ b/inventory_report_generator/static/description/index.html @@ -0,0 +1,608 @@ +
+ +
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Inventory All In One Report Generator

+

+ Dynamic Inventory Report Generator +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ This app is useful to provide different Inventory Reports to do analysis. It shows the Inventory analysis of a company in many aspects such as by order,order details,salesman and so on. It can be filtered out based on different date ranges too.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Community & Enterprise Support

+

+ Available in Odoo 14.0 Community and Enterprise.

+
+
+
+
+ +
+
+

+ Generates Report for a specific date range.

+
+
+ +
+
+ +
+
+

+ Filtering based on different aspects

+
+
+ +
+
+ +
+
+

+ Print Reports in both PDF and XLSX format.

+
+
+ +
+
+ +
+
+

+ Drilled on approach

+
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ All In One Inventory Report Menu

+ +
+ +
+

+ Inventory Report Based On Transfers

+ +
+ +
+

+ Inventory Report Based On Categories

+ + +
+ +
+

+ Inventory Report Based On Warehouse

+ +
+
+

+ Inventory Report Based On Location

+ +
+ +
+ + +
+
+

Suggested Products

+
+ + +
+
+ + + +
+
+
+

Our Services

+
+
+ +
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + + +
+
+
+

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+ +
+
+ + + + + +
+
+
+

Need Help?

+
+
+
+ + +
+ +
+ +
+ +
+ WhatsApp +
+
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
diff --git a/inventory_report_generator/static/src/css/inventory_report.css b/inventory_report_generator/static/src/css/inventory_report.css new file mode 100644 index 000000000..892697cce --- /dev/null +++ b/inventory_report_generator/static/src/css/inventory_report.css @@ -0,0 +1,58 @@ +.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-Result-Selection { + 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; +} +ul.dropdown-menu.show { + height: 40px; + background-color: #eeeeee; + width: 200px; +} +ul.dropdown-menu.show li { + margin-left: 10px; +} + +ul.dropdown-menu.show a{ + color: #221c1c; +} \ No newline at end of file diff --git a/inventory_report_generator/static/src/js/inventory_report.js b/inventory_report_generator/static/src/js/inventory_report.js new file mode 100644 index 000000000..f2e85b02e --- /dev/null +++ b/inventory_report_generator/static/src/js/inventory_report.js @@ -0,0 +1,231 @@ +odoo.define('inventory_report_generator.inventory_report', function(require) { + 'use strict'; + var AbstractAction = require('web.AbstractAction'); + var core = require('web.core'); + var rpc = require('web.rpc'); + var QWeb = core.qweb; + var _t = core._t; + var datepicker = require('web.datepicker'); + var time = require('web.time'); + + var framework = require('web.framework'); + var session = require('web.session'); + + var InventoryReport = AbstractAction.extend({ + template: 'InventoryReport', + events: { + 'click #apply_filter': 'apply_filter', + 'click #pdf': 'print_pdf', + 'click #xlsx': 'print_xlsx', + 'click .view_transfer_order': 'button_view_order', + 'mousedown div.input-group.date[data-target-input="nearest"]': '_onCalendarIconClick', + }, + + + init: function(parent, action) { + this._super(parent, action); + this.report_lines = action.report_lines; + this.wizard_id = action.context.wizard | null; + }, + start: function() { + var self = this; + self.initial_render = true; + rpc.query({ + model: 'dynamic.inventory.report', + method: 'create', + args: [{ + }] + }).then(function(res) { + self.wizard_id = res; + self.load_data(self.initial_render); + self.apply_filter(); + }) + }, + + _onCalendarIconClick: function(ev) { + var $calendarInputGroup = $(ev.currentTarget); + + var calendarOptions = { + + minDate: moment({ + y: 1000 + }), + maxDate: moment().add(200, 'y'), + calendarWeeks: true, + defaultDate: moment().format(), + sideBySide: true, + buttons: { + showClear: true, + showClose: true, + showToday: true, + }, + + icons: { + date: 'fa fa-calendar', + + }, + locale: moment.locale(), + format: time.getLangDateFormat(), + widgetParent: 'body', + allowInputToggle: true, + }; + + $calendarInputGroup.datetimepicker(calendarOptions); + }, + + + load_data: function(initial_render = true) { + var self = this; + self._rpc({ + model: 'dynamic.inventory.report', + method: 'inventory_report', + args: [ + [this.wizard_id] + ], + }).then(function(datas) { + if (initial_render) { + self.$('.filter_view_pr').html(QWeb.render('InventoryFilterView', { + filter_data: datas['filters'], + + })); + self.$el.find('.report_type').select2({ + placeholder: ' Report Type...', + }); + + } + + if (datas['orders']) + self.$('.table_view_pr').html(QWeb.render('InventoryReportTable', { + filter: datas['filters'], + order: datas['orders'], + report_lines: datas['report_lines'], + main_lines: datas['report_main_line'] + })); + }) + }, + + print_pdf: function(e) { + e.preventDefault(); + var self = this; + var action_title = self._title; + self._rpc({ + model: 'dynamic.inventory.report', + method: 'inventory_report', + args: [ + [self.wizard_id] + ], + }).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.do_action(action); + }); + + }, + print_xlsx: function() { + var self = this; + self._rpc({ + model: 'dynamic.inventory.report', + method: 'inventory_report', + args: [ + [self.wizard_id] + ], + }).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); + + }); + }, + + downloadXlsx: function (action){ + framework.blockUI(); + session.get_file({ + url: '/inventory_dynamic_xlsx_reports', + data: action.data, + complete: framework.unblockUI, + error: (error) => this.call('crash_manager', 'rpc_error', error), + }); + }, + + button_view_order: function(event) { + event.preventDefault(); + var self = this; + var context = {}; + this.do_action({ + name: _t("Transfer Order"), + type: 'ir.actions.act_window', + res_model: 'stock.picking', + view_type: 'form', + domain: [ + ['id', '=', $(event.target).closest('.view_transfer_order').attr('id')] + ], + views: [ + [false, 'list'], + [false, 'form'] + ], + target: 'current' + }); + }, + // + apply_filter: function() { + var self = this; + self.initial_render = false; + + var filter_data_selected = {}; + + if (this.$el.find('.datetimepicker-input[name="date_from"]').val()) { + filter_data_selected.date_from = moment(this.$el.find('.datetimepicker-input[name="date_from"]').val(), time.getLangDateFormat()).locale('en').format('YYYY-MM-DD'); + } + + if (this.$el.find('.datetimepicker-input[name="date_to"]').val()) { + filter_data_selected.date_to = moment(this.$el.find('.datetimepicker-input[name="date_to"]').val(), time.getLangDateFormat()).locale('en').format('YYYY-MM-DD'); + } + if ($(".report_type").length) { + var report_res = document.getElementById("report_res") + filter_data_selected.report_type = $(".report_type")[1].value + report_res.value = $(".report_type")[1].value + report_res.innerHTML = report_res.value; + if ($(".report_type")[1].value == "") { + report_res.innerHTML = "report_by_order"; + + } + } + rpc.query({ + model: 'dynamic.inventory.report', + method: 'write', + args: [ + self.wizard_id, filter_data_selected + ], + }).then(function(res) { + self.initial_render = false; + self.load_data(self.initial_render); + }); + }, + + }); + core.action_registry.add("p_r", InventoryReport); + return InventoryReport; +}); \ No newline at end of file diff --git a/inventory_report_generator/static/src/xml/inventory_report_view.xml b/inventory_report_generator/static/src/xml/inventory_report_view.xml new file mode 100644 index 000000000..2a1042e77 --- /dev/null +++ b/inventory_report_generator/static/src/xml/inventory_report_view.xml @@ -0,0 +1,353 @@ + + +
+
+
+

Inventory Report

+
+
+
+
+
+
+
+
+ +
+ + + +
+
+
+ + +
+
+

+ +
+
+ + + Date Range + + +
+
+ + + Report Type: + + + +
+
+ +
+
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ReferenceScheduled DateSource DocumentCompanyDelivery AddressState
+ + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CategoryProduct NameCreate DateProduct CostOn Hand Qty
+ + + + + + + + + + + + + + + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
WarehouseDateCompanyLocationRoute
+ + + + + + + + + + + + + + + + + + + + +
+
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
LocationLocation TypeCreate DateCompany
+ + + + + + + + + + + + + + + + +
+
+
+ +
+ diff --git a/inventory_report_generator/views/inventory_report.xml b/inventory_report_generator/views/inventory_report.xml new file mode 100644 index 000000000..70764f159 --- /dev/null +++ b/inventory_report_generator/views/inventory_report.xml @@ -0,0 +1,12 @@ + + + + All In One Inventory Report + p_r + + + + + \ No newline at end of file diff --git a/inventory_report_generator/views/templates.xml b/inventory_report_generator/views/templates.xml new file mode 100644 index 000000000..90a85cad2 --- /dev/null +++ b/inventory_report_generator/views/templates.xml @@ -0,0 +1,16 @@ + + + +