@ -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 |
|||
|
|||
Sales All In One Report Generator |
|||
================================= |
|||
This module Helps to Generate All in One Dynamic Sale Report |
|||
|
|||
Configuration |
|||
============= |
|||
* No additional configurations needed |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (AGPL v3). |
|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
Credits |
|||
------- |
|||
Developer: (V17) Ayana KP, |
|||
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,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import controllers |
|||
from . import models |
|||
from . import report |
@ -0,0 +1,55 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
{ |
|||
'name': 'Sales All In One Report Generator', |
|||
'version': '17.0.1.0.0', |
|||
'category': 'Sales', |
|||
'summary': """This module Helps to Generate All in One Dynamic |
|||
Sale Report""", |
|||
'description': """This module facilitates comprehensive Sale Reports, |
|||
offering insights into a company's procurement analysis from various |
|||
angles, including orders, order details, sales representatives, and the |
|||
ability to filter data by different date ranges.""", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['sale_management'], |
|||
'data': [ |
|||
'security/ir.model.access.csv', |
|||
'report/sale_order_reports.xml', |
|||
'report/sale_order_templates.xml', |
|||
'views/sale_report_views.xml', |
|||
], |
|||
'assets': { |
|||
'web.assets_backend': [ |
|||
'sale_report_generator/static/src/js/sale_report.js', |
|||
'sale_report_generator/static/src/css/sale_report.css', |
|||
'sale_report_generator/static/src/xml/sale_report_templates.xml', |
|||
], |
|||
}, |
|||
'images': ['static/description/banner.png'], |
|||
'license': 'AGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import sale_report_generator |
@ -0,0 +1,64 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
import json |
|||
from odoo import http |
|||
from odoo.http import content_disposition, request |
|||
from odoo.tools import html_escape |
|||
|
|||
|
|||
class TBXLSXReport(http.Controller): |
|||
"""Controller class to generate dynamic sale reports in Excel format. |
|||
Methods: |
|||
get_report_xlsx: Generate a dynamic sale report in Excel format and |
|||
send it as a response to a HTTP POST request. """ |
|||
@http.route('/sale_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): |
|||
"""Generate a dynamic sale report in Excel format and send it as a |
|||
response to a HTTP POST request.""" |
|||
report_obj = request.env[model].with_user(request.session.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_sale_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 <sale_report_generator> |
|||
|
|||
#### 19.04.2024 |
|||
#### Version 17.0.1.0.0 |
|||
#### ADD |
|||
- Initial Commit for Sales All In One Report Generator |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import sales_report |
@ -0,0 +1,578 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
import io |
|||
import json |
|||
from odoo import api, fields, models |
|||
try: |
|||
from odoo.tools.misc import xlsxwriter |
|||
except ImportError: |
|||
import xlsxwriter |
|||
|
|||
|
|||
class SalesReport(models.Model): |
|||
"""Model for generating sales reports. |
|||
Methods: |
|||
sale_report : Generate a sales report based on the provided option. |
|||
get_filter :This method relies on the 'get_filter_data' method to |
|||
retrieve filter data based on the provided option. It then formats the |
|||
filter data and returns a dictionary of filters to apply to the sales |
|||
report. |
|||
get_filter_data:This method relies on the 'get_filter_data' method to |
|||
retrieve filter data based on the provided option. It then formats the |
|||
filter data and returns a dictionary of filters to apply to the sales |
|||
report. |
|||
create : Create a new record for the current model. |
|||
write : Override the write method to perform additional actions when |
|||
updating a record. |
|||
_get_report_sub_lines: Generates sub-lines for a sales report based |
|||
on the given report type and date rangeand append to report_sub_lines. |
|||
_get_report_total_value : Retrieves the main lines of a report based on |
|||
the report type in data. |
|||
get_sale_xlsx_report:Generate a sales report in XLSX format based on |
|||
the specified filters. """ |
|||
_name = "sales.report" |
|||
_description = "Generate Sales Report" |
|||
|
|||
sale_report = fields.Char(string="Sale Report", |
|||
help="The generated sales report") |
|||
date_from = fields.Datetime(string="Start Date", |
|||
help="The starting date for the report") |
|||
date_to = fields.Datetime(string="End Date", |
|||
help="The ending date for the report") |
|||
report_type = fields.Selection([ |
|||
('report_by_order', 'Report By Order'), |
|||
('report_by_order_detail', 'Report By Order Detail'), |
|||
('report_by_product', 'Report By Product'), |
|||
('report_by_categories', 'Report By Categories'), |
|||
('report_by_salesperson', 'Report By Sales Person'), |
|||
('report_by_state', 'Report By State')], string='Report Type', |
|||
default='report_by_order', help="Select the type of report to generate") |
|||
|
|||
@api.model |
|||
def sale_report(self, option): |
|||
"""Generate a sales report based on the provided option.""" |
|||
report_values = self.env['sales.report'].browse(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, |
|||
}) |
|||
return { |
|||
'name': "Sale Orders", |
|||
'type': 'ir.actions.client', |
|||
'tag': 'sales_report', |
|||
'orders': data, |
|||
'filters': self.get_filter(option,report_values.date_from,report_values.date_to), |
|||
'report_lines': self._get_report_values(data).get('SALE'), |
|||
'report_main_line': self._get_report_values(data).get('sale_main'), |
|||
} |
|||
|
|||
def get_filter(self, option,date_from,date_to): |
|||
""" This method relies on the 'get_filter_data' method to retrieve |
|||
filter data based on the provided option. It then formats the filter |
|||
data and returns a dictionary of filters to apply to the sales |
|||
report.""" |
|||
data = self.get_filter_data(option) |
|||
filters = {} |
|||
if data.get('report_type') == 'report_by_order': |
|||
filters['report_type'] = 'Report By Order' |
|||
elif data.get('report_type') == 'report_by_order_detail': |
|||
filters['report_type'] = 'Report By Order Detail' |
|||
elif data.get('report_type') == 'report_by_product': |
|||
filters['report_type'] = 'Report By Product' |
|||
elif data.get('report_type') == 'report_by_categories': |
|||
filters['report_type'] = 'Report By Categories' |
|||
elif data.get('report_type') == 'report_by_salesperson': |
|||
filters['report_type'] = 'Report By Sales Person' |
|||
elif data.get('report_type') == 'report_by_state': |
|||
filters['report_type'] = 'Report By State' |
|||
else: |
|||
filters['report_type'] = 'report_by_order' |
|||
if date_from: |
|||
filters['date_from'] = date_from.strftime('%Y-%m-%d') |
|||
if date_to: |
|||
filters['date_to'] = date_to.strftime('%Y-%m-%d') |
|||
return filters |
|||
|
|||
def get_filter_data(self, option): |
|||
""" This method relies on the 'sales.report' model to retrieve the |
|||
sales report values.""" |
|||
default_filters = {} |
|||
report = self.env['sales.report'].browse(option[0]) |
|||
filter_dict = { |
|||
'report_type': report.report_type, |
|||
} |
|||
filter_dict.update(default_filters) |
|||
return filter_dict |
|||
|
|||
def _get_report_sub_lines(self, data, report, date_from, date_to): |
|||
""" Generates sublines for a sales report based on the given report |
|||
type and date range and append to report_sub_lines""" |
|||
report_sub_lines = [] |
|||
if data.get('report_type') == 'report_by_order': |
|||
query = '''select so.id,so.name as number,so.date_order, |
|||
so.partner_id,so.amount_total,so.user_id, |
|||
res_partner.name as customer,res_users.partner_id as |
|||
user_partner,so.id as id,sum(sale_order_line.product_uom_qty), |
|||
(SELECT res_partner.name as sales_man FROM res_partner |
|||
WHERE res_partner.id = res_users.partner_id) |
|||
from sale_order as so |
|||
inner join res_partner on so.partner_id = res_partner.id |
|||
inner join res_users on so.user_id = res_users.id |
|||
inner join sale_order_line on so.id = sale_order_line.order_id |
|||
''' |
|||
term = 'Where ' |
|||
if data.get('date_from'): |
|||
query += "Where so.date_order >= '%s' " % data.get('date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + "so.date_order <= '%s' " % data.get('date_to') |
|||
query += "AND so.company_id = '%s' " % self.env.company.id |
|||
query += "group by so.user_id,res_users.partner_id," \ |
|||
"res_partner.name,so.partner_id,so.date_order," \ |
|||
"so.name,so.amount_total,so.id" |
|||
self._cr.execute(query) |
|||
report_by_order = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_order) |
|||
elif data.get('report_type') == 'report_by_order_detail': |
|||
query = '''SELECT |
|||
so.id, |
|||
so.name AS number, |
|||
so.date_order, |
|||
res_partner.name AS customer, |
|||
rc.name AS company, |
|||
product_template.name AS product, |
|||
product_product.default_code, |
|||
so_line.product_uom_qty, |
|||
so_line.price_subtotal, |
|||
so.amount_total, |
|||
so.partner_id, |
|||
so.user_id, |
|||
ru.id AS salesman_id, |
|||
res_partner_salesman.name AS salesman |
|||
FROM |
|||
sale_order AS so |
|||
JOIN |
|||
sale_order_line AS so_line ON so.id = so_line.order_id |
|||
JOIN |
|||
product_product ON so_line.product_id = product_product.id |
|||
JOIN |
|||
product_template ON product_product.product_tmpl_id = product_template.id |
|||
JOIN |
|||
res_partner ON so.partner_id = res_partner.id |
|||
JOIN |
|||
res_users ON so.user_id = res_users.id |
|||
JOIN |
|||
res_company AS rc ON so.company_id = rc.id |
|||
JOIN |
|||
res_users AS ru ON so.user_id = ru.id |
|||
JOIN |
|||
res_partner AS res_partner_salesman ON res_users.partner_id = res_partner_salesman.id |
|||
WHERE |
|||
1=1''' |
|||
if data.get('date_from'): |
|||
query += "AND so.date_order >= '%s' " % data.get('date_from') |
|||
if data.get('date_to'): |
|||
query += """ AND so.date_order <= '%s' """ % data.get('date_to') |
|||
query += "AND so.company_id = '%s' " % self.env.company.id |
|||
query += ''' GROUP BY |
|||
so.id, so.name, so.user_id, so.date_order, |
|||
res_partner.name, rc.name, product_template.name, |
|||
product_product.default_code, so_line.product_uom_qty, |
|||
so_line.price_subtotal, so.amount_total, so.partner_id, |
|||
so.user_id, ru.id, res_users.partner_id, res_partner_salesman.name |
|||
ORDER BY so.id asc; |
|||
''' |
|||
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_product': |
|||
query = '''SELECT so.id,so.date_order, |
|||
product_template.name as product, |
|||
product_category.name as category, |
|||
product_product.default_code,so_line.product_uom_qty, |
|||
so.amount_total,so.name as number |
|||
From sale_order as so |
|||
inner join sale_order_line as so_line on |
|||
so.id = so_line.order_id inner join product_product ON |
|||
so_line.product_id=product_product.id inner join |
|||
product_template ON product_product.product_tmpl_id = |
|||
product_template.id inner join product_category on |
|||
product_category.id = product_template.categ_id Where 1=1 ''' |
|||
|
|||
if data.get('date_from'): |
|||
query += "AND so.date_order >= '%s' " % data.get('date_from') |
|||
if data.get('date_to'): |
|||
query += " AND so.date_order <= '%s' " % data.get('date_to') |
|||
query += "AND so.company_id = '%s' " % self.env.company.id |
|||
query += ("group by so.id,so.date_order,product_template.name," |
|||
"product_category.name,product_product.default_code," |
|||
"so_line.product_uom_qty") |
|||
self._cr.execute(query) |
|||
report_by_product = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_product) |
|||
elif data.get('report_type') == 'report_by_categories': |
|||
query = '''select product_category.name, |
|||
sum(so_line.product_uom_qty) as qty,sum(so_line.price_subtotal) as |
|||
amount_total from sale_order_line as so_line inner join |
|||
product_template on so_line.product_id = product_template.id |
|||
inner join product_category on product_category.id = |
|||
product_template.categ_id inner join sale_order on so_line.order_id |
|||
= sale_order.id ''' |
|||
term = 'Where ' |
|||
if data.get('date_from'): |
|||
query += "Where sale_order.date_order >= '%s' " % data.get( |
|||
'date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + "sale_order.date_order <= '%s' " % data.get( |
|||
'date_to') |
|||
query += "AND sale_order.company_id = '%s' " % self.env.company.id |
|||
query += "group by product_category.name" |
|||
self._cr.execute(query) |
|||
report_by_categories = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_categories) |
|||
elif data.get('report_type') == 'report_by_salesperson': |
|||
query = ''' |
|||
select res_partner.name,sum(sale_order_line.product_uom_qty) as qty, |
|||
sum(sale_order_line.price_subtotal) as amount,count(so.id) as order |
|||
from sale_order as so |
|||
inner join res_users on so.user_id = res_users.id |
|||
inner join res_partner on res_users.partner_id = res_partner.id |
|||
inner join sale_order_line on so.id = sale_order_line.order_id ''' |
|||
term = 'Where ' |
|||
if data.get('date_from'): |
|||
query += "Where so.date_order >= '%s' " % data.get('date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + "so.date_order <= '%s' " % data.get('date_to') |
|||
query += "AND so.company_id = '%s' " % self.env.company.id |
|||
query += "group by res_partner.name" |
|||
self._cr.execute(query) |
|||
report_by_salesperson = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_salesperson) |
|||
elif data.get('report_type') == 'report_by_state': |
|||
query = ''' |
|||
select so.state,count(so.id),sum(sale_order_line.product_uom_qty) as qty, |
|||
sum(sale_order_line.price_subtotal) as amount from sale_order as so |
|||
inner join sale_order_line on so.id = sale_order_line.order_id ''' |
|||
term = 'Where ' |
|||
if data.get('date_from'): |
|||
query += "Where so.date_order >= '%s' " % data.get('date_from') |
|||
term = 'AND ' |
|||
if data.get('date_to'): |
|||
query += term + "so.date_order <= '%s' " % data.get('date_to') |
|||
query += "AND so.company_id = '%s' " % self.env.company.id |
|||
query += "group by so.state" |
|||
self._cr.execute(query) |
|||
report_by_state = self._cr.dictfetchall() |
|||
report_sub_lines.append(report_by_state) |
|||
return report_sub_lines |
|||
|
|||
def _get_report_total_value(self, data, report): |
|||
"""Retrieves the main lines of a report based on the report type in |
|||
data.""" |
|||
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): |
|||
""" Generate a dictionary of report values based on the input |
|||
data dictionary.""" |
|||
docs = data['model'] |
|||
date_from = data.get('date_from') |
|||
date_to = data.get('date_to') |
|||
if data['report_type'] == 'report_by_order_detail': |
|||
report = ['Report By Order Detail'] |
|||
elif data['report_type'] == 'report_by_product': |
|||
report = ['Report By Product'] |
|||
elif data['report_type'] == 'report_by_categories': |
|||
report = ['Report By Categories'] |
|||
elif data['report_type'] == 'report_by_salesperson': |
|||
report = ['Report By Sales Person'] |
|||
elif data['report_type'] == 'report_by_state': |
|||
report = ['Report By State'] |
|||
else: |
|||
report = ['Report By Order'] |
|||
report_res_total = self._get_report_total_value(data, report) |
|||
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) |
|||
if data.get('report_type') == 'report_by_order': |
|||
report_res_total = self._get_report_total_value(data, report)[0] |
|||
return { |
|||
'doc_ids': self.ids, |
|||
'docs': docs, |
|||
'SALE': report_res, |
|||
'sale_main': report_res_total, |
|||
} |
|||
|
|||
def get_sale_xlsx_report(self, data, response, report_data, dfrm_data): |
|||
"""Generate a sales report in XLSX format based on the specified |
|||
filters.""" |
|||
report_data_main = json.loads(report_data) |
|||
output = io.BytesIO() |
|||
filters = json.loads(data) |
|||
dfr_data = json.loads(dfrm_data) |
|||
f_date = dfr_data.get('filters') |
|||
date_from = f_date.get('date_from') |
|||
t_date = dfr_data.get('filters') |
|||
date_to = t_date.get('date_to') |
|||
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( |
|||
{'align': 'center', 'font_size': '10px', 'border': 1, 'bold': True}) |
|||
sheet.merge_range('A2:H3', |
|||
'Sales Report', |
|||
head) |
|||
if report_data_main: |
|||
if filters.get('report_type') == 'report_by_order': |
|||
sheet.merge_range('B5:D5', 'Report By Order', txt_l) |
|||
if filters.get('date_from'): |
|||
sheet.write('A6', 'FROM DATE :', txt_l) |
|||
sheet.write('B6', date_from, txt_l) |
|||
if filters.get('date_to'): |
|||
sheet.write('C6', 'TO DATE :', txt_l) |
|||
sheet.write('D6', date_to, txt_l) |
|||
sheet.write('A7', 'Sale', heading) |
|||
sheet.write('B7', 'Date Order', heading) |
|||
sheet.write('C7', 'Customer', heading) |
|||
sheet.write('D7', 'Sales Person', heading) |
|||
sheet.write('E7', 'Total Qty', heading) |
|||
sheet.write('F7', 'Amount 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) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['number'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['date_order'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['customer'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['sales_man'], txt_l) |
|||
sheet.write(row, col + 4, rec_data['sum'], txt_l) |
|||
sheet.write(row, col + 5, rec_data['amount_total'], txt_l) |
|||
if filters.get('report_type') == 'report_by_order_detail': |
|||
sheet.merge_range('B5:D5', 'Report By Order Details ', txt_l) |
|||
if filters.get('date_from'): |
|||
sheet.write('A6', 'FROM DATE :', txt_l) |
|||
sheet.write('B6', date_from, txt_l) |
|||
if filters.get('date_to'): |
|||
sheet.write('C6', 'TO DATE :', txt_l) |
|||
sheet.write('D6', date_to, txt_l) |
|||
sheet.write('A7', 'Sale', heading) |
|||
sheet.write('B7', 'Date Order', heading) |
|||
sheet.write('C7', 'Customer', heading) |
|||
sheet.write('D7', 'Company', heading) |
|||
sheet.write('E7', 'Sales Person', heading) |
|||
sheet.write('F7', 'Product Name', heading) |
|||
sheet.write('G7', 'Product Code', heading) |
|||
sheet.write('H7', 'Quantity', heading) |
|||
sheet.write('I7', 'Price Subtotal', heading) |
|||
sheet.write('J7', 'Amount 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: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['number'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['date_order'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['customer'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['company'], txt_l) |
|||
sheet.write(row, col + 4, rec_data['salesman'], txt_l) |
|||
sheet.write(row, col + 5, rec_data['product']['en_US'], txt_l) |
|||
sheet.write(row, col + 6, rec_data['default_code'], txt_l) |
|||
sheet.write(row, col + 7, rec_data['product_uom_qty'], txt_l) |
|||
sheet.write(row, col + 8, rec_data['price_subtotal'], txt_l) |
|||
sheet.write(row, col + 9, rec_data['amount_total'], txt_l) |
|||
if filters.get('report_type') == 'report_by_product': |
|||
sheet.merge_range('B5:D5', 'Report By Products', txt_l) |
|||
if filters.get('date_from'): |
|||
sheet.write('A6', 'FROM DATE :', txt_l) |
|||
sheet.write('B6', date_from, txt_l) |
|||
if filters.get('date_to'): |
|||
sheet.write('C6', 'TO DATE :', txt_l) |
|||
sheet.write('D6', date_to, txt_l) |
|||
sheet.write('A7', 'Product', heading) |
|||
sheet.write('B7', 'Category', heading) |
|||
sheet.write('C7', 'Product Code', heading) |
|||
sheet.write('D7', 'Quantity', heading) |
|||
sheet.write('E7', 'Amount 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) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
sheet.write(row, col, rec_data['product']['en_US'], txt_l) |
|||
sheet.write(row, col + 1, rec_data['category'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['default_code'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['product_uom_qty'], txt_l) |
|||
sheet.write(row, col + 4, rec_data['amount_total'], txt_l) |
|||
if filters.get('report_type') == 'report_by_categories': |
|||
sheet.merge_range('B5:D5', 'Report By Categories', txt_l) |
|||
if filters.get('date_from'): |
|||
sheet.write('A6', 'FROM DATE :', txt_l) |
|||
sheet.write('B6', date_from, txt_l) |
|||
if filters.get('date_to'): |
|||
sheet.write('C6', 'TO DATE :', txt_l) |
|||
sheet.write('D6', date_to, txt_l) |
|||
sheet.write('B7', 'Category', heading) |
|||
sheet.write('C7', 'Qty', heading) |
|||
sheet.write('D7', 'Amount Total', 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) |
|||
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['qty'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['amount_total'], txt_l) |
|||
if filters.get('report_type') == 'report_by_salesperson': |
|||
sheet.merge_range('B5:D5', 'Report By Salesperson', txt_l) |
|||
if filters.get('date_from'): |
|||
sheet.write('A6', 'FROM DATE :', txt_l) |
|||
sheet.write('B6', date_from, txt_l) |
|||
if filters.get('date_to'): |
|||
sheet.write('C6', 'TO DATE :', txt_l) |
|||
sheet.write('D6', date_to, txt_l) |
|||
sheet.write('A7', 'Sales Person', heading) |
|||
sheet.write('B7', 'Total Order', heading) |
|||
sheet.write('C7', 'Total Qty', heading) |
|||
sheet.write('D7', 'Total Amount', 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) |
|||
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['order'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['qty'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['amount'], txt_l) |
|||
if filters.get('report_type') == 'report_by_state': |
|||
sheet.merge_range('B5:D5', 'Report By State ', txt_l) |
|||
if filters.get('date_from'): |
|||
sheet.write('A6', 'FROM DATE :', txt_l) |
|||
sheet.write('B6', date_from, txt_l) |
|||
if filters.get('date_to'): |
|||
sheet.write('C6', 'TO DATE :', txt_l) |
|||
sheet.write('D6', date_to, txt_l) |
|||
sheet.write('A7', 'State', heading) |
|||
sheet.write('B7', 'Total Count', heading) |
|||
sheet.write('C7', 'Quantity', heading) |
|||
sheet.write('D7', 'Amount', 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) |
|||
for rec_data in report_data_main: |
|||
row += 1 |
|||
if rec_data['state'] == 'draft': |
|||
sheet.write(row, col, 'Quotation', txt_l) |
|||
elif rec_data['state'] == 'sent': |
|||
sheet.write(row, col, 'Quotation Sent', txt_l) |
|||
elif rec_data['state'] == 'sale': |
|||
sheet.write(row, col, 'Sale Order', txt_l) |
|||
sheet.write(row, col + 1, rec_data['count'], txt_l) |
|||
sheet.write(row, col + 2, rec_data['qty'], txt_l) |
|||
sheet.write(row, col + 3, rec_data['amount'], txt_l) |
|||
workbook.close() |
|||
output.seek(0) |
|||
response.stream.write(output.read()) |
|||
output.close() |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from . import sale_order_report |
@ -0,0 +1,43 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (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. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from odoo import api, models |
|||
|
|||
|
|||
class SaleOrderReport(models.AbstractModel): |
|||
"""Model for generating sale order reports. |
|||
Methods: |
|||
_get_report_values: Returns the report data for a sale order report.""" |
|||
|
|||
_name = 'report.sale_report_generator.sale_order_report' |
|||
_description = 'Sale Report Generator' |
|||
|
|||
@api.model |
|||
def _get_report_values(self, docids, data=None): |
|||
"""Returns the report data for a sale order report.""" |
|||
if self.env.context.get('sale_order_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 |
@ -0,0 +1,11 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Report Function--> |
|||
<record id="action_report_sale_all_in_one" model="ir.actions.report"> |
|||
<field name="name">Sales All In One Report</field> |
|||
<field name="model">sales.report</field> |
|||
<field name="report_type">qweb-pdf</field> |
|||
<field name="report_name">sale_report_generator.sale_order_report</field> |
|||
<field name="report_file">sale_report_generator.sale_order_report</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,400 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- It calls different reports depending on the selected filter in the application's user interface --> |
|||
<template id="sale_order_report"> |
|||
<t t-call="web.html_container"> |
|||
<t t-call="web.internal_layout"> |
|||
<t t-if="Filters.get('report_type')=='Report By Order'"> |
|||
<t t-call="sale_report_generator.report_order"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By Order Detail'"> |
|||
<t t-call="sale_report_generator.report_order_detail"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By Product'"> |
|||
<t t-call="sale_report_generator.report_product"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By Categories'"> |
|||
<t t-call="sale_report_generator.report_category"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By Sales Person'"> |
|||
<t t-call="sale_report_generator.report_salesman"/> |
|||
</t> |
|||
<t t-if="Filters.get('report_type')=='Report By State'"> |
|||
<t t-call="sale_report_generator.report_state"/> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
<!-- Pdf Order --> |
|||
<template id="report_order"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<br/> |
|||
<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-4"> |
|||
<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">Sale</th> |
|||
<th colspan="6" class="text-center">Date Order</th> |
|||
<th colspan="6" class="text-right">Customer</th> |
|||
<th colspan="6" class="text-right">Sales Person</th> |
|||
<th colspan="6" class="text-center">Total Qty</th> |
|||
<th colspan="6" class="text-left">Amount Total</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['number']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['date_order']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['customer']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['sales_man']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['sum']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['amount_total']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- Pdf Order By Detail --> |
|||
<template id="report_order_detail"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<br/> |
|||
<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-4"> |
|||
<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-right"> |
|||
<th colspan="6">Sale</th> |
|||
<th colspan="6">Date Order</th> |
|||
<th colspan="6">Customer</th> |
|||
<th colspan="6">Company</th> |
|||
<th colspan="6">Sales Person</th> |
|||
<th colspan="6">Product Name</th> |
|||
<th colspan="6">Product Code</th> |
|||
<th colspan="6">Quantity</th> |
|||
<th colspan="6">Price Subtotal</th> |
|||
<th colspan="6">Amount Total</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['number']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['date_order']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['customer']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['company']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['salesman']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['product']['en_US']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['default_code']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['product_uom_qty']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['price_subtotal']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['amount_total']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- Pdf Product --> |
|||
<template id="report_product"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<br/> |
|||
<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-4"> |
|||
<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">Product</th> |
|||
<th colspan="6" class="text-center">Category</th> |
|||
<th colspan="6" class="text-center">Product Code |
|||
</th> |
|||
<th colspan="6" class="text-center">Quantity</th> |
|||
<th colspan="6">Amount Total</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['product']['en_US']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['category']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['default_code']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['product_uom_qty']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['amount_total']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- Pdf Category --> |
|||
<template id="report_category"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<br/> |
|||
<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-4"> |
|||
<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">Category</th> |
|||
<th colspan="6">Qty</th> |
|||
<th colspan="6">Amount Total</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_main_line_data" |
|||
t-as="sale_category"> |
|||
<tr style="font-weight: bold;"> |
|||
<td colspan="6"> |
|||
<span t-esc="sale_category['name']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="sale_category['qty']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="sale_category['amount_total']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- PDF Salesman --> |
|||
<template id="report_salesman"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<br/> |
|||
<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-4"> |
|||
<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">Sales Person</th> |
|||
<th colspan="6">Total Order</th> |
|||
<th colspan="6">Total Qty</th> |
|||
<th colspan="6">Total Amount</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['order']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['qty']"/> |
|||
</td> |
|||
<td colspan="6"> |
|||
<span t-esc="main['amount']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
<!-- PDF By State --> |
|||
<template id="report_state"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<span t-if="Filters.get('date_from')"> |
|||
<strong>From:</strong> |
|||
<t t-esc="Filters['date_from']"/> |
|||
</span> |
|||
<br/> |
|||
<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-4"> |
|||
<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">State</th> |
|||
<th colspan="6">Total Count</th> |
|||
<th colspan="6">Quantity</th> |
|||
<th colspan="6">Amount</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="report_main_line_data" t-as="main"> |
|||
<tr style="font-weight: bold;"> |
|||
<td colspan="6"> |
|||
<t t-if="main['state'] == 'draft'"> |
|||
<span>Quotation</span> |
|||
</t> |
|||
<t t-if="main['state'] == 'sent'"> |
|||
<span>Quotation Sent</span> |
|||
</t> |
|||
<t t-if="main['state'] == 'sale'"> |
|||
<span>Sale Order</span> |
|||
</t> |
|||
</td> |
|||
<td colspan="6" class="text-left"> |
|||
<span t-esc="main['count']"/> |
|||
</td> |
|||
<td colspan="6" class="text-left"> |
|||
<span t-esc="main['qty']"/> |
|||
</td> |
|||
<td colspan="6" class="text-left"> |
|||
<span t-esc="main['amount']"/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
</div> |
|||
</template> |
|||
</odoo> |
|
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 565 B |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 168 KiB |
After Width: | Height: | Size: 117 KiB |
After Width: | Height: | Size: 182 KiB |
After Width: | Height: | Size: 164 KiB |
After Width: | Height: | Size: 108 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 45 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 302 KiB |
After Width: | Height: | Size: 194 KiB |
After Width: | Height: | Size: 123 KiB |
After Width: | Height: | Size: 127 KiB |
After Width: | Height: | Size: 162 KiB |
After Width: | Height: | Size: 123 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 121 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 20 KiB |
@ -0,0 +1,653 @@ |
|||
<!DOCTYPE html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="UTF-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|||
<title>Odoo App 3 Index</title> |
|||
<!-- Bootstrap CSS --> |
|||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" |
|||
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> |
|||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> |
|||
<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=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> |
|||
</head> |
|||
<body> |
|||
<section> |
|||
<div class="container" style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" |
|||
style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> |
|||
<div class="my-3"> |
|||
<img src="assets/misc/Cybrosys R.png" style="width:auto !important; height:40px !important"> |
|||
</div> |
|||
<div class="my-3 d-flex align-items-center"> |
|||
<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> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" |
|||
style="margin: 80px 0px !important;"> |
|||
<h1 style="font-size: 2.8rem;font-weight: 700; color: |
|||
#1A202C;"> |
|||
Sales All In One Report Generator</h1> |
|||
<p class="my-3 mb-4" |
|||
style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> |
|||
All In One Dynamic Report For Sales. |
|||
</p> |
|||
<div style="width: 80%; margin-top: 3rem;"> |
|||
<img src="assets/screenshots/hero-v17.gif" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5 mb-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#714b67 !important">Key Highlights |
|||
</p> |
|||
</div> |
|||
<div class="row py-4"> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Generates Report for a Specific Date Range.</p> |
|||
<p class="m-0" style="color:#718096">Makes a report with details for a certain period of time you choose. |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Filtering Based on Different Aspects.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0;"> |
|||
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Print Reports in both PDF and XLSX format.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 col-sm-12 p-3"> |
|||
<div class="d-flex h-100" style="padding: 30px;border-radius: 12px; |
|||
background: #FFF; |
|||
box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> |
|||
<div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; |
|||
display: flex; justify-content: center; align-items: center; |
|||
margin-right: 10px; flex-shrink: 0; "> |
|||
<i class="fa-solid fa-star " style="color: #fff;font-size:14px;"></i> |
|||
</div> |
|||
<div> |
|||
<p style="color: #1A202C;font-weight: 600; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Enterprise, Community and Odoo.sh Support.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container rounded" > |
|||
<ul class="nav nav-tabs d-flex" style="width: fit-content;margin: 0 auto;gap: 1rem;"> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
|||
class="active show" data-toggle="tab" href="#tab1" |
|||
style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> |
|||
<i class="fa-regular fa-image pr-2" style="color: #fff;"></i> |
|||
Screenshots</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
|||
data-toggle="tab" href="#tab2" |
|||
style="color: #fff;font-weight: 500; text-decoration: none;"><i |
|||
class="fa-solid fa-star pr-2" style="color: #fff;"></i>Features</a></li> |
|||
<li class="col text-center py-2 text-nowrap " |
|||
style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a |
|||
data-toggle="tab" href="#tab3" |
|||
style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i |
|||
class="fa-solid fa-book-open pr-2" style="color: #fff;"></i>Released Notes</a></li> |
|||
</ul> |
|||
<div class="tab-content" style="background-color: rgba(121, 113, 119, 0.04);"> |
|||
<div id="tab1" class="tab-pane fade in active show"> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_001.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sales Dynamic Report Menu.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_02.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
We can Apply Filters in Date Range</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_03.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Select the Report Type; by default, it is the Sales Report based on orders. After selecting filters, click the "Apply" button.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_04.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sales Report Based On Order Details.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_05.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sale Report Based On Product.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_06.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sales Report Based On Categories.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_07.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sales Report Based On Sales Person.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_08.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Sales Report Based On State.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> |
|||
<div |
|||
style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="row justify-content-center p-3 w-100 m-0"> |
|||
<img src="assets/screenshots/sale_report_gen_09.png" class="img-responsive" width="100%" height="auto"> |
|||
</div> |
|||
<div class="px-3"> |
|||
<h4 class="mt-2" |
|||
style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> |
|||
Print Reports in both PDF and XLSX format.</h4> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div id="tab2" class="tab-pane fade"> |
|||
<div class="col-mg-12" style="padding: 1rem 4rem;"> |
|||
<ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
|||
width="16px"></span>Generates Report for a specific date range.. |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
|||
width="16px"></span>Filtering based on different aspects. |
|||
</li> |
|||
<li class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" |
|||
width="16px"></span>Print Reports in both PDF and XLSX format. |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</div> |
|||
<div id="tab3" class="tab-pane fade"> |
|||
<div class="col-mg-12 active" style="padding: 1rem 4rem;"> |
|||
<div class="py-3" |
|||
style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> |
|||
<div class="d-flex mb-3" style="font-size: 0.8rem; font-weight: 500;"><span>Version |
|||
17.0.1.0.0</span><span class="px-2">|</span><span |
|||
style="color: #714B67;font-weight: 600;">Released on:19th January 2024</span> |
|||
</div> |
|||
<p class="m-0" |
|||
style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> |
|||
Sales All In One Report Generator.</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Related Products</p> |
|||
</div> |
|||
</div> |
|||
<div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> |
|||
<div class="carousel-inner"> |
|||
<div class="carousel-item active"> |
|||
<div class="row p-4"> |
|||
<div class="col-md-4"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/mrp_work_order_print/" style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/module_image-1.jpeg" alt="" width="100%" height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold">Print Work Order Details</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/top_selling_product_report/" style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/module_image (1).png" alt="" width="100%" height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold">Top/Least Selling Product Report</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_product_image/" style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/module_image.jpeg" alt="" width="100%" height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold">Sale Order Line Images</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item"> |
|||
<div class="row p-4"> |
|||
<div class="col-md-4"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/product_discount_limit/" style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/module_image (1).jpeg" alt="" width="100%" height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold">Product Discount Limit</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/individual_product_report/" style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px;"> |
|||
<img src="assets/modules/module_image (2).png" alt="" width="100%" height="auto"> |
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold">Product Sale Report Graph View</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4"> |
|||
<div class="p-3"> |
|||
<a href="https://apps.odoo.com/apps/modules/17.0/sale_report_advanced/" style="color: #000; text-decoration: none;"> |
|||
<div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> |
|||
<div style="width: 300px; "> |
|||
<img src="assets/modules/module_image.png" alt="" width="100%" height="auto"> |
|||
|
|||
</div> |
|||
<p class="text-center pt-2 text-black font-weight-bold">Advanced Sales Reports</p> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<a class="carousel-control-prev" href="#myCarousel" data-slide="prev" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-prev-icon"> |
|||
<i class="fa fa-chevron-left" style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
<a class="carousel-control-next" href="#myCarousel" data-slide="next" style="width: 35px; color: #000;"> |
|||
<span class="carousel-control-next-icon"> |
|||
<i class="fa fa-chevron-right" style="font-size: 24px;"></i> |
|||
</span> |
|||
</a> |
|||
</div> |
|||
|
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Services</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row py-3"> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/cogs.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Customization</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#DBC711; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/wrench.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/lifebuoy.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/user.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Hire Odoo Developer</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> |
|||
|
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#54A0FF; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/puzzle.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Integration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/update.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Migration</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/consultation.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Consultancy</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/training.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-4 col-sm-6 px-4 py-4"> |
|||
<div |
|||
style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> |
|||
<div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> |
|||
<div style="background-color:#E6BE26; border-radius: 50%; padding: 15px; width: 68px; |
|||
height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> |
|||
<img src="assets/icons/license.png" alt="service-icon" width="38px" height="auto"> |
|||
</div> |
|||
</div> |
|||
<p style="margin-top: 20px; font-weight: bold;">Odoo Licensing Consultancy</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Industries</p> |
|||
</div> |
|||
</div> |
|||
<div class="container"> |
|||
<div class="row my-5 py-4"> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100 " |
|||
style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/trading-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Trading</p> |
|||
<p>Easily procure and sell your products</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/pos-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">POS</p> |
|||
<p>Easy configuration and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px rgba(228, 227, 227, 0.373)"> |
|||
<img src="assets/icons/education-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Education</p> |
|||
<p>A platform for educational management</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-bottom: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/manufacturing-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Manufacturing</p> |
|||
<p>Plan, track and schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;"> |
|||
<img src="assets/icons/ecom-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">E-commerce & Website</p> |
|||
<p>Mobile friendly, awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/service-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Service Management</p> |
|||
<p>Keep track of services and invoice</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style="border-right: 1px solid rgb(209, 209, 209); padding: 30px; "> |
|||
<img src="assets/icons/restaurant-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Restaurant</p> |
|||
<p>Run your bar or restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-3 col-sm-6 p-0"> |
|||
<div class="d-flex flex-column h-100" |
|||
style=" padding: 30px;box-shadow: -5px 0 10px rgba(228, 227, 227, 0.373);"> |
|||
<img src="assets/icons/hotel-black.png" width="42px" height="auto" alt=""> |
|||
<p style="color: #714B67;font-weight: 600; margin-top: 10px; |
|||
font-size: 1.2rem; margin-bottom: 2px;">Hotel Management</p> |
|||
<p>An all-inclusive hotel management application</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> |
|||
<p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Support</p> |
|||
</div> |
|||
</div> |
|||
<div class="container my-5"> |
|||
<div class="row" style="background-color: #FFFAFE;"> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center" |
|||
style="border-right: 1px solid #D9D9D9;"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/support (1) 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
|||
<div style="padding: 0px 8px;"> |
|||
<span |
|||
style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need |
|||
Help?</span> |
|||
<p class="m-0" style="color:#718096;">Got questions or need help? Get in touch.</p> |
|||
<div style="font-weight: 400;"><span><img src="assets/misc/support-email.svg" alt="" |
|||
width="18px" |
|||
style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> |
|||
<div style="padding: 30px;"> |
|||
<div class="d-flex align-items-center"> |
|||
<img src="assets/misc/whatsapp 1.svg" alt="" width="60px" style="margin-right: 12px;"> |
|||
<div> |
|||
<span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> |
|||
<p class="m-0" style="color:#718096;">Say hi to us on WhatsApp!</p> |
|||
<div style="font-weight: 400; font-size: 16px;"><span><img src="assets/misc/phone.svg" |
|||
alt="" width="14px" |
|||
style="filter: invert(1); margin-right: 0.8rem;"></span>+91 |
|||
99456767686</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</section> |
|||
<!-- Optional JavaScript --> |
|||
<!-- jQuery first, then Popper.js, then Bootstrap JS --> |
|||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> |
|||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> |
|||
</body> |
|||
</html> |
@ -0,0 +1,172 @@ |
|||
a.dropdown-toggle.report-type { |
|||
margin: 10px; |
|||
} |
|||
.search-Result-Selection { |
|||
border: 2px solid #ccc; |
|||
margin-right: 30px; |
|||
margin-left: 10px; |
|||
border-radius: 10px; |
|||
max-width: 360px; |
|||
min-width: 250px; |
|||
min-height: 40px; |
|||
text-align: center; |
|||
padding: 0 12px |
|||
} |
|||
.table_sale_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.so-line { |
|||
height: 48px; |
|||
} |
|||
tr.table_sale_head th { |
|||
font-size: 18px; |
|||
text-align: center; |
|||
} |
|||
ul.dropdown-menu.show li { |
|||
margin-left: 10px; |
|||
height:20px; |
|||
} |
|||
ul.dropdown-menu.show a{ |
|||
color: #221c1c; |
|||
} |
|||
.table_view_sr { |
|||
overflow-y: overlay; |
|||
position: relative; |
|||
height: 800px; |
|||
max-width: 100%; |
|||
} |
|||
.time_range_pr { |
|||
width: 125px; |
|||
border: 2px solid #ccc; |
|||
border-radius: 5px; |
|||
padding: 20px; |
|||
} |
|||
.apply_sale { |
|||
margin-right: 5px; |
|||
padding: 4px; |
|||
} |
|||
#pdf, #xlsx, #apply_filter { |
|||
color: white; |
|||
background-color: #7c7bad; |
|||
border-color: #7c7bad; |
|||
} |
|||
a.dropdown-toggle.report-type { |
|||
margin: 10px; |
|||
} |
|||
.search-Result-Selection:hover{ |
|||
border:2px solid #eaeaea; |
|||
} |
|||
.dropdown-togglereport-type{ |
|||
min-height: 40px; |
|||
padding-top: 10px; |
|||
} |
|||
.low_case, #report_res { |
|||
text-transform: capitalize; |
|||
text-align: center; |
|||
} |
|||
#report_res{ |
|||
padding-right: 3px; |
|||
} |
|||
.print-btns { |
|||
margin-bottom: 30px; |
|||
} |
|||
.table_pr_head { |
|||
background-color: #7c7bad; |
|||
color: #fff; |
|||
padding: 20px; |
|||
margin: 20px; |
|||
height: 57px; |
|||
width: 100%; |
|||
border: 1px solid #000; |
|||
} |
|||
tr.pr-line { |
|||
height: 48px; |
|||
} |
|||
tr.table_pr_head th { |
|||
font-size: 18px; |
|||
text-align: center; |
|||
} |
|||
.table_view_pr { |
|||
overflow-y: scroll; |
|||
position: relative; |
|||
height: 500px; |
|||
max-width: 100%; |
|||
} |
|||
.my_custom_dropdown{ |
|||
min-width:200px; |
|||
height:150px; |
|||
padding: 20px; |
|||
} |
|||
.my_custom_dropdown input{ |
|||
height:25px; |
|||
} |
|||
.report_type { |
|||
min-height: 38px; |
|||
min-width: 150px; |
|||
padding: 10px 43px 10px; |
|||
} |
|||
.sub_container_right, .print-btns { |
|||
display: flex; |
|||
justify-content: space-around; |
|||
align-items: center; |
|||
} |
|||
@media screen and (max-width: 768px) { |
|||
.sub_container_right, .print-btns { |
|||
flex-flow: column; |
|||
align-items: center; |
|||
} |
|||
.sub_container_left { |
|||
order: 2; |
|||
margin: 0; |
|||
} |
|||
.sub_container_right { |
|||
flex-flow: row; |
|||
margin-bottom: 10px; |
|||
flex-wrap: wrap !important; |
|||
width: 100%; |
|||
} |
|||
} |
|||
@media screen and (max-width: 576px) { |
|||
.apply_filter { |
|||
width: 100%; |
|||
position: relative; |
|||
} |
|||
#apply_filter { |
|||
position: absolute; |
|||
margin: 30px 0 0; |
|||
top: 50%; |
|||
left: 50%; |
|||
-ms-transform: translate(-50%, -50%); |
|||
transform: translate(-50%, -50%); |
|||
margin-right: 25px; |
|||
} |
|||
#date_chose { |
|||
margin-bottom: 15px; |
|||
} |
|||
.sub_container_left { |
|||
order: 2; |
|||
display: flex; |
|||
margin-top: 50px; |
|||
width: 100%; |
|||
justify-content: center; |
|||
align-items: center; |
|||
flex-wrap: wrap !important; |
|||
} |
|||
.sub_container_right { |
|||
flex-direction: column; |
|||
} |
|||
} |
@ -0,0 +1,118 @@ |
|||
/** @odoo-module */ |
|||
const { Component } = owl; |
|||
import { registry } from "@web/core/registry"; |
|||
import { download } from "@web/core/network/download"; |
|||
import { useService } from "@web/core/utils/hooks"; |
|||
import { useRef, useState } from "@odoo/owl"; |
|||
import { BlockUI } from "@web/core/ui/block_ui"; |
|||
const actionRegistry = registry.category("actions"); |
|||
import { uiService } from "@web/core/ui/ui_service"; |
|||
// Extending components for adding purchase report class
|
|||
class SaleReport extends Component { |
|||
async setup() { |
|||
super.setup(...arguments); |
|||
this.uiService = useService('ui'); |
|||
this.initial_render = true; |
|||
this.orm = useService('orm'); |
|||
this.action = useService('action'); |
|||
this.start_date = useRef('date_from'); |
|||
this.end_date = useRef('date_to'); |
|||
this.order_by = useRef('order_by'); |
|||
this.state = useState({ |
|||
order_line: [], |
|||
data: null, |
|||
order:'Report By Sale Order', |
|||
order_by : 'report_by_order', |
|||
wizard_id : [] |
|||
}); |
|||
this.load_data(); |
|||
} |
|||
async load_data(wizard_id = null) { |
|||
/** |
|||
* Loads the data for the sales report. |
|||
*/ |
|||
let move_lines = '' |
|||
try { |
|||
if(wizard_id == null){ |
|||
this.state.wizard_id = await this.orm.create("sales.report",[{}]); |
|||
} |
|||
this.state.data = await this.orm.call("sales.report", "sale_report", [this.state.wizard_id]); |
|||
this.state.order_line = this.state.data.report_lines |
|||
} |
|||
catch (el) { |
|||
window.location.href |
|||
} |
|||
} |
|||
async apply_filter(ev) { |
|||
let filter_data = {} |
|||
this.state.order_by = this.order_by.el.value |
|||
this.state.order = this.order_by.el.selectedOptions[0].outerText |
|||
filter_data.date_from = this.start_date.el.value |
|||
filter_data.date_to = this.end_date.el.value |
|||
filter_data.report_type = this.order_by.el.value |
|||
let data = await this.orm.write("sales.report",this.state.wizard_id, filter_data); |
|||
this.load_data(this.state.wizard_id) |
|||
} |
|||
//This function call an rpc call to the model sales.report & function sale_report with args wizard_id
|
|||
async PrintPdf(ev){ |
|||
/** |
|||
* Generates and displays a PDF report for the sale orders. |
|||
* |
|||
* @param {Event} ev - The event object triggered by the action. |
|||
* @returns {Promise} - A promise that resolves to the result of the action. |
|||
*/ |
|||
ev.preventDefault(); |
|||
var self = this; |
|||
var action_title = self.props.action.display_name; |
|||
return self.action.doAction({ |
|||
'type': 'ir.actions.report', |
|||
'report_type': 'qweb-pdf', |
|||
'report_name': 'sale_report_generator.sale_order_report', |
|||
'report_file': 'sale_report_generator.sale_order_report', |
|||
'data': { |
|||
'report_data': this.state.data |
|||
}, |
|||
'context': { |
|||
'active_model': 'sales.report', |
|||
'landscape': 1, |
|||
'sale_order_report': true |
|||
}, |
|||
'display_name': 'sale Order', |
|||
}); |
|||
} |
|||
async PrintXlsx(){ |
|||
/** |
|||
* Generates and downloads an XLSX report for the sale orders. |
|||
*/ |
|||
var data = this.state.data |
|||
var action = { |
|||
'data': { |
|||
'model': 'sales.report', |
|||
'options': JSON.stringify(data['orders']), |
|||
'output_format': 'xlsx', |
|||
'report_data': JSON.stringify(data['report_lines']), |
|||
'report_name': 'Sales Report', |
|||
'dfr_data': JSON.stringify(data), |
|||
}, |
|||
}; |
|||
this.uiService.block(); |
|||
await download({ |
|||
url: '/sale_dynamic_xlsx_reports', |
|||
data: action.data, |
|||
complete: this.uiService.unblock(), |
|||
error: (error) => this.call('crash_manager', 'rpc_error', error), |
|||
}); |
|||
} |
|||
//Corresponding SaleOrder Tree,Form View
|
|||
async viewSaleOrder(ev){ |
|||
return this.action.doAction({ |
|||
type: "ir.actions.act_window", |
|||
res_model: 'sale.order', |
|||
res_id: parseInt(ev.target.id), |
|||
views: [[false, "form"]], |
|||
target: "current", |
|||
}); |
|||
} |
|||
} |
|||
SaleReport.template = 'SaleReport'; |
|||
actionRegistry.add("sales_report", SaleReport); |
@ -0,0 +1,534 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<templates> |
|||
<t t-name="SaleReport"> |
|||
<div class="SalesReportMaker"> |
|||
<div> |
|||
<center> |
|||
<h1 style="margin: 20px;">Sales Dynamic Report</h1> |
|||
</center> |
|||
</div> |
|||
</div> |
|||
<div class="print-btns"> |
|||
<div class="sub_container_left" |
|||
style="width: 285px; margin-left: 36px;"> |
|||
<div class=" report_print"> |
|||
<button type="button" class="btn btn-primary" id="pdf" |
|||
t-on-click="PrintPdf" |
|||
style="float: left; margin-right: 9px;"> |
|||
Print (PDF) |
|||
</button> |
|||
<button type="button" class="btn btn-primary" id="xlsx" |
|||
t-on-click="PrintXlsx"> |
|||
Export (XLSX) |
|||
</button> |
|||
</div> |
|||
</div> |
|||
<br/> |
|||
<div class="print-btns"> |
|||
<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 my_custom_dropdown" role="menu" |
|||
aria-labelledby="date_chose"> |
|||
<div class="form-group"> |
|||
<label class="" for="date_from">Start Date :</label> |
|||
<div class="input-group date" id="date_from" |
|||
data-target-input="nearest"> |
|||
<input type="date" name="date_from" |
|||
t-ref="date_from" |
|||
class="form-control datetimepicker-input" |
|||
data-target="#date_from" |
|||
t-att-name="prefix"/> |
|||
<div class="input-group-append" |
|||
data-target="#date_from" |
|||
data-toggle="datetimepicker" |
|||
style="pointer-events: none;"> |
|||
</div> |
|||
</div> |
|||
<label class="" for="date_to">End Date :</label> |
|||
<div class="input-group date" id="date_to" |
|||
data-target-input="nearest"> |
|||
<input type="date" name="date_to" |
|||
t-ref="date_to" |
|||
class="form-control datetimepicker-input" |
|||
data-target="#date_to" |
|||
t-att-name="prefix"/> |
|||
<div class="input-group-append" |
|||
data-target="#date_to" |
|||
data-toggle="datetimepicker" |
|||
style="pointer-events: none;"> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="sub_container_right"> |
|||
<div class="search-Result-Selection"> |
|||
<select id="selection" |
|||
class="report_type o_input me-3" |
|||
t-ref="order_by" |
|||
name="states[]"> |
|||
<option value="report_by_order" |
|||
selected=""> |
|||
Report By Order |
|||
</option> |
|||
<option value="report_by_order_detail"> |
|||
Report |
|||
By Order Detail |
|||
</option> |
|||
<option value="report_by_product">Report By |
|||
Product |
|||
</option> |
|||
<option value="report_by_categories">Report |
|||
By |
|||
Categories |
|||
</option> |
|||
<option value="report_by_salesperson"> |
|||
Report By Sales Person |
|||
</option> |
|||
<option value="report_by_state">Report By |
|||
State |
|||
</option> |
|||
</select> |
|||
</div> |
|||
<div class="apply_filter"> |
|||
<button type="button" id="apply_filter" |
|||
t-on-click="apply_filter" |
|||
class="btn btn-primary"> |
|||
Apply |
|||
</button> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- Report By Order --> |
|||
<div class="overflow-auto" style="height: 70vh; padding:10px"> |
|||
<div t-if="state.order_by == 'report_by_order'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_sale_head"> |
|||
<th>Sale</th> |
|||
<th class="mon_fld">Date Order</th> |
|||
<th class="mon_fld">Customer</th> |
|||
<th class="mon_fld">Sales Person</th> |
|||
<th class="mon_fld">Total Qty</th> |
|||
<th class="mon_fld">Amount Total</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="state.order_line" t-as="sale_report" |
|||
t-key="sale_report_index"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="so-line" |
|||
t-att-data-account-id="sale_report['id']" |
|||
t-attf-data-target=".a{{sale_report['id']}}"> |
|||
<td> |
|||
<t t-if="sale_report['id']"> |
|||
<div> |
|||
<a data-toggle="dropdown" |
|||
href="#" |
|||
id="table_toggle_btn" |
|||
data-bs-toggle="dropdown" |
|||
aria-expanded="false"> |
|||
<span class="caret"/> |
|||
<span> |
|||
<t t-esc="sale_report['number']"/> |
|||
</span> |
|||
</a> |
|||
<ul class="dropdown-menu" |
|||
role="menu" |
|||
aria-labelledby="dropdownMenu"> |
|||
<li> |
|||
<a class="view_sale_order" |
|||
tabindex="-1" |
|||
href="#" |
|||
t-att-id="sale_report['id']" |
|||
t-on-click="viewSaleOrder"> |
|||
View Sale Order |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</t> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['date_order']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['customer']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['sales_man']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['sum']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['amount_total']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<!-- Report for order detail--> |
|||
<div t-if="state.order_by == 'report_by_order_detail'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_sale_head"> |
|||
<th>Sale</th> |
|||
<th class="mon_fld">Date Order</th> |
|||
<th class="mon_fld">Customer</th> |
|||
<th class="mon_fld">Company</th> |
|||
<th class="mon_fld">Sales Person</th> |
|||
<th class="mon_fld">Product Name</th> |
|||
<th class="mon_fld">Product Code</th> |
|||
<th class="mon_fld">Quantity</th> |
|||
<th class="mon_fld">Price Subtotal</th> |
|||
<th class="mon_fld">Amount Total</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="state.order_line" t-as="sale_report" |
|||
t-key="sale_report_index"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="so-line" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="sale_report['id']" |
|||
t-attf-data-target=".a{{sale_report['id']}}"> |
|||
<td> |
|||
<t t-if="sale_report['id']"> |
|||
<div> |
|||
<a data-toggle="dropdown" |
|||
href="#" |
|||
id="table_toggle_btn" |
|||
data-bs-toggle="dropdown" |
|||
aria-expanded="false"> |
|||
<span class="caret"/> |
|||
<span> |
|||
<t t-esc="sale_report['number']"/> |
|||
</span> |
|||
</a> |
|||
<ul class="dropdown-menu" |
|||
role="menu" |
|||
aria-labelledby="dropdownMenu"> |
|||
<li> |
|||
<a class="view_sale_order" |
|||
tabindex="-1" |
|||
href="#" |
|||
t-att-id="sale_report['id']" |
|||
t-on-click="viewSaleOrder"> |
|||
View Sale Order |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</t> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['date_order']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['customer']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['company']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['salesman']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-out="sale_report.product?.en_US"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['default_code']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['product_uom_qty']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['price_subtotal']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['amount_total']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<!--Report for product--> |
|||
<div t-if="state.order_by == 'report_by_product'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_sale_head"> |
|||
<th>Product</th> |
|||
<th class="mon_fld">Sale Order No</th> |
|||
<th class="mon_fld">Category</th> |
|||
<th class="mon_fld">Product Code</th> |
|||
<th class="mon_fld">Quantity</th> |
|||
<th class="mon_fld">Amount Total</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="state.order_line" t-as="sale_report" |
|||
t-key="sate_report_index"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="so-line" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="sale_report['id']" |
|||
t-attf-data-target=".a{{sale_report['id']}}"> |
|||
<td style="border: 0px solid black;"> |
|||
<i class="fa fa-caret-down" role="img" |
|||
aria-label="Unfolded" |
|||
title="Unfolded"/> |
|||
<span> |
|||
<t t-out="sale_report.product?.en_US"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-if="sale_report['id']"> |
|||
<div> |
|||
<a data-toggle="dropdown" |
|||
href="#" |
|||
id="table_toggle_btn" |
|||
data-bs-toggle="dropdown" |
|||
aria-expanded="false"> |
|||
<span class="caret"/> |
|||
<span> |
|||
<t t-esc="sale_report['number']"/> |
|||
</span> |
|||
</a> |
|||
<ul class="dropdown-menu" |
|||
role="menu" |
|||
aria-labelledby="dropdownMenu"> |
|||
<li> |
|||
<a class="view_sale_order" |
|||
tabindex="-1" |
|||
href="#" |
|||
t-att-id="sale_report['id']" |
|||
t-on-click="viewSaleOrder"> |
|||
View Sale Order |
|||
</a> |
|||
</li> |
|||
</ul> |
|||
</div> |
|||
</t> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['category']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['default_code']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['product_uom_qty']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['amount_total']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<!--Report for Categories--> |
|||
<div t-if="state.order_by == 'report_by_categories'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_sale_head"> |
|||
<th>Category</th> |
|||
<th class="mon_fld">Qty</th> |
|||
<th class="mon_fld">Amount Total</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="state.order_line" t-as="sale_report" |
|||
t-key="sale_report_index"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="so-line" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="sale_report['id']" |
|||
t-attf-data-target=".a{{sale_report['id']}}"> |
|||
<td style="border: 0px solid black;"> |
|||
<span> |
|||
<t t-esc="sale_report['name']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['qty']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['amount_total']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<!--Report for Sales Person--> |
|||
<div t-if="state.order_by == 'report_by_salesperson'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_sale_head"> |
|||
<th>Sales Person</th> |
|||
<th class="mon_fld">Total Order</th> |
|||
<th class="mon_fld">Total Qty</th> |
|||
<th class="mon_fld">Total Amount</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="state.order_line" t-as="sale_report" |
|||
t-key="sale_report_index"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="so-line" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="sale_report['id']" |
|||
t-attf-data-target=".a{{sale_report['id']}}"> |
|||
<td style="border: 0px solid black;"> |
|||
<span> |
|||
<t t-esc="sale_report['name']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['order']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['qty']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['amount']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
<!--Report for State--> |
|||
<div t-if="state.order_by == 'report_by_state'"> |
|||
<div class="table_main_view"> |
|||
<table cellspacing="0" width="100%"> |
|||
<thead> |
|||
<tr class="table_sale_head"> |
|||
<th>State</th> |
|||
<th class="mon_fld">Total Count</th> |
|||
<th class="mon_fld">Quantity</th> |
|||
<th class="mon_fld">Amount</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="state.order_line" t-as="sale_report" |
|||
t-key="sale_report_index"> |
|||
<tr style="border: 1.5px solid black;" |
|||
class="so-line" |
|||
data-toggle="collapse" |
|||
t-att-data-account-id="sale_report['id']" |
|||
t-attf-data-target=".a{{sale_report['id']}}"> |
|||
<td style="border: 0px solid black;"> |
|||
<span> |
|||
<t t-if="sale_report['state'] == 'draft'"> |
|||
Quotation |
|||
</t> |
|||
<t t-if="sale_report['state'] == 'sent'"> |
|||
Quotation Sent |
|||
</t> |
|||
<t t-if="sale_report['state'] == 'sale'"> |
|||
Sales Order |
|||
</t> |
|||
<t t-if="sale_report['state'] == 'done'"> |
|||
Locked |
|||
</t> |
|||
<t t-if="sale_report['state'] == 'cancel'"> |
|||
Cancelled |
|||
</t> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['count']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['qty']"/> |
|||
</span> |
|||
</td> |
|||
<td style="text-align:center;"> |
|||
<span> |
|||
<t t-esc="sale_report['amount']"/> |
|||
</span> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</t> |
|||
</templates> |
@ -0,0 +1,14 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<odoo> |
|||
<!-- action that displays a Sales Report--> |
|||
<record id="sale_report_action" model="ir.actions.client"> |
|||
<field name="name">Sale Dynamic Report</field> |
|||
<field name="tag">sales_report</field> |
|||
</record> |
|||
<!--Menu Action--> |
|||
<menuitem id="sale_report_menu" |
|||
name="Sale Dynamic Report" |
|||
action="sale_report_action" |
|||
parent="sale.menu_sale_report" |
|||
sequence="41"/> |
|||
</odoo> |