Browse Source

Informe de pos

sebas 2 years ago
commit
34a5282aa1

+ 22 - 0
__init__.py

@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Cybrosys Technologies Pvt. Ltd.
+#    Copyright (C) 2015-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
+#    Author: Sreejith P(<http://www.cybrosys.com>)
+#    you can modify it under the terms of the GNU LESSER
+#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
+
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
+#
+#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
+#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import models
+import reports

BIN
__init__.pyc


+ 40 - 0
__openerp__.py

@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Cybrosys Technologies Pvt. Ltd.
+#    Copyright (C) 2015-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
+#    Author: Sreejith P(<http://www.cybrosys.com>)
+#    you can modify it under the terms of the GNU LESSER
+#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
+
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
+#
+#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
+#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+    'name': 'POS Daily Report',
+    'version': '8.0.1.0.0',
+    'summary': 'POS Daily Sales Report with Dates,Sales Person & POS Filtrations',
+    'category': 'Point of sale',
+    'author': 'Cybrosys Techno Solutions',
+    'company': 'Cybrosys Techno Solutions',
+    'website': 'http://www.cybrosys.com',
+    'depends': [
+        'point_of_sale'
+    ],
+    'data': [
+        'views/pos_report_template.xml',
+        'views/pos_report_menu.xml',
+        'security/ir.model.access.csv',
+    ],
+    'license': 'AGPL-3',
+    'images': ['static/description/banner.jpg'],
+    'installable': True,
+    'auto_install': False,
+}

+ 43 - 0
__openerp__.py~

@@ -0,0 +1,43 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Cybrosys Technologies Pvt. Ltd.
+#    Copyright (C) 2015-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
+#    Author: Sreejith P(<http://www.cybrosys.com>)
+#    you can modify it under the terms of the GNU LESSER
+#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
+#
+#    It is forbidden to publish, distribute, sublicense, or sell copies
+#    of the Software or modified copies of the Software.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
+#
+#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
+#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+{
+    'name': 'POS Daily Report',
+    'version': '8.0.1.0.0',
+    'summary': 'POS Daily Sales Report',
+    'category': 'Point of sale',
+    'author': 'Cybrosys Techno Solutions',
+    'company': 'Cybrosys Techno Solutions',
+    'website': 'http://www.cybrosys.com',
+    'depends': [
+        'point_of_sale'
+    ],
+    'data': [
+        'views/pos_report_template.xml',
+        'views/pos_report_menu.xml',
+        'security/ir.model.access.csv',
+    ],
+    'license': 'AGPL-3',
+    'images': ['static/description/banner.jpg'],
+    'installable': True,
+    'auto_install': False,
+}

+ 21 - 0
models/__init__.py

@@ -0,0 +1,21 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Cybrosys Technologies Pvt. Ltd.
+#    Copyright (C) 2015-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
+#    Author: Sreejith P(<http://www.cybrosys.com>)
+#    you can modify it under the terms of the GNU LESSER
+#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
+
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
+#
+#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
+#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+import pos_daily_report

BIN
models/__init__.pyc


+ 44 - 0
models/pos_daily_report.py

@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Cybrosys Technologies Pvt. Ltd.
+#    Copyright (C) 2015-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
+#    Author: Sreejith P(<http://www.cybrosys.com>)
+#    you can modify it under the terms of the GNU LESSER
+#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
+
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
+#
+#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
+#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+from openerp import models, fields
+
+
+class POSReport(models.TransientModel):
+    _name = 'pos.report'
+
+    date = fields.Datetime(string="Desde Fecha", required=True)
+    date_to = fields.Datetime(string="Hasta", required=True)
+    select_company = fields.Many2one('res.company', string='Compañia', default=lambda self: self.env.user.company_id)
+    point_of_sale = fields.Many2one('pos.config', string='Punto de venta')
+    sales_person = fields.Many2one('res.users', string='Vendedor')
+
+    def print_sales_report(self, cr, uid, ids, context=None):
+        if context is None:
+            context = {}
+        data = self.read(cr, uid, ids)[0]
+        datas = {
+            'ids': context.get('active_ids'),
+            'model': 'pos.report',
+            'form': data,
+            'name': 'POS Report'
+        }
+        datas['form']['active_ids'] = context.get('active_ids', False)
+        return self.pool['report'].get_action(cr, uid, [], 'pos_sale_reports.report_daily_pos_sales', data=datas,
+                                              context=context)

