diff --git a/sale_report_advanced/README.rst b/sale_report_advanced/README.rst new file mode 100644 index 000000000..f5bc608b2 --- /dev/null +++ b/sale_report_advanced/README.rst @@ -0,0 +1,40 @@ +Advanced Sales Reports +======================= + +Advanced Sales Reports for odoo 14. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: Athul @ cybrosys + + +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 `__ + +Further information +=================== +HTML Description: ``__ + diff --git a/sale_report_advanced/__init__.py b/sale_report_advanced/__init__.py new file mode 100644 index 000000000..921c54941 --- /dev/null +++ b/sale_report_advanced/__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 LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + +from . import wizard +from . import controllers \ No newline at end of file diff --git a/sale_report_advanced/__manifest__.py b/sale_report_advanced/__manifest__.py new file mode 100644 index 000000000..956693702 --- /dev/null +++ b/sale_report_advanced/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## + +{ + 'name': 'Advanced Sales Reports', + 'version': '14.0.1.0.0', + 'summary': 'Advanced sales reports for odoo 14', + 'description': """module helps you to print reports like Sales Analysis, Sales By Category, + Sales Indent, Sales Invoice ,Product Profit ,Hourly Sales in PDF and XLSX format.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'category': 'Sales', + 'website': 'https://www.cybrosys.com', + 'depends': ['sale_management', 'base','account'], + 'data': [ + 'security/ir.model.access.csv', + 'wizard/sale_report.xml', + 'wizard/sale_invoice.xml', + 'wizard/sale_analysis.xml', + 'wizard/weekly_wise.xml', + 'wizard/sale_category.xml', + 'wizard/sale_indent.xml', + 'views/report_view.xml', + 'views/action_manager.xml', + 'report/sale_reports.xml', + 'report/invoice_analysis_template.xml', + 'report/sales_indent_template.xml', + 'report/sale_profit_template.xml', + 'report/sales_category_template.xml', + 'report/sales_analysis_template.xml', + 'report/sales_weekly_template.xml', + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'application': True, + 'license': 'LGPL-3', +} diff --git a/sale_report_advanced/controllers/__init__.py b/sale_report_advanced/controllers/__init__.py new file mode 100644 index 000000000..d73af0771 --- /dev/null +++ b/sale_report_advanced/controllers/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL v3) along with this program. +# If not, see . +# +############################################################################## +from . import profit diff --git a/sale_report_advanced/controllers/profit.py b/sale_report_advanced/controllers/profit.py new file mode 100644 index 000000000..4803994b8 --- /dev/null +++ b/sale_report_advanced/controllers/profit.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies(). +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# GENERAL PUBLIC LICENSE (LGPL 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 XLSXReportController(http.Controller): + @http.route('/xlsx_reports', type='http', auth='user', methods=['POST'], csrf=False) + def get_report_xlsx(self, model, options, output_format, report_name, **kw): + uid = request.session.uid + options = json.loads(options) + report_obj = request.env[model].sudo(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_xlsx_report(options, response) + 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/sale_report_advanced/doc/RELEASE_NOTES.md b/sale_report_advanced/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..e0c7609a9 --- /dev/null +++ b/sale_report_advanced/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.4.2022 +#### Version 14.0.1.0.0 +##### ADD +- Initial Commit for sale_report_advanced diff --git a/sale_report_advanced/report/invoice_analysis_template.xml b/sale_report_advanced/report/invoice_analysis_template.xml new file mode 100644 index 000000000..a321d4663 --- /dev/null +++ b/sale_report_advanced/report/invoice_analysis_template.xml @@ -0,0 +1,95 @@ + + + + \ No newline at end of file diff --git a/sale_report_advanced/report/sale_profit_template.xml b/sale_report_advanced/report/sale_profit_template.xml new file mode 100644 index 000000000..2047a537d --- /dev/null +++ b/sale_report_advanced/report/sale_profit_template.xml @@ -0,0 +1,318 @@ + + + + \ No newline at end of file diff --git a/sale_report_advanced/report/sale_reports.xml b/sale_report_advanced/report/sale_reports.xml new file mode 100644 index 000000000..a2ea7a0b4 --- /dev/null +++ b/sale_report_advanced/report/sale_reports.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/sale_report_advanced/report/sales_analysis_template.xml b/sale_report_advanced/report/sales_analysis_template.xml new file mode 100644 index 000000000..945eae74a --- /dev/null +++ b/sale_report_advanced/report/sales_analysis_template.xml @@ -0,0 +1,165 @@ + + + + \ No newline at end of file diff --git a/sale_report_advanced/report/sales_category_template.xml b/sale_report_advanced/report/sales_category_template.xml new file mode 100644 index 000000000..ece5a635d --- /dev/null +++ b/sale_report_advanced/report/sales_category_template.xml @@ -0,0 +1,111 @@ + + + + diff --git a/sale_report_advanced/report/sales_indent_template.xml b/sale_report_advanced/report/sales_indent_template.xml new file mode 100644 index 000000000..e1d1e5b75 --- /dev/null +++ b/sale_report_advanced/report/sales_indent_template.xml @@ -0,0 +1,59 @@ + + + + \ No newline at end of file diff --git a/sale_report_advanced/report/sales_weekly_template.xml b/sale_report_advanced/report/sales_weekly_template.xml new file mode 100644 index 000000000..7f22bcafd --- /dev/null +++ b/sale_report_advanced/report/sales_weekly_template.xml @@ -0,0 +1,66 @@ + + + + \ No newline at end of file diff --git a/sale_report_advanced/security/ir.model.access.csv b/sale_report_advanced/security/ir.model.access.csv new file mode 100644 index 000000000..28e71bf3e --- /dev/null +++ b/sale_report_advanced/security/ir.model.access.csv @@ -0,0 +1,7 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_sale_report_advance,access.sale.report.advance,model_sale_report_advance,,1,1,1,1 +access_sale_report_invoice,access.sale.report.invoice,model_sale_report_invoice,,1,1,1,1 +access_sale_report_category,access.sale.report.category,model_sale_report_category,,1,1,1,1 +access_sale_report_indent,access.sale.report.indent,model_sale_report_indent,,1,1,1,1 +access_sale_report_analysis,access.sale.report.analysis,model_sale_report_analysis,,1,1,1,1 +access_sale_report_weekly,access.sale.report.weekly,model_sale_report_weekly,,1,1,1,1 diff --git a/sale_report_advanced/static/description/assets/icons/check.png b/sale_report_advanced/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/check.png differ diff --git a/sale_report_advanced/static/description/assets/icons/chevron.png b/sale_report_advanced/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/chevron.png differ diff --git a/sale_report_advanced/static/description/assets/icons/cogs.png b/sale_report_advanced/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/cogs.png differ diff --git a/sale_report_advanced/static/description/assets/icons/consultation.png b/sale_report_advanced/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/consultation.png differ diff --git a/sale_report_advanced/static/description/assets/icons/ecom-black.png b/sale_report_advanced/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/ecom-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/education-black.png b/sale_report_advanced/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/education-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/hotel-black.png b/sale_report_advanced/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/hotel-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/license.png b/sale_report_advanced/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/license.png differ diff --git a/sale_report_advanced/static/description/assets/icons/lifebuoy.png b/sale_report_advanced/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/lifebuoy.png differ diff --git a/sale_report_advanced/static/description/assets/icons/logo.png b/sale_report_advanced/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/logo.png differ diff --git a/sale_report_advanced/static/description/assets/icons/manufacturing-black.png b/sale_report_advanced/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/manufacturing-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/pos-black.png b/sale_report_advanced/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/pos-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/puzzle.png b/sale_report_advanced/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/puzzle.png differ diff --git a/sale_report_advanced/static/description/assets/icons/restaurant-black.png b/sale_report_advanced/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/restaurant-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/service-black.png b/sale_report_advanced/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/service-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/trading-black.png b/sale_report_advanced/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/trading-black.png differ diff --git a/sale_report_advanced/static/description/assets/icons/training.png b/sale_report_advanced/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/training.png differ diff --git a/sale_report_advanced/static/description/assets/icons/update.png b/sale_report_advanced/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/update.png differ diff --git a/sale_report_advanced/static/description/assets/icons/user.png b/sale_report_advanced/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/user.png differ diff --git a/sale_report_advanced/static/description/assets/icons/wrench.png b/sale_report_advanced/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/sale_report_advanced/static/description/assets/icons/wrench.png differ diff --git a/sale_report_advanced/static/description/assets/modules/approval_image.png b/sale_report_advanced/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/sale_report_advanced/static/description/assets/modules/approval_image.png differ diff --git a/sale_report_advanced/static/description/assets/modules/budget_image.png b/sale_report_advanced/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/sale_report_advanced/static/description/assets/modules/budget_image.png differ diff --git a/sale_report_advanced/static/description/assets/modules/export_image.png b/sale_report_advanced/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/sale_report_advanced/static/description/assets/modules/export_image.png differ diff --git a/sale_report_advanced/static/description/assets/modules/magento_image.png b/sale_report_advanced/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/sale_report_advanced/static/description/assets/modules/magento_image.png differ diff --git a/sale_report_advanced/static/description/assets/modules/pos_image.png b/sale_report_advanced/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/sale_report_advanced/static/description/assets/modules/pos_image.png differ diff --git a/sale_report_advanced/static/description/assets/modules/shopify_image.png b/sale_report_advanced/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/sale_report_advanced/static/description/assets/modules/shopify_image.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/1.png b/sale_report_advanced/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..12ae68a2f Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/1.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/10.png b/sale_report_advanced/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..bc1370f68 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/10.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/11.png b/sale_report_advanced/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..cb33edb0e Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/11.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/12.png b/sale_report_advanced/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..7bf94ce05 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/12.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/13.png b/sale_report_advanced/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..2a9a364b2 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/13.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/14.png b/sale_report_advanced/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..a339ec6f6 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/14.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/15.png b/sale_report_advanced/static/description/assets/screenshots/15.png new file mode 100644 index 000000000..33dc11077 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/15.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/16.png b/sale_report_advanced/static/description/assets/screenshots/16.png new file mode 100644 index 000000000..20aa9554a Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/16.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/17.png b/sale_report_advanced/static/description/assets/screenshots/17.png new file mode 100644 index 000000000..a1c152a89 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/17.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/18.png b/sale_report_advanced/static/description/assets/screenshots/18.png new file mode 100644 index 000000000..4f21f77fb Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/18.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/2.png b/sale_report_advanced/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..44f0fbe11 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/2.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/3.png b/sale_report_advanced/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..4e69a7919 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/3.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/4.png b/sale_report_advanced/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..1890ad8be Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/4.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/5.png b/sale_report_advanced/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..a89816f5a Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/5.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/6.png b/sale_report_advanced/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..eec31e637 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/6.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/7.png b/sale_report_advanced/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..90dcc36c9 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/7.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/8.png b/sale_report_advanced/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..30f9962b1 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/8.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/9.png b/sale_report_advanced/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..8b4aa2888 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/9.png differ diff --git a/sale_report_advanced/static/description/assets/screenshots/hero.gif b/sale_report_advanced/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..e088d61c2 Binary files /dev/null and b/sale_report_advanced/static/description/assets/screenshots/hero.gif differ diff --git a/sale_report_advanced/static/description/banner.png b/sale_report_advanced/static/description/banner.png new file mode 100644 index 000000000..d881f99c6 Binary files /dev/null and b/sale_report_advanced/static/description/banner.png differ diff --git a/sale_report_advanced/static/description/icon.png b/sale_report_advanced/static/description/icon.png new file mode 100644 index 000000000..a9a903718 Binary files /dev/null and b/sale_report_advanced/static/description/icon.png differ diff --git a/sale_report_advanced/static/description/images/checked.png b/sale_report_advanced/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/sale_report_advanced/static/description/images/checked.png differ diff --git a/sale_report_advanced/static/description/images/cybrosys.png b/sale_report_advanced/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/sale_report_advanced/static/description/images/cybrosys.png differ diff --git a/sale_report_advanced/static/description/index.html b/sale_report_advanced/static/description/index.html new file mode 100644 index 000000000..a0813a6aa --- /dev/null +++ b/sale_report_advanced/static/description/index.html @@ -0,0 +1,682 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Advanced Sales Reports

+

+ A Module for generating sales reports +

+ +
+
+ + + + +
+
+

+ Overview +

+
+ +
+

+ The module helps you to print reports like Sales Analysis, Sales By Category, Sales Indent, Sales + Invoice ,Product Profit ,Hourly Sales in PDF and XLSX format.

+ +
+
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Sales Analysis Report

+
+
+
+
+ +
+
+

+ Sales Category Report

+
+
+ +
+
+ +
+
+

+ Sales Indent Report

+
+
+ +
+
+ +
+
+

+ Sales Invoice Analysis Report

+
+
+ +
+
+ +
+
+

+ Product Profit Report

+
+
+ +
+
+ +
+
+

+ Hourly Sales Report

+
+
+
+
+
+

+ Screenshots +

+
+
+

+ Product Profit Report +

+

+ + PDF report + + XLSX report + +

+
+

+ Sales Invoice Analysis Report +

+

+ + PDF report + + XLSX report + +

+
+

+ Sales Category Report +

+

+ + PDF report + + XLSX report + +

+
+

+ Sales Indent Report +

+

+ + PDF report + + XLSX report + +

+
+

+ Sales Analysis Report +

+

+ + PDF report + + XLSX report + +

+
+

+ Hourly Sales Report +

+

+ + PDF report + + XLSX report + +

+
+ +
+
+

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?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/sale_report_advanced/static/src/js/action_manager.js b/sale_report_advanced/static/src/js/action_manager.js new file mode 100644 index 000000000..75a7ec190 --- /dev/null +++ b/sale_report_advanced/static/src/js/action_manager.js @@ -0,0 +1,26 @@ +odoo.define('sale_report_advanced.action_manager', function (require) { +"use strict"; +var ActionManager = require('web.ActionManager'); +var framework = require('web.framework'); +var session = require('web.session'); +ActionManager.include({ + _executexlsxReportDownloadAction: function (action) { + framework.blockUI(); + var def = $.Deferred(); + session.get_file({ + url: '/xlsx_reports', + data: action.data, + success: def.resolve.bind(def), + error: (error) => this.call('crash_manager', 'rpc_error', error), + complete: framework.unblockUI, + }); + return def; + }, + _handleAction: function (action, options) { + if (action.report_type === 'xlsx') { + return this._executexlsxReportDownloadAction(action, options); + } + return this._super.apply(this, arguments); + }, + }); + }); \ No newline at end of file diff --git a/sale_report_advanced/views/action_manager.xml b/sale_report_advanced/views/action_manager.xml new file mode 100644 index 000000000..1899a34ff --- /dev/null +++ b/sale_report_advanced/views/action_manager.xml @@ -0,0 +1,11 @@ + + +