Browse Source

[ADD] Initial Commit

pull/45/head
SHEREEF PT 8 years ago
parent
commit
29d89fb6e1
  1. 28
      pos_limited_account_entry/README.rst
  2. 22
      pos_limited_account_entry/__init__.py
  3. 36
      pos_limited_account_entry/__manifest__.py
  4. 3
      pos_limited_account_entry/models/__init__.py
  5. 29
      pos_limited_account_entry/models/pos_order.py
  6. BIN
      pos_limited_account_entry/static/description/banner.jpg
  7. BIN
      pos_limited_account_entry/static/description/cybro_logo.png
  8. BIN
      pos_limited_account_entry/static/description/icon.png
  9. 94
      pos_limited_account_entry/static/description/index.html
  10. BIN
      pos_limited_account_entry/static/description/pos_limit_1.png
  11. BIN
      pos_limited_account_entry/static/description/pos_limit_2.png
  12. BIN
      pos_limited_account_entry/static/description/pos_limit_3.png
  13. BIN
      pos_limited_account_entry/static/description/pos_limit_4.png
  14. BIN
      pos_limited_account_entry/static/description/pos_limit_5.png
  15. 4
      pos_quick_payment/__init__.py
  16. 4
      pos_quick_payment/__manifest__.py
  17. BIN
      pos_quick_payment/static/description/quick_payment_2.png
  18. 2
      vouchers_pos/__manifest__.py
  19. 46
      vouchers_pos/__manifest__.py~

28
pos_limited_account_entry/README.rst

@ -0,0 +1,28 @@
=====================================
Reduced Accounting Entries In POS V10
=====================================
This module allow passing a single journal entry for POS transaction.
Installation
============
Just select it from available modules to install it, there is no need to extra installations.
Configuration
=============
Nothing to configure.
Features
========
* Allows recording payments as a single entry.
* Eliminates unnecessary return entry in pos.
Credits
=======
Cybrosys Technologies, odoo@cybrosys.com

22
pos_limited_account_entry/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import models

36
pos_limited_account_entry/__manifest__.py

@ -0,0 +1,36 @@
# -*- coding: utf-8 -*-
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
# it under the terms of the GNU Affero General Public License (AGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# 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 for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
{
'name': "Reduced Accounting Entries In POS",
'version': '10.0.1.0.0',
'summary': """Single Transaction Entry In Pos""",
'description': """This module allows to record pos transaction as a single transaction""",
'author': "Cybrosys Techno Solutions",
'company': "Cybrosys Techno Solutions",
'website': "https://www.cybrosys.com",
'category': 'Point of Sale',
'depends': ['base', 'point_of_sale'],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
}

3
pos_limited_account_entry/models/__init__.py

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import pos_order

29
pos_limited_account_entry/models/pos_order.py

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
from odoo import models, api
from odoo.tools import float_is_zero
class PosReconciliation(models.Model):
_inherit = "pos.order"
@api.model
def _process_order(self, pos_order):
prec_acc = self.env['decimal.precision'].precision_get('Account')
pos_session = self.env['pos.session'].browse(pos_order['pos_session_id'])
if pos_session.state == 'closing_control' or pos_session.state == 'closed':
pos_order['pos_session_id'] = self._get_valid_session(pos_order).id
order = self.create(self._order_fields(pos_order))
journal_ids = set()
payment_sum = 0
for payments in pos_order['statement_ids']:
if not float_is_zero(payments[2]['amount'], precision_digits=prec_acc):
payment_sum = payment_sum + payments[2]['amount']
if payment_sum > pos_order['amount_total']:
payments[2]['amount'] = payments[2]['amount'] - pos_order['amount_return']
order.add_payment(self._payment_fields(payments[2]))
journal_ids.add(payments[2]['journal_id'])
if pos_session.sequence_number <= pos_order['sequence_number']:
pos_session.write({'sequence_number': pos_order['sequence_number'] + 1})
pos_session.refresh()
return order

BIN
pos_limited_account_entry/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

BIN
pos_limited_account_entry/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
pos_limited_account_entry/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

94
pos_limited_account_entry/static/description/index.html

@ -0,0 +1,94 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Reduced Accounting Entries In POS</h2>
<h3 class="oe_slogan">Allow passing a single journal entry for POS transaction.</h3>
<h4 class="oe_slogan"><a href="https://www.cybrosys.com">Cybrosys Technologies</a></h4>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="oe_picture">
<h3 class="oe_slogan">Overview</h3>
<p class="oe_mt32">
Currently payments in POS with return amount will create two accounting entries. This module eliminates unnecessary return entry in pos.
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="" style="text-align: center;">
<h4 class="oe_slogan">Pos Payment</h4>
<p>POS records every payment with extra amount as return amount.</p>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="pos_limit_1.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<div class="oe_row oe_spaced">
<div class="" style="text-align: center;">
<p>This module allows recording payments as a single entry.</p>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="pos_limit_2.png">
</div>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="pos_limit_3.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="" style="text-align: center;">
<p>Currently in Odoo POS, return amount creates an extra accounting entry.</p>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="pos_limit_4.png">
</div>
</div>
<div class="oe_span12">
<div class="oe_demo oe_picture oe_screenshot">
<img style="border:10px solid white;" src="pos_limit_5.png">
</div>
</div>
</div>
</div>
</section>
<section class="oe_container oe_dark">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<div>
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;border-radius: 0;" href="https://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
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
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;"
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<br>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" 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;"></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;"></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;padding-left: 8px;"></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;"></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;"></i></a></td>
</div>
</div>
</section>

BIN
pos_limited_account_entry/static/description/pos_limit_1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
pos_limited_account_entry/static/description/pos_limit_2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

BIN
pos_limited_account_entry/static/description/pos_limit_3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
pos_limited_account_entry/static/description/pos_limit_4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
pos_limited_account_entry/static/description/pos_limit_5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

4
pos_quick_payment/__init__.py

@ -2,7 +2,7 @@
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aswani PC(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
@ -16,7 +16,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
from . import models

4
pos_quick_payment/__manifest__.py

@ -2,7 +2,7 @@
###################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Aswani PC(<https://www.cybrosys.com>)
#
# This program is free software: you can modify
@ -16,7 +16,7 @@
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
###################################################################################
{

BIN
pos_quick_payment/static/description/quick_payment_2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 56 KiB

2
vouchers_pos/__manifest__.py

@ -24,7 +24,7 @@
'name': 'Coupons & Vouchers in Point of Sale',
'version': '10.0.1.0',
'category': 'Point of Sale',
'summary': 'Manage Point of Sale Vouchers & Coupon Codes',
'summary': 'Manage POS Vouchers & Coupon Codes',
'author': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions',

46
vouchers_pos/__manifest__.py~

@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Linto C T(<https://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 <https://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Coupons & Vouchers in Point of Sale',
'version': '10.0.1.0',
'category': 'Point of Sale',
'summary': 'Manage Point of Sale Vouchers & Coupon Codes',
'author': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'company': 'Cybrosys Techno Solutions',
'depends': ['point_of_sale'],
'data': [
'data/product_data.xml',
'views/gift_voucher.xml',
'views/applied_coupons.xml',
'views/pos_template.xml',
'security/ir.model.access.csv',
],
'qweb': [
'static/src/xml/*.xml'],
'images': ['static/description/banner.jpg'],
'license': 'AGPL-3',
'installable': True,
'application': False,
'auto_install': False,
}
Loading…
Cancel
Save