BIN
models/pos_daily_report.pyc


+ 2 - 0
reports/__init__.py

@@ -0,0 +1,2 @@
+import pos_report_parser
+# import pos_xls_report

BIN
reports/__init__.pyc


+ 158 - 0
reports/pos_report_parser.py

@@ -0,0 +1,158 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Cybrosys Technologies Pvt. Ltd.
+#    Copyright (C) 2015-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
+#    Author: Sreejith P(<http://www.cybrosys.com>)
+#    you can modify it under the terms of the GNU LESSER
+#    GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
+
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
+#
+#    You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
+#    GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
+#    If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+from openerp.report import report_sxw
+from openerp.osv import osv
+from dateutil import parser
+import datetime
+import pytz
+from datetime import datetime
+from pytz import timezone
+from openerp import SUPERUSER_ID
+fmt1 = "%Y-%m-%d"
+
+
+class POSReportParser(report_sxw.rml_parse):
+
+    def __init__(self, cr, uid, name, context=None):
+        super(POSReportParser, self).__init__(cr, uid, name, context=context)
+        self.localcontext.update({
+            'get_sale_details': self.get_sale_details,
+            'get_date': self.get_date,
+            'get_change_date': self.get_change_date,
+
+        })
+        self.context = context
+
+    def get_date(self):
+        now_utc = datetime.now(timezone('UTC'))
+        user_list = self.pool.get('res.users').search(self.cr, self.uid,
+                                                      [('id', '=', SUPERUSER_ID)])
+        obj1 = self.pool.get('res.users').browse(self.cr, self.uid, user_list, context=None)
+        tz = pytz.timezone(obj1.partner_id.tz)
+        now_pacific = now_utc.astimezone(timezone(str(tz)))
+        current_date = now_pacific.strftime(fmt1)
+        return current_date
+
+    def get_change_date(self, data):
+        my_date = parser.parse(data['form']['date'])
+        proper_date_string = my_date.strftime('%d-%m-%Y')
+        return proper_date_string
+
+    def get_sale_details(self, data):
+        lines = []
+        if data['form']['sales_person'] and data['form']['point_of_sale']:
+            pos_orders = self.pool.get('pos.order').search(self.cr, self.uid,
+                                                           [('date_order', '>=', data['form']['date']),
+                                                            ('date_order', '<=', data['form']['date_to']),
+                                                            ('user_id', '=', data['form']['sales_person'][0]),
+                                                            ('session_id.config_id', '=', data['form']['point_of_sale'][0])])
+        elif data['form']['point_of_sale']:
+            pos_orders = self.pool.get('pos.order').search(self.cr, self.uid,
+                                                           [('date_order', '>=', data['form']['date']),
+                                                            ('date_order', '<=', data['form']['date_to']),
+                                                            ('session_id.config_id', '=', data['form']['point_of_sale'][0])])
+        elif data['form']['sales_person']:
+            pos_orders = self.pool.get('pos.order').search(self.cr, self.uid,
+                                                           [('date_order', '>=', data['form']['date']),
+                                                            ('date_order', '<=', data['form']['date_to']),
+                                                            ('user_id', '=', data['form']['sales_person'][0])])
+        else:
+            pos_orders = self.pool.get('pos.order').search(self.cr, self.uid,
+                                                           [('date_order', '>=', data['form']['date']),
+                                                            ('date_order', '<=', data['form']['date_to'])])
+        for order in pos_orders:
+            obj1 = self.pool.get('pos.order').browse(self.cr, self.uid, order, context=None)
+            if data['form']['select_company'][0] == 1:
+                order = obj1.name
+                if obj1.partner_id.name:
+                    partner = obj1.partner_id.name
+                else:
+                    partner = ""
+                price = obj1.amount_total
+                bank_amount = 0
+                cash_amount = 0
+                for statements in obj1.statement_ids:
+                    if statements.journal_id.name == "Debt":
+                        debit = debit + statements.amount
+                        continue
+                    if statements.journal_id.type == "bank":
+                        if statements.amount > price:
+                            bank_amount += price
+                        elif statements.amount > 0:
+                            bank_amount += statements.amount
+                        else:
+                            pass
+                    if statements.journal_id.type == "cash":
+                        if statements.amount > price:
+                            cash_amount += price
+                        elif statements.amount > 0:
+                            cash_amount += statements.amount
+                        else:
+                            pass
+
+                vals = {
+                    'order': order,
+                    'partner': partner,
+                    'price': price,
+                    'cash': cash_amount,
+                    'bank': bank_amount,
+                }
+                lines.append(vals)
+            elif obj1.company_id.id == data['form']['select_company'][0]:
+                order = obj1.name
+                if obj1.partner_id.name:
+                    partner = obj1.partner_id.name
+                else:
+                    partner = ""
+                price = obj1.amount_total
+                bank_amount = 0
+                cash_amount = 0
+                for statements in obj1.statement_ids:
+                    if statements.journal_id.type == "bank":
+                        if statements.amount > price:
+                            bank_amount += price
+                        elif statements.amount > 0:
+                            bank_amount += statements.amount
+                        else:
+                            pass
+                    if statements.journal_id.type == "cash":
+                        if statements.amount > price:
+                            cash_amount += price
+                        elif statements.amount > 0:
+                            cash_amount += statements.amount
+                        else:
+                            pass
+
+                vals = {
+                       'order': order,
+                       'partner': partner,
+                       'price': price,
+                       'cash': cash_amount,
+                       'bank': bank_amount,
+                       }
+                lines.append(vals)
+        return lines
+
+
+class PrintReport(osv.AbstractModel):
+    _name = 'report.pos_sale_reports.report_daily_pos_sales'
+    _inherit = 'report.abstract_report'
+    _template = 'pos_sale_reports.report_daily_pos_sales'
+    _wrapped_report_class = POSReportParser

BIN
reports/pos_report_parser.pyc


+ 2 - 0
security/ir.model.access.csv

@@ -0,0 +1,2 @@
+id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
+access_pos_report,access.pos_.report,model_pos_report,base.group_user,1,1,1,1

BIN
static/description/banner.jpg


BIN
static/description/cybro_logo.png


BIN
static/description/icon.png


+ 330 - 0
static/description/index.html

@@ -0,0 +1,330 @@
+<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-header-banner.png);background-repeat:no-repeat;background-size:100%;padding: 4% 0% 2% 15%;background-position-y: -107px;">
+    <div class="oe_row oe_spaced">
+        <h2 class="oe_slogan" style="font-size: 35px;color: #fff;font-weight: 900;text-transform: uppercase;text-align: left;margin: 0;margin-bottom: 16px;">
+          POS Daily Report
+        </h2>
+        <h3 class="oe_slogan" style="font-size: 25px;color: #fff;font-weight: 600;text-align: left;opacity: 1;margin: 0 !important;">
+          Pos Daily Sales Report
+        </h3>
+        <h5 class="oe_slogan" style="text-align: left;background: #fff;width: 293px;padding: 10px;color: #080808 !important;opacity: 1 !important;font-weight: 600;font-size: 20px;">
+            <a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">Cybrosys Technologies</a>
+        </h5>
+        <a style="color: #080808 !important;" href="https://www.cybrosys.com" target="_blank">
+            <div style="width: 215px;margin-left: 57%;text-align: center;background: #ffffff;height: 215px;border-radius: 100%;display: flex;justify-content: center;align-items: center;box-shadow: 0 0 12px 4px #00000059;">
+                    <img src="https://www.cybrosys.com/images/cybro-logo-oca.png" alt="cybrosys technologies" style="width: 180px;"/>
+            </div>
+        </a>
+    </div>
+</section>
+<section class="oe_container" style="padding: 1% 0% 3% 15%;">
+    <div class="oe_row oe_spaced">
+        <h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
+            Overview
+        </h2>
+        <h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
+           The module allows the user to saves your times in checking the pos daily sales. It gives the report from one touch
+        </h3>
+    </div>
+</section>
+<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-banner.png); background-repeat:no-repeat; background-size:cover;padding: 5% 0% 15% 15%;">
+    <div class="oe_row oe_spaced">
+        <h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
+             Features
+        </h2>
+         <h3 class="oe_slogan" style="text-align: left;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 18px;">
+            <img src="https://www.cybrosys.com/images/ico-tick.png">
+           Daily Report in a single Touch
+         </h3>
+    </div>
+</section>
+<section class="oe_container" style="padding: 3% 0% 0% 15%;">
+    <div class="oe_row oe_spaced">
+        <h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
+            Screenshots
+        </h2>
+        <h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
+            <img src="https://www.cybrosys.com/images/ico-tick.png">
+           Here it gives a relief to your employee for submitting daily sales reports.
+         </h3>
+        <div class="oe_row oe_spaced">
+            <img src="sale-reports-cybrosys-1.png" alt="" style="width: 95%;"/>
+        </div>
+        <h3 class="oe_slogan" style="text-align: left;padding: 5% 0% 0% 0%;font-size: 16px;width: 90%;margin: 0;margin-top: 14px;color: #000 !important;opacity: 1 !important;line-height: 24px;">
+            <div><img src="https://www.cybrosys.com/images/ico-tick.png">
+            It is a simple and attractive design. It gives details of payments and grand total of Total price and payment methods.
+            </div>
+        </h3>
+        <div class="oe_row oe_spaced">
+            <img src="sale-reports-cybrosys-2.png" alt="" style="width: 95%;"/>
+        </div>
+    </div>
+</section>
+<section class="oe_container" style="padding: 7px 0% 0% 3%;">
+     <div class="oe_row oe_spaced">
+         <a style="color: #080808 !important;" href="https://apps.odoo.com/apps/modules/browse?search=cybrosys" target="_blank"><img src="https://www.cybrosys.com/images/view-more-apps.jpg" alt="cybrosys technologies" style="width: 100%;margin-bottom: 50px;"/></a>
+     </div>
+</section>
+<section class="oe_container" style="padding: 1% 0% 0% 3%;">
+    <div class="oe_row oe_spaced">
+        <h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
+            Our Services
+        </h2>
+        <div style="display:flex;padding-top: 20px;justify-content: space-between;">
+            <div style="flex-basis: 18%;">
+
+                    <div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
+                            <a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-customization.png" style="width: 100%;border-radius: 100%;"/>
+                            </a>
+                    </div>
+                     <h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
+                         <a href="https://www.cybrosys.com/odoo-customization-and-installation/" target="_blank">
+                        Odoo Customization
+                         </a>
+                     </h3>
+
+            </div>
+             <div style="flex-basis: 18%;">
+
+                <div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
+                        <a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-erp-implementation.png" style="width: 100%;border-radius: 100%;"/>
+                        </a>
+                </div>
+                 <h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
+                    <a href="https://www.cybrosys.com/odoo-erp-implementation/" target="_blank">
+                        Odoo Implementation </a>
+                 </h3>
+
+            </div>
+             <div style="flex-basis: 18%;">
+
+                <div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
+                    <a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
+                        <img src="https://www.cybrosys.com/images/odoo-erp-integration.png" style="width: 100%;border-radius: 100%;"/>
+                    </a>
+                </div>
+                 <h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
+                    <a href="https://www.cybrosys.com/odoo-erp-integration/" target="_blank">
+                        Odoo Integration
+                    </a>
+                 </h3>
+
+            </div>
+             <div style="flex-basis: 18%;">
+
+                <div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
+                        <a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-erp-support.png" style="width: 100%;border-radius: 100%;"/>
+                        </a>
+                </div>
+                 <h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
+                    <a href="https://www.cybrosys.com/odoo-erp-support/" target="_blank">
+                        Odoo Support</a>
+                 </h3>
+
+            </div>
+             <div style="flex-basis: 18%;">
+
+                <div style="width:75px;height:75px;background:#fff; border-radius:100%;margin: auto;">
+                        <a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/hire-odoo-developer.png" style="width: 100%;border-radius: 100%;"/>
+                        </a>
+                </div>
+                 <h3 class="oe_slogan" style="font-weight: 800;text-align: center;font-size: 14px;width: 100%;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;">
+                    <a href="https://www.cybrosys.com/hire-odoo-developer/" target="_blank">
+                        Hire Odoo Developers</a>
+                 </h3>
+                     </a>
+            </div>
+        </div>
+    </div>
+</section>
+<section class="oe_container" style="padding: 1% 0% 0% 3%;">
+     <div class="oe_row oe_spaced">
+        <h2 class="oe_slogan" style="text-align: left;font-size: 28px;font-weight: 600;margin: 0px !important;">
+            Our Industries
+        </h2>
+        <div style="display:flex;justify-content: space-between;flex-wrap:wrap;">
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-index-industry-1.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                         <a href="https://www.cybrosys.com/odoo/industries/best-trading-erp/" target="_blank">
+                        Trading
+                         </a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        Easily procure and sell your products.
+                     </h3>
+                        </div>
+
+            </div>
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-index-industry-2.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/manufacturing-erp-software/" target="_blank">
+                            Manufacturing</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        Plan, track and schedule your operations.
+                     </h3>
+                        </div>
+
+            </div>
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
+                                <img src="https://www.cybrosys.com/images/odoo-index-industry-3.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/restaurant-management/" target="_blank">
+                            Restaurant</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        Run your bar or restaurant methodical.
+                     </h3>
+                        </div>
+
+            </div>
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
+                                <img src="https://www.cybrosys.com/images/odoo-index-industry-4.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/pos/" target="_blank">
+                            POS</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        Easy configuring and convivial selling.
+                     </h3>
+                        </div>
+
+            </div>
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-index-industry-5.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 0px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/ecommerce-website/" target="_blank">
+                            E-commerce & Website</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        Mobile friendly, awe-inspiring product pages.
+                     </h3>
+                    </div>
+            </div>
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-index-industry-6.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/hotel-management-erp/" target="_blank">
+                            Hotel Management</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        An all-inclusive hotel management application.
+                     </h3>
+                        </div>
+            </div>
+            <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
+                            <img src="https://www.cybrosys.com/images/odoo-index-industry-7.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/education-erp-software/" target="_blank">
+                            Education</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        A Collaborative platform for educational management.
+                     </h3>
+                        </div>
+            </div>
+             <div style="flex-basis: 32%;padding-top: 20px;">
+
+                    <div style="width:30%; float:left;">
+                        <div style="width:75px;height:75px;background:#CE2D48; border-radius:100%;float: left;text-align: left;">
+                            <a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
+                                <img src="https://www.cybrosys.com/images/odoo-index-industry-8.png" alt="Odoo Industry" style="    border-radius: 100%;width:100%;"/>
+                            </a>
+                        </div>
+                    </div>
+                    <div style="width:70%;float:left;">
+                     <h3 class="oe_slogan" style=" text-align: left;font-size: 14px;font-weight:800;width: auto;margin: 0;margin-top: 14px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 4px;margin-left: 16px;">
+                        <a href="https://www.cybrosys.com/odoo/industries/service-management/" target="_blank">
+                            Service Management</a>
+                     </h3>
+                    <h3 class="oe_slogan" style=" text-align: left;font-size: 13px;width: auto;margin: 0;margin-top:5px;color: #000 !important;margin-top: 5px;opacity: 1 !important;line-height: 17px;float: left;margin-top: 5px;margin-left: 16px;">
+                        Keep track of services and invoice accordingly.
+                     </h3>
+                        </div>
+            </div>
+        </div>
+    </div>
+</section>
+<section class="oe_container" style="background-image:url(https://www.cybrosys.com/images/odoo-index-footer-bg.png); background-repeat:no-repeat; background-size:100%;padding: 13% 0% 6% 0%;">
+    <div class="oe_slogan" style="margin-top:10px !important;margin-bottom: 0px;">
+        <div>
+            <a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="mailto:odoo@cybrosys.com"><i class="fa fa-envelope"></i> Email us </a>
+            <a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-phone"></i> Contact Us </a>
+            <a style="color: #5c5c5c !important;border-radius: 0;background: none;border: none;background: #fff;box-shadow: 0 10px 40px 0 rgba(62,57,107,0.07), 0 2px 9px 0 rgba(62, 57, 107, 0.05);border-radius: 30px;font-size: 12px;padding: 9px 26px;margin-right: 9px;width: 200px;text-transform: capitalize;" class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com/contact/"><i class="fa fa-check-square"></i> Request Customization </a>
+        </div>
+        <br>
+        <img src="https://www.cybrosys.com/images/logo.png" style="width: 190px; margin-bottom: 25px;margin-top: 30px;" class="center-block">
+        <div>
+          <a href="https://twitter.com/cybrosys" target="_blank"><i class="fa fa-2x fa-twitter" style="color:white;background: #00a0d1;width:35px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
+          <a href="https://www.linkedin.com/company/cybrosys-technologies-pvt-ltd" target="_blank"><i class="fa fa-2x fa-linkedin" style="color:white;background: #31a3d6;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
+          <a href="https://www.facebook.com/cybrosystechnologies" target="_blank"><i class="fa fa-2x fa-facebook" style="color:white;background: #3b5998;width:35px; ;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
+          <a href="https://plus.google.com/106641282743045431892/about" target="_blank"><i class="fa fa-2x fa-google-plus" style="color:white;background: #c53c2c;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
+          <a href="https://in.pinterest.com/cybrosys" target="_blank"><i class="fa fa-2x fa-pinterest" style="color:white;background: #ac0f18;width:35px;padding-left: 3px;height: 35px;padding-top: 7px;font-size: 21px;margin-right: 6px;border-radius: 100%;"></i></a></td>
+        </div>
+    </div>
+</section>
+
+
+
+

BIN
static/description/report.png


BIN
static/description/rewiz.png


BIN
static/description/sale-reports-cybrosys-1.png


BIN
static/description/sale-reports-cybrosys-2.png


+ 38 - 0
views/pos_report_menu.xml

@@ -0,0 +1,38 @@
+<?xml version="1.0"?>
+<openerp>
+    <data>
+        <record id="view_daily_sales_report" model="ir.ui.view">
+            <field name="name">POS Report</field>
+            <field name="model">pos.report</field>
+            <field name="arch" type="xml">
+                <form string="Choose your details">
+                    <group>
+                        <group>
+                            <field name="date"/>
+                            <field name="date_to"/>
+                        </group>
+                        <group>
+                            <field name="point_of_sale" options="{'no_create': True}"/>
+                            <field name="sales_person" options="{'no_create': True}"/>
+                        </group>
+                    </group>
+                    <footer>
+                        <button name="print_sales_report" string="Print Report" type="object"  class="oe_highlight"/>
+                        or
+                        <button string="Cancel" class="oe_link" special="cancel" />
+                    </footer>
+                </form>
+            </field>
+        </record>
+        <record id="get_daily_sales_report" model="ir.actions.act_window">
+            <field name="name">POS Report</field>
+            <field name="res_model">pos.report</field>
+            <field name="view_type">form</field>
+            <field name="view_mode">tree,form</field>
+            <field name="view_id" ref="view_daily_sales_report"/>
+            <field name="target">new</field>
+        </record>
+
+        <menuitem id="pos_daily_report" name="POS Report" parent="point_of_sale.menu_point_rep" action="get_daily_sales_report"/>
+    </data>
+</openerp>

+ 105 - 0
views/pos_report_template.xml

@@ -0,0 +1,105 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+	<data>
+        <report
+            id="pos_sales_report"
+            string="Daily Sales Report"
+            model="pos.order"
+            report_type="qweb-pdf"
+            file="pos_sale_reports.report_daily_pos_sales"
+            name="pos_sale_reports.report_daily_pos_sales"
+            menu="False"
+        />
+
+        <template id="report_daily_pos_sales">
+            <div class="page">
+                <h3><center><strong>Reporte de ventas POS</strong></center></h3>
+                <table width="100%" style="padding:40px;height:25px;margin-left:50px;margin-top:35px;border: None solid black;">
+                    <th width="30%"></th>
+                    <th width="30%"></th>
+                    <th width="30%"></th>
+                    <th width="30%"></th>
+                    <tr>
+                        <td style="width:50px;height:25px;margin-left:50px;" >
+                            <span>Compañia: </span><span t-att-style="style" t-esc="res_company.name"/>
+                        </td>
+                        <td style="width:50px;height:25px;margin-left:50px;" t-if="data['form']['point_of_sale']">
+                            <span t-if="data['form']['point_of_sale']">Punto de venta: </span>
+                            <span t-att-style="style" t-esc="data['form']['point_of_sale'][1]"/>
+                        </td>
+                    </tr>
+                    <tr>
+                        <td style="width:50px;height:25px;margin-left:50px;" align="left">
+                            <span>Fecha del Reporte: </span>
+                            <span t-att-style="style" t-esc="get_date()"/>
+                        </td>
+                        <td style="width:50px;height:25px;margin-left:50px;" align="left" t-if="data['form']['sales_person']">
+                            <span t-if="data['form']['sales_person']">Vendedor: </span>
+                            <span t-att-style="style" t-esc="data['form']['sales_person'][1]"/>
+                        </td>
+                    </tr>
+                </table>
+                <table class="table table-condensed">
+                    <thead>
+                        <tr >
+                            <th style="text-align:center; background-color:#9b9da0 !important;">SL.NO</th>
+                            <th style="text-align:center; background-color:#9b9da0 !important;">ORDER</th>
+                            <th style="text-align:center; background-color:#9b9da0 !important;">Cliente</th>
+                            <th style="text-align:center; background-color:#9b9da0 !important;">Total</th>
+                            <th style="text-align:center; background-color:#9b9da0 !important;" colspan="3">Pagos</th>
+                        </tr>
+                        <tr style="background-color: #d3d3d3;border-style: solid;">
+                           <th style="background-color:#9b9da0 !important;"></th>
+                           <th style="background-color:#9b9da0 !important;"></th>
+                           <th style="background-color:#9b9da0 !important;"></th>
+                           <th style="background-color:#9b9da0 !important;"></th>
+                           <th style="text-align:center; background-color:#9b9da0 !important;">CASH</th>
+                           <th style="text-align:center; background-color:#9b9da0 !important;" >BANK</th>
+                        </tr>
+                    </thead>
+                    <tbody>
+                        <t t-set="total_daily_sales" t-value='0'></t>
+                        <t t-set="total_cash" t-value='0'></t>
+                        <t t-set="total_bank" t-value='0'></t>
+                        <t t-set="sl_no" t-value='0'></t>
+                        <t t-foreach="get_sale_details(data)" t-as="b">
+
+                            <tr>
+                                <t t-set="sl_no" t-value="sl_no+1"/>
+                                <td>
+                                    <span t-att-style="style" t-esc="sl_no"/>
+                                </td>
+                                <td>
+                                    <span t-att-style="style" t-esc="b['order']"/>
+                                </td>
+                                <td>
+                                   <span t-att-style="style" t-esc="b['partner']"/>
+                                </td>
+                                <td>
+                                    <span t-att-style="style" t-esc="b['price']"/>
+                                </td>
+                                <td>
+                                    <span t-att-style="style" t-esc="b['cash']"/>
+                                </td>
+                                 <td>
+                                    <span t-att-style="style" t-esc="b['bank']"/>
+                                </td>
+                                <t t-set="total_daily_sales" t-value = "total_daily_sales + b['price'] "></t>
+                                <t t-set="total_cash" t-value = "total_cash + b['cash'] "></t>
+                                <t t-set="total_bank" t-value = "total_bank + b['bank'] "></t>
+                            </tr>
+                        </t>
+                        <tr>
+                            <td></td>
+                            <td></td>
+                            <td><strong>Total Gral</strong></td>
+                            <td><strong><t t-esc="total_daily_sales"></t></strong></td>
+                            <td><strong><t t-esc="total_cash"></t></strong></td>
+                            <td><strong><t t-esc="total_bank"></t></strong></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </template>
+</data>
+</openerp>