diff --git a/account_pdc/__manifest__.py~ b/account_pdc/__manifest__.py~ deleted file mode 100644 index da56b10d3..000000000 --- a/account_pdc/__manifest__.py~ +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## -{ - 'name': 'PDC Management', - 'version': '10.0.1.0', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'category': 'Accounting', - 'summary': 'Extension on Cheques to handle Post Dated Cheques', - 'description': """ Extension on Cheques to handle Post Dated Cheques """, - 'depends': ['account_check_printing'], - 'data': [ - 'data/account_pdc_data.xml', - 'views/account_payment_view.xml', - ], - 'images': ['static/description/banner.jpg'], - 'license': 'LGPL-3', - 'installable': True, - 'auto_install': False, -} diff --git a/account_pdc/static/description/index.html~ b/account_pdc/static/description/index.html~ deleted file mode 100644 index 48d9b1115..000000000 --- a/account_pdc/static/description/index.html~ +++ /dev/null @@ -1,92 +0,0 @@ -
-
-
-

PDC Management

-

...A simple way to handle Post Dated Checks...

-

Cybrosys Techno Solutions, www.cybrosys.com

-
-
-
- -
-
-
-

Configuration

-
-
-
- -
-
-
-

-

Select PDC:

-

As shown here, You have to select PDC to enable the PDC payment.This is only available with Journal of type 'Bank'

-

-
-
-
- -
-
-
-

At The Time of Payment You Will Have

-
-
-
- -
-
-
-

-

Payment form have two extra fields to put Bank and Check Detail.

-

-
-
-
-
-

-

When you select PDC, You have to put 'effective date' of PDC.

-

-
-
-
- -
-
-
-
- -
-

Need Any Help?

- -
- - - - - - - - diff --git a/account_pdc/static/description/pdc_banner.jpg b/account_pdc/static/description/pdc_banner.jpg index 785ea0bdb..4725892dd 100644 Binary files a/account_pdc/static/description/pdc_banner.jpg and b/account_pdc/static/description/pdc_banner.jpg differ diff --git a/account_pdc_payment_report/static/description/banner.jpg b/account_pdc_payment_report/static/description/banner.jpg index 6d7c263c7..4b011b00d 100644 Binary files a/account_pdc_payment_report/static/description/banner.jpg and b/account_pdc_payment_report/static/description/banner.jpg differ diff --git a/account_pdc_payment_report/static/description/index.html~ b/account_pdc_payment_report/static/description/index.html~ deleted file mode 100644 index 04c3af812..000000000 --- a/account_pdc_payment_report/static/description/index.html~ +++ /dev/null @@ -1,68 +0,0 @@ -
-
-
-

Payments Report

-

...A report of Payments with a filter for PDC...

-

Cybrosys Techno Solutions, www.cybrosys.com

-
-
-
- -
-
-
-
- -
-
-
-
- - -
-
-
-

- If you want to analyze the working of PDC Management Module, Click Here:

-
- -
-
-
- -
-

Need Any Help?

- -
- - - - - - - - diff --git a/cab_booking_management/static/description/banner.jpg b/cab_booking_management/static/description/banner.jpg index 6c2c82229..8c41b7664 100644 Binary files a/cab_booking_management/static/description/banner.jpg and b/cab_booking_management/static/description/banner.jpg differ diff --git a/crm_drag_back_permission/static/description/banner.jpg b/crm_drag_back_permission/static/description/banner.jpg index 590a4015d..c12609e8d 100644 Binary files a/crm_drag_back_permission/static/description/banner.jpg and b/crm_drag_back_permission/static/description/banner.jpg differ diff --git a/cron_failure_notification/__manifest__.py~ b/cron_failure_notification/__manifest__.py~ deleted file mode 100644 index 861c2129b..000000000 --- a/cron_failure_notification/__manifest__.py~ +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Nilmar Shereef() -# 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 . -# -############################################################################## -{ - 'name': "Cron Failure Notification", - 'version': '10.0.1.0.0', - 'category': 'Extra Tools', - 'summary': """Cron job failure log""", - 'description': """ - This module will generate error Logs for Scheduled - Actions / Cron jobs running in backend server - """, - 'author': "Cybrosys Techno Solutions", - 'company': "Cybrosys Techno Solutions", - 'website': "http://www.cybrosys.com", - 'depends': ['base', 'mail', 'web', 'base_setup'], - 'data': [ - 'views/logs_scheduled_actions_view.xml', - 'views/error_log_report_template.xml', - 'views/report.xml', - 'views/error_mail_template.xml' - ], - 'demo': [ - 'demo/ir_cron_demo.xml' - ], - 'images': ['static/description/banner.jpg'], - 'license': 'LGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/cron_failure_notification/static/description/banner.jpg b/cron_failure_notification/static/description/banner.jpg index 7521f7554..6d192eec9 100644 Binary files a/cron_failure_notification/static/description/banner.jpg and b/cron_failure_notification/static/description/banner.jpg differ diff --git a/developer_mode/__manifest__.py~ b/developer_mode/__manifest__.py~ deleted file mode 100644 index b9056a670..000000000 --- a/developer_mode/__manifest__.py~ +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Nilmar Shereef() -# 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 . -# -############################################################################## -{ - 'name': "Automatic Developer Mode", - 'summary': """Automatically Activate Developer Mode & Running DB Name on Left Top""", - 'version': '10.0.2.0.0', - 'author': 'Cybrosys Techno Solutions', - 'website': "http://www.cybrosys.com", - 'company': 'Cybrosys Techno Solutions', - 'category': 'Extra Tools', - 'depends': ['base', 'web', 'base_setup'], - 'data': [ - 'views/web_view.xml', - 'security/security_data.xml', - 'views/developer_mode_view.xml', - 'views/ir_rule_view.xml', - 'data/cybro_developer_data.xml', - ], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, -} diff --git a/developer_mode/static/description/banner.jpg b/developer_mode/static/description/banner.jpg index 6b7012c6a..0d748f903 100644 Binary files a/developer_mode/static/description/banner.jpg and b/developer_mode/static/description/banner.jpg differ diff --git a/developer_mode/static/description/index.html~ b/developer_mode/static/description/index.html~ deleted file mode 100644 index bd310bc2f..000000000 --- a/developer_mode/static/description/index.html~ +++ /dev/null @@ -1,95 +0,0 @@ -
-
-
-

Automatic Developer Mode

-

Developers, Keep up your smile!

-

Cybrosys Technologies , www.cybrosys.com

-
-
-

Keep smiling for the below reasons:

-
    -
  •    Automatically Trigger Developer Mode.
  • -
  •    Showing Running DB On Left Top.
  • -
  •    Update Modules Easily.
  • -
-
-
-
- -
-
-
-

-

This module makes you free from activating developer mode operations repeatedly. - When you login, It will trigger the DEVELOPER MODE automatically.

-

-
-
-
- -
-
-
-

-

As shown here, Simply automate the developer mode. It help developer in several perspective. NOTE That, you have to re-login after this module installation

-

-
-
-
- -
-
-
-
- -
-
-
-

-

The developer can identify running DB easily.

-

-
-
-
- -
-
-
-
- -
-
-
-

-

Easily update any module without opening the module form.

-

-
-
-
- -
-
-
-
- -
-

Need Any Help?

- - -
- - - - - - diff --git a/export_stockinfo_xls/__manifest__.py b/export_stockinfo_xls/__manifest__.py index 1fba75bc4..3c105b105 100644 --- a/export_stockinfo_xls/__manifest__.py +++ b/export_stockinfo_xls/__manifest__.py @@ -17,6 +17,7 @@ 'data': [ 'views/wizard_view.xml', ], + 'images': ['static/description/banner.jpg'], 'installable': True, 'auto_install': False, } diff --git a/export_stockinfo_xls/__manifest__.py~ b/export_stockinfo_xls/__manifest__.py~ deleted file mode 100644 index e8e80d3df..000000000 --- a/export_stockinfo_xls/__manifest__.py~ +++ /dev/null @@ -1,22 +0,0 @@ -{ - 'name': 'Export Product Stock in Excel', - 'version': '0.2', - 'category': 'Inventory', - 'license': "AGPL-3", - 'summary': "Current Stock Report for all Products in each Warehouse", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'depends': [ - 'base', - 'stock', - 'sale', - 'purchase', - 'report_xlsx' - ], - 'data': [ - 'views/wizard_view.xml', - ], - 'installable': True, - 'auto_install': False, -} diff --git a/export_stockinfo_xls/static/description/banner.jpg b/export_stockinfo_xls/static/description/banner.jpg new file mode 100644 index 000000000..5dfdf2c2b Binary files /dev/null and b/export_stockinfo_xls/static/description/banner.jpg differ diff --git a/payment_receipt_invoice/README.rst b/payment_receipt_invoice/README.rst index f85ab60e3..269adb53b 100644 --- a/payment_receipt_invoice/README.rst +++ b/payment_receipt_invoice/README.rst @@ -1,7 +1,6 @@ Account Payment Receipt v10 =========================== - -This module will print payment receipts with paid details +This module will print detailed payment receipts. Credits diff --git a/payment_receipt_invoice/__init__.py b/payment_receipt_invoice/__init__.py index be6313a49..b89de25f3 100644 --- a/payment_receipt_invoice/__init__.py +++ b/payment_receipt_invoice/__init__.py @@ -2,8 +2,8 @@ ############################################################################## # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy,Fasluca() # you can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL v3), Version 3. # @@ -20,4 +20,3 @@ # If not, see . # ############################################################################## -import models diff --git a/payment_receipt_invoice/__manifest__.py b/payment_receipt_invoice/__manifest__.py index d949cdca6..1442e0157 100644 --- a/payment_receipt_invoice/__manifest__.py +++ b/payment_receipt_invoice/__manifest__.py @@ -2,8 +2,8 @@ ############################################################################## # # Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() +# Copyright (C) 2017-TODAY Cybrosys Technologies(). +# Author: Niyas Raphy,Fasluca() # you can modify it under the terms of the GNU LESSER # GENERAL PUBLIC LICENSE (LGPL v3), Version 3. # @@ -23,8 +23,8 @@ { 'name': 'Account Payment Receipt', 'summary': """Payment Receipt With Paid Details""", - 'version': '0.3', - 'description': """""", + 'version': '10.0.1.0', + 'description': """Payment Receipt With Paid Details""", 'author': 'Cybrosys Techno Solutions', 'company': 'Cybrosys Techno Solutions', 'website': 'http://www.cybrosys.com', @@ -32,9 +32,9 @@ 'depends': ['base', 'account'], 'license': 'AGPL-3', 'data': [ - 'views/receipt_print_template.xml', - 'views/account_payment_print.xml', - ], + 'views/report_payment.xml', + 'views/report.xml', + ], 'demo': [], 'images': ['static/description/banner.jpg'], 'installable': True, diff --git a/payment_receipt_invoice/models/__init__.py b/payment_receipt_invoice/models/__init__.py deleted file mode 100644 index 33720fea2..000000000 --- a/payment_receipt_invoice/models/__init__.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() -# 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 . -# -############################################################################## -import account_receipt_parser diff --git a/payment_receipt_invoice/models/account_receipt_parser.py b/payment_receipt_invoice/models/account_receipt_parser.py deleted file mode 100644 index f5f17ea3a..000000000 --- a/payment_receipt_invoice/models/account_receipt_parser.py +++ /dev/null @@ -1,91 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Niyas Raphy() -# 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 . -# -############################################################################## -import json -from odoo.report import report_sxw -from odoo.osv import osv -from odoo import api -from odoo.http import request - - -class AccountReceiptParser(report_sxw.rml_parse): - - def __init__(self, cr, uid, name, context=None): - super(AccountReceiptParser, self).__init__(cr, uid, name, context=context) - self.localcontext.update({ - 'get_details': self.get_details, - 'get_details_invoice': self.get_details_invoice, - }) - self.context = context - - @api.multi - def get_details_invoice(self, doc): - lines = [] - if doc.number: - acc_inv = request.env['account.invoice'] - acc_inv_rec = acc_inv.search([('number', '=', doc.number)]) - total_amount = acc_inv_rec.amount_total - if acc_inv_rec.state == 'draft': - balance_amount = total_amount - else: - balance_amount = acc_inv_rec.residual - paid = total_amount - balance_amount - vals = { - 'total_amount': total_amount, - 'balance_amount': balance_amount, - 'paid': paid, - } - lines.append(vals) - else: - vals = { - 'total_amount': doc.amount_total, - 'balance_amount': doc.amount_total, - 'paid': 0, - } - lines.append(vals) - return lines - - @api.multi - def get_details(self, doc): - lines = [] - if doc.number: - acc_inv = request.env['account.invoice'] - acc_inv_rec = acc_inv.search([('number', '=', doc.number)]) - d = json.loads(acc_inv_rec.payments_widget) - for payment in d['content']: - vals = { - 'memo': payment['name'], - 'amount': payment['amount'], - 'method': payment['journal_name'], - 'date': payment['date'], - } - lines.append(vals) - return lines - - -class PrintReport(osv.AbstractModel): - _name = 'report.payment_receipt_invoice.report_payment' - _inherit = 'report.abstract_report' - _template = 'payment_receipt_invoice.report_payment' - _wrapped_report_class = AccountReceiptParser - - diff --git a/payment_receipt_invoice/static/description/banner.jpg b/payment_receipt_invoice/static/description/banner.jpg index 7b577dc0a..3a1695045 100644 Binary files a/payment_receipt_invoice/static/description/banner.jpg and b/payment_receipt_invoice/static/description/banner.jpg differ diff --git a/payment_receipt_invoice/static/description/customer_invoice_form_view.png b/payment_receipt_invoice/static/description/customer_invoice_form_view.png deleted file mode 100644 index 0af91bed4..000000000 Binary files a/payment_receipt_invoice/static/description/customer_invoice_form_view.png and /dev/null differ diff --git a/payment_receipt_invoice/static/description/customer_receipt.png b/payment_receipt_invoice/static/description/customer_receipt.png deleted file mode 100644 index 7f0a34cb7..000000000 Binary files a/payment_receipt_invoice/static/description/customer_receipt.png and /dev/null differ diff --git a/payment_receipt_invoice/static/description/diff_curr_repo.png b/payment_receipt_invoice/static/description/diff_curr_repo.png new file mode 100644 index 000000000..16385dbb1 Binary files /dev/null and b/payment_receipt_invoice/static/description/diff_curr_repo.png differ diff --git a/payment_receipt_invoice/static/description/index.html b/payment_receipt_invoice/static/description/index.html index a072a26d5..c1b977f3c 100644 --- a/payment_receipt_invoice/static/description/index.html +++ b/payment_receipt_invoice/static/description/index.html @@ -1,103 +1,100 @@

Payment Receipt Report

-

Customer Receipts & Vendor Payment Report

-

Cybrosys Techno Solutions, www.cybrosys.com

+

Customer & Vendor Payment Receipt

+

Cybrosys Techno Solutions, www.cybrosys.com

-
+ +
- ☀ Generate Customer invoice receipt with payment details.
- ☀ Generate Vendor receipt with payment details.
+ ☀ Generate Receipt for Customer & Supplier Payment.
+ ☀ Supports Multi Currency.
-

Customer Invoice

-

Customer Invoice Form View

+

Print Customer/Supplier Payment

+

Payment Form


-
- +
+ +
-

Customer Receipt Print

+

Invoices Paid by above payment


-
- +
+ +
+
+ +
-

Customer Receipt Report

+

Payment Receipt


-
- +
+
+
-
+ +
-

Vendor Bill

-

Vendor Bill Form View

-

-
-

-
- +
+ +
-
-
-
-

Vendor Receipt Print

-
-

-
-

-
- -
-
-
-
-

Vendor Receipt Report

-
-

-
-

-
- +
+
+ +
-
-

Need Any Help?

- - -
+
+

Need Any Help?

+ +
diff --git a/payment_receipt_invoice/static/description/invoices.png b/payment_receipt_invoice/static/description/invoices.png new file mode 100644 index 000000000..2d2f4fef1 Binary files /dev/null and b/payment_receipt_invoice/static/description/invoices.png differ diff --git a/payment_receipt_invoice/static/description/payment.png b/payment_receipt_invoice/static/description/payment.png new file mode 100644 index 000000000..3d6b46542 Binary files /dev/null and b/payment_receipt_invoice/static/description/payment.png differ diff --git a/payment_receipt_invoice/static/description/receipt_print_customer.png b/payment_receipt_invoice/static/description/receipt_print_customer.png deleted file mode 100644 index 68ac64059..000000000 Binary files a/payment_receipt_invoice/static/description/receipt_print_customer.png and /dev/null differ diff --git a/payment_receipt_invoice/static/description/receipt_report2.png b/payment_receipt_invoice/static/description/receipt_report2.png new file mode 100644 index 000000000..33c4e95ba Binary files /dev/null and b/payment_receipt_invoice/static/description/receipt_report2.png differ diff --git a/payment_receipt_invoice/static/description/same_curr_repo.png b/payment_receipt_invoice/static/description/same_curr_repo.png new file mode 100644 index 000000000..788eaccb3 Binary files /dev/null and b/payment_receipt_invoice/static/description/same_curr_repo.png differ diff --git a/payment_receipt_invoice/static/description/vendor_invoice_form.png b/payment_receipt_invoice/static/description/vendor_invoice_form.png deleted file mode 100644 index b61e73b09..000000000 Binary files a/payment_receipt_invoice/static/description/vendor_invoice_form.png and /dev/null differ diff --git a/payment_receipt_invoice/static/description/vendor_print_button.png b/payment_receipt_invoice/static/description/vendor_print_button.png deleted file mode 100644 index 15e38d4e7..000000000 Binary files a/payment_receipt_invoice/static/description/vendor_print_button.png and /dev/null differ diff --git a/payment_receipt_invoice/static/description/vendor_receipt.png b/payment_receipt_invoice/static/description/vendor_receipt.png deleted file mode 100644 index 8d0603df2..000000000 Binary files a/payment_receipt_invoice/static/description/vendor_receipt.png and /dev/null differ diff --git a/payment_receipt_invoice/views/account_payment_print.xml b/payment_receipt_invoice/views/account_payment_print.xml deleted file mode 100644 index 4b719f9f8..000000000 --- a/payment_receipt_invoice/views/account_payment_print.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - diff --git a/payment_receipt_invoice/views/receipt_print_template.xml b/payment_receipt_invoice/views/receipt_print_template.xml deleted file mode 100644 index 3be8f4271..000000000 --- a/payment_receipt_invoice/views/receipt_print_template.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - diff --git a/payment_receipt_invoice/views/report.xml b/payment_receipt_invoice/views/report.xml new file mode 100644 index 000000000..751cc9b14 --- /dev/null +++ b/payment_receipt_invoice/views/report.xml @@ -0,0 +1,13 @@ + + + + + + diff --git a/payment_receipt_invoice/views/report_payment.xml b/payment_receipt_invoice/views/report_payment.xml new file mode 100644 index 000000000..b75e09c10 --- /dev/null +++ b/payment_receipt_invoice/views/report_payment.xml @@ -0,0 +1,137 @@ + + + + + + + + \ No newline at end of file diff --git a/pos_chatter/__manifest__.py~ b/pos_chatter/__manifest__.py~ deleted file mode 100644 index fc0005426..000000000 --- a/pos_chatter/__manifest__.py~ +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Nilmar Shereef() -# 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 . -# -############################################################################## -{ - 'name': "POS Chat Box", - 'summary': """Chat in POS""", - 'description': "This module adds chat interface in Point of sale screen.", - 'author': "Cybrosys Techno Solutions", - 'company': "Cybrosys Techno Solutions", - 'website': "http://www.cybrosys.com", - 'category': 'Point Of Sale', - 'version': '0.4', - 'depends': ['base', 'point_of_sale'], - 'data': ['views/pos_chat.xml'], - 'qweb': ['static/src/xml/pos_msg.xml'], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, -} diff --git a/pos_chatter/static/description/banner.jpg b/pos_chatter/static/description/banner.jpg index 78370eb22..38c272b83 100644 Binary files a/pos_chatter/static/description/banner.jpg and b/pos_chatter/static/description/banner.jpg differ diff --git a/pos_restaurant_floor_facility/__manifest__.py~ b/pos_restaurant_floor_facility/__manifest__.py~ deleted file mode 100644 index cb29d9152..000000000 --- a/pos_restaurant_floor_facility/__manifest__.py~ +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Nilmar Shereef() -# 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 . -# -############################################################################## -{ - 'name': 'Floor Wise Charge in Restaurant', - 'version': '10.0.2.0.0', - 'summary': """Product Price Change Based on Floor of POS Restaurant.""", - 'description': """Module adds the facility charge of floor with each products in POS restaurant""", - 'author': 'Cybrosys Techno Solutions', - 'website': "http://www.cybrosys.com", - 'company': 'Cybrosys Techno Solutions', - 'category': 'Point Of Sale', - 'depends': ['point_of_sale', - 'pos_restaurant'], - 'data': [ - 'views/pos_restaurant_extra_facility.xml', - 'views/templates.xml', - ], - 'images': ['static/description/banner.jpg'], - 'license': 'LGPL-3', - 'installable': True, - 'auto_install': False, -} diff --git a/pos_restaurant_floor_facility/static/description/banner.jpg b/pos_restaurant_floor_facility/static/description/banner.jpg index a501ca611..8f4a5505c 100644 Binary files a/pos_restaurant_floor_facility/static/description/banner.jpg and b/pos_restaurant_floor_facility/static/description/banner.jpg differ diff --git a/pos_restaurant_floor_facility/static/src/js/facility_floor.js~ b/pos_restaurant_floor_facility/static/src/js/facility_floor.js~ deleted file mode 100644 index a8d75d907..000000000 --- a/pos_restaurant_floor_facility/static/src/js/facility_floor.js~ +++ /dev/null @@ -1,20 +0,0 @@ -odoo.define('pos_restaurant_floor_facility.floor_facility_rate_addition', function (require) { -'use strict'; -alert("aaaaaaaa"); -var models = require('point_of_sale.models'); -var screens = require('point_of_sale.screens'); -var restaurant = require('pos_restaurant.floors'); - -models.load_fields("restaurant.floor",['facility_service_percentage']); - -screens.ProductScreenWidget.include({ - click_product: function(product) { - if(product.to_weight && this.pos.config.iface_electronic_scale){ - this.gui.show_screen('scale',{product: product}); - }else{ - this.pos.get_order().add_product(product,{ price: product.price + - (product.price * this.pos.table.floor.facility_service_percentage)/100}); - } - } -}); -}); \ No newline at end of file diff --git a/project_lifeline/__manifest__.py~ b/project_lifeline/__manifest__.py~ deleted file mode 100644 index 934d97a87..000000000 --- a/project_lifeline/__manifest__.py~ +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Nilmar Shereef() -# 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 . -# -############################################################################## -{ - 'name': "Lifeline for Task", - 'summary': """Lifeline Progressbar for Tasks (100% -> 0%)""", - 'description': """Calculates the time remaining based on live time & deadline.""", - 'author': 'Cybrosys Techno Solutions', - 'website': "http://www.cybrosys.com", - 'company': 'Cybrosys Techno Solutions', - 'category': 'Project', - 'version': '0.2', - 'depends': ['base', 'project'], - 'data': [ - 'views/task_lifeline_view.xml', - 'views/progress_bar_view.xml', - 'views/progress_bar_settings.xml', - ], - 'images': ['static/description/banner.jpg'], - 'installable': True, - 'auto_install': False, -} diff --git a/project_lifeline/static/description/banner.jpg b/project_lifeline/static/description/banner.jpg index ff24e05f6..4a467ea22 100644 Binary files a/project_lifeline/static/description/banner.jpg and b/project_lifeline/static/description/banner.jpg differ diff --git a/project_time_spend/__manifest__.py~ b/project_time_spend/__manifest__.py~ deleted file mode 100644 index eeb91c878..000000000 --- a/project_time_spend/__manifest__.py~ +++ /dev/null @@ -1,17 +0,0 @@ -{ - 'name': 'Task Statusbar', - 'author': 'Nilmar Shereef PT', - 'website': 'www.cybrosys.com', - 'category': 'Project', - 'version': '10.0.0.3', - 'summary': 'Calculates the time spend based on assigning date and deadline', - 'depends': [ - 'base', - 'project', - ], - 'data': [ - 'security/ir.model.access.csv', - 'views/project_statusbar_view.xml', - ], - 'installable': True, -} \ No newline at end of file diff --git a/sale_discount_total/__manifest__.py b/sale_discount_total/__manifest__.py index 53b2ce905..ccbb8e4b6 100644 --- a/sale_discount_total/__manifest__.py +++ b/sale_discount_total/__manifest__.py @@ -27,6 +27,7 @@ Module to manage discount on total amount in Sale. ], 'demo': [ ], + 'images': ['static/description/banner.jpg'], 'application': True, 'installable': True, 'auto_install': False, diff --git a/sale_discount_total/__manifest__.py~ b/sale_discount_total/__manifest__.py~ deleted file mode 100644 index 56aa9bfcb..000000000 --- a/sale_discount_total/__manifest__.py~ +++ /dev/null @@ -1,33 +0,0 @@ -{ - 'name': 'Sale Discount on Total Amount', - 'version': '1.0', - 'category': 'sale', - 'summary': "Discount on total in Sale and invoice with Discount limit and approval", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - - 'description': """ - -Sale Discount for Total Amount -======================= -Module to manage discount on total amount in Sale. - as an specific amount or percentage -""", - 'depends': ['sale', - 'account' - ], - 'data': [ - 'views/sale_view.xml', - 'views/account_invoice_view.xml', - 'views/invoice_report.xml', - 'views/sale_order_report.xml', - 'views/res_config_view.xml', - - ], - 'demo': [ - ], - 'application': True, - 'installable': True, - 'auto_install': False, -} diff --git a/sale_discount_total/static/description/banner.jpg b/sale_discount_total/static/description/banner.jpg new file mode 100644 index 000000000..ccb8e1556 Binary files /dev/null and b/sale_discount_total/static/description/banner.jpg differ diff --git a/sale_invoice_tag_pass/__manifest__.py~ b/sale_invoice_tag_pass/__manifest__.py~ deleted file mode 100644 index 96d050854..000000000 --- a/sale_invoice_tag_pass/__manifest__.py~ +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# Author: Nilmar Shereef() -# 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 . -# -############################################################################## -{ - 'name': 'Sales Tags To Invoice Tags', - 'version': '0.1', - 'description': """Pass the sales tags to its invoice""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'category': 'sale', - 'depends': ['account', 'base', 'sale'], - 'license': 'AGPL-3', - 'data': [ - 'views/sale_invoice_tag_pass_view.xml' - ], - 'demo': [], - 'images': ['static/description/banner.jpg'], - 'installable': True, - 'auto_install': False, - -} \ No newline at end of file diff --git a/sale_invoice_tag_pass/static/description/banner.jpg b/sale_invoice_tag_pass/static/description/banner.jpg index cef2552ca..ee9ad4851 100644 Binary files a/sale_invoice_tag_pass/static/description/banner.jpg and b/sale_invoice_tag_pass/static/description/banner.jpg differ diff --git a/timesheets_by_employee/__manifest__.py~ b/timesheets_by_employee/__manifest__.py~ deleted file mode 100644 index 5e7a4c17a..000000000 --- a/timesheets_by_employee/__manifest__.py~ +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2009-TODAY Cybrosys Technologies(). -# 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 . -# -############################################################################## -{ - 'name': 'Timesheet PDF Report', - 'version': '10.0.1.0.0', - "category": "Generic Modules/Human Resources", - 'sequence': 25, - 'summary': 'Timesheet PDF Report of Employee', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'www.cybrosys.com', - 'depends': ['hr_timesheet'], - 'data': [ - 'report/report_timesheets.xml', - 'wizard/timesheet_wizard.xml', - ], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/timesheets_by_employee/static/description/banner.jpg b/timesheets_by_employee/static/description/banner.jpg index 61a8c596b..42ece4b3f 100644 Binary files a/timesheets_by_employee/static/description/banner.jpg and b/timesheets_by_employee/static/description/banner.jpg differ diff --git a/timesheets_by_employee/static/description/index.html~ b/timesheets_by_employee/static/description/index.html~ deleted file mode 100644 index 406f404b0..000000000 --- a/timesheets_by_employee/static/description/index.html~ +++ /dev/null @@ -1,50 +0,0 @@ -
-
-

Timesheet PDF Report of Employee

-

..Print timesheets of selected employees..

-

Cybrosys Technologies , www.cybrosys.com

-
-

- This module by Cybrosys Technologies allows to print the timesheets of selected employee. It will group all timesheet lines - of selected employee in wizard by period. -

-
-
- -
-
-
-

Generate Timesheet Report Wizard With Dates:

-
- -
-
-
-
- -
-
-
-

PDF Report Of Employee Timesheet:

-
- -
-
-
-
- -
-

Need Any Help?

- - -
diff --git a/total_payable_receivable/static/description/banner.jpg b/total_payable_receivable/static/description/banner.jpg index fb39ef1e4..64cbfeeb8 100644 Binary files a/total_payable_receivable/static/description/banner.jpg and b/total_payable_receivable/static/description/banner.jpg differ diff --git a/total_payable_receivable/static/description/index.html~ b/total_payable_receivable/static/description/index.html~ deleted file mode 100644 index 4df3a2f92..000000000 --- a/total_payable_receivable/static/description/index.html~ +++ /dev/null @@ -1,47 +0,0 @@ -
-
-

Change Password Option To Users

-

It gives an option to change their own password

-

Author : Cybrosys Techno Solutions , www.cybrosys.com

-
-
- -
-
-

User Changing Password

-
-

- ☛ User can change password from his own account
-

-
- -
-
-
-
- -
-

Need Any Help?

- -
diff --git a/total_payable_receivable/views/total_payable_view.xml~ b/total_payable_receivable/views/total_payable_view.xml~ deleted file mode 100644 index a2468f930..000000000 --- a/total_payable_receivable/views/total_payable_view.xml~ +++ /dev/null @@ -1,15 +0,0 @@ - - - - - res.partner.inherit - res.partner - - - - - - - - - \ No newline at end of file diff --git a/website_coupon/README.rst b/website_coupon/README.rst deleted file mode 100644 index 3c603cce5..000000000 --- a/website_coupon/README.rst +++ /dev/null @@ -1,17 +0,0 @@ -Website Coupon Code v10 -======================= -Manage Website Coupon Codes & Its Operations - -Features -======== - -* Create and configure vouchers for providing a discount. -* Generate a unique code for each coupon. -* Limit the usage of coupons by each user. -* Provide a validity for the coupons. -* History of coupons used by each customer. - - -Credits -======= -Cybrosys Techno Solutions, diff --git a/website_coupon/__init__.py b/website_coupon/__init__.py deleted file mode 100644 index e4d608c06..000000000 --- a/website_coupon/__init__.py +++ /dev/null @@ -1,25 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## - -import models -import controllers diff --git a/website_coupon/__manifest__.py b/website_coupon/__manifest__.py deleted file mode 100644 index 4de275ff9..000000000 --- a/website_coupon/__manifest__.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## -{ - 'name': 'Website Coupon Code', - 'version': '10.0.1.0.0', - 'category': 'Website', - 'sequence': 56, - 'summary': 'Manage Website Coupon Codes & Its Operations', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'website': 'http://www.cybrosys.com', - 'depends': ['sale', 'website_sale'], - 'data': [ - 'data/product_data.xml', - 'views/gift_voucher.xml', - 'views/applied_coupons.xml', - 'views/templates.xml', - ], - 'installable': True, - 'license': 'LGPL-3', - 'auto_install': False, -} diff --git a/website_coupon/controllers/__init__.py b/website_coupon/controllers/__init__.py deleted file mode 100644 index 016e5ec5d..000000000 --- a/website_coupon/controllers/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## - -import main diff --git a/website_coupon/controllers/main.py b/website_coupon/controllers/main.py deleted file mode 100644 index 6f0bf75c6..000000000 --- a/website_coupon/controllers/main.py +++ /dev/null @@ -1,138 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## - -from odoo import http, tools, _ -from odoo.http import request -from datetime import datetime -from dateutil import parser - - -class WebsiteCoupon(http.Controller): - - @http.route(['/shop/cart'], type='http', auth="public", website=True) - def cart(self, **post): - """This function is overwritten because we need to pass the value 'coupon_not_available' - to the template, inorder to show the error message to the user that, 'this coupon is not available'. """ - - order = request.website.sale_get_order() - if order: - from_currency = order.company_id.currency_id - to_currency = order.pricelist_id.currency_id - compute_currency = lambda price: from_currency.compute(price, to_currency) - else: - compute_currency = lambda price: price - - values = { - 'website_sale_order': order, - 'compute_currency': compute_currency, - 'suggested_products': [], - } - if order: - _order = order - if not request.env.context.get('pricelist'): - _order = order.with_context(pricelist=order.pricelist_id.id) - values['suggested_products'] = _order._cart_accessories() - - if post.get('type') == 'popover': - return request.render("website_sale.cart_popover", values) - - if post.get('code_not_available'): - values['code_not_available'] = post.get('code_not_available') - elif post.get('coupon_not_available'): - values['coupon_not_available'] = post.get('coupon_not_available') - - return request.render("website_sale.cart", values) - - @http.route(['/shop/gift_coupon'], type='http', auth="public", website=True) - def gift_coupon(self, promo_voucher, **post): - """This function will be executed when we click the apply button of the voucher code in the website. - It will verify the validity and availability of that coupon. If it can be applied, the coupon will be applied - and coupon balance will also be updated""" - - curr_user = request.env.user - coupon = request.env['gift.coupon'].sudo().search([('code', '=', promo_voucher)], limit=1) - flag = True - if coupon and coupon.total_avail > 0: - applied_coupons = request.env['partner.coupon'].sudo().search([('coupon', '=', promo_voucher), - ('partner_id', '=', curr_user.partner_id.id)], limit=1) - - # checking voucher date and limit for each user for this coupon--------------------- - if coupon.partner_id: - if curr_user.partner_id.id != coupon.partner_id.id: - flag = False - today = datetime.now().date() - if flag and applied_coupons.number < coupon.limit and today <= parser.parse(coupon.voucher.expiry_date).date(): - # checking coupon validity --------------------------- - # checking date of coupon ------------ - if coupon.start_date and coupon.end_date: - if today < parser.parse(coupon.start_date).date() or today > parser.parse(coupon.end_date).date(): - flag = False - elif coupon.start_date: - if today < parser.parse(coupon.start_date).date(): - flag = False - elif coupon.end_date: - if today > parser.parse(coupon.end_date).date(): - flag = False - else: - flag = False - else: - flag = False - if flag: - product_id = coupon.voucher.product_id - voucher_val = coupon.voucher_val - type = coupon.type - coupon_product = request.env['product.product'].sudo().search([('name', '=', 'Gift Coupon')], limit=1) - if coupon_product: - order = request.website.sale_get_order(force_create=1) - flag_product = False - for line in order.order_line: - if line.product_id.name == 'Gift Coupon': - flag = False - break - if line.product_id.name == product_id.name: - flag_product = True - if flag and flag_product: - if type == 'fixed': - res = coupon_product.product_tmpl_id.write({'list_price': -voucher_val}) - elif type == 'percentage': - amount = 0 - for line in order.order_line: - amount += line.product_uom_qty * line.price_unit - amount_final = (voucher_val/100) * amount - res = coupon_product.product_tmpl_id.write({'list_price': -amount_final}) - value = order._cart_update(product_id=coupon_product.id, set_qty=1, add_qty=1) - - # updating coupon balance-------------- - total = coupon.total_avail - 1 - coupon.write({'total_avail': total}) - # creating a record for this partner, i.e he is used this coupen once----------- - if not applied_coupons: - res = curr_user.partner_id.write({'applied_coupon': [(0, 0, {'partner_id': curr_user.partner_id.id, - 'coupon': coupon.code, - 'number': 1})]}) - else: - applied_coupons.write({'number': applied_coupons.number + 1}) - else: - return request.redirect("/shop/cart?coupon_not_available=1") - - return request.redirect("/shop/cart") diff --git a/website_coupon/data/product_data.xml b/website_coupon/data/product_data.xml deleted file mode 100644 index c5683902a..000000000 --- a/website_coupon/data/product_data.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - Gift Coupon - - - - \ No newline at end of file diff --git a/website_coupon/models/__init__.py b/website_coupon/models/__init__.py deleted file mode 100644 index 5dc55fd1b..000000000 --- a/website_coupon/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## - -import gift_voucher diff --git a/website_coupon/models/gift_voucher.py b/website_coupon/models/gift_voucher.py deleted file mode 100644 index f58b3cf7e..000000000 --- a/website_coupon/models/gift_voucher.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################## -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2017-TODAY Cybrosys Technologies(). -# Author: Cybrosys Technologies() -# 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 . -# -############################################################################## - -import string -import random -from odoo import models, fields, api, _ -from odoo.exceptions import UserError - - -class GiftVoucher(models.Model): - _name = 'gift.voucher' - - name = fields.Char(string="Name", required=True) - product_id = fields.Many2one('product.product', string="Product", required=True) - min_value = fields.Integer(string="Minimum Voucher Value", required=True) - max_value = fields.Integer(string="Maximum Voucher Value", required=True) - expiry_date = fields.Date(string="Expiry Date", required=True) - - -class GiftCoupon(models.Model): - _name = 'gift.coupon' - - def get_code(self): - size = 7 - chars = string.ascii_uppercase + string.digits - return ''.join(random.choice(chars) for _ in range(size)) - - _sql_constraints = [ - ('name_uniq', 'unique (code)', "Code already exists !"), - ] - - name = fields.Char(string="Name", required=True) - code = fields.Char(string="Code", default=get_code) - voucher = fields.Many2one('gift.voucher', string="Voucher", required=True) - start_date = fields.Date(string="Start Date") - end_date = fields.Date(string="End Date") - partner_id = fields.Many2one('res.partner', string="Limit to a Single Partner") - limit = fields.Integer(string="Total Available For Each User", default=1) - total_avail = fields.Integer(string="Total Available", default=1) - - voucher_val = fields.Float(string="Voucher Value") - type = fields.Selection([ - ('fixed', 'Fixed Amount'), - ('percentage', 'Percentage'), - ], store=True, default='fixed') - - @api.onchange('voucher_val') - def check_val(self): - if self.voucher_val > self.voucher.max_value or self.voucher_val < self.voucher.min_value: - raise UserError(_("Please check the voucher value")) - - -class CouponPartner(models.Model): - _name = 'partner.coupon' - - partner_id = fields.Many2one('res.partner', string="Partner") - coupon = fields.Char(string="Coupon Applied") - number = fields.Integer(string="Number of Times Used") - - -class PartnerExtended(models.Model): - _inherit = 'res.partner' - - applied_coupon = fields.One2many('partner.coupon', 'partner_id', string="Coupons Applied") diff --git a/website_coupon/static/description/apply_coupon.png b/website_coupon/static/description/apply_coupon.png deleted file mode 100644 index 006f73d60..000000000 Binary files a/website_coupon/static/description/apply_coupon.png and /dev/null differ diff --git a/website_coupon/static/description/banner.jpg b/website_coupon/static/description/banner.jpg deleted file mode 100644 index 32924c0a7..000000000 Binary files a/website_coupon/static/description/banner.jpg and /dev/null differ diff --git a/website_coupon/static/description/coupon.png b/website_coupon/static/description/coupon.png deleted file mode 100644 index f60126d5c..000000000 Binary files a/website_coupon/static/description/coupon.png and /dev/null differ diff --git a/website_coupon/static/description/cybro_logo.png b/website_coupon/static/description/cybro_logo.png deleted file mode 100644 index bb309114c..000000000 Binary files a/website_coupon/static/description/cybro_logo.png and /dev/null differ diff --git a/website_coupon/static/description/enable_voucher.png b/website_coupon/static/description/enable_voucher.png deleted file mode 100644 index 94c8a9663..000000000 Binary files a/website_coupon/static/description/enable_voucher.png and /dev/null differ diff --git a/website_coupon/static/description/history.png b/website_coupon/static/description/history.png deleted file mode 100644 index 797f09961..000000000 Binary files a/website_coupon/static/description/history.png and /dev/null differ diff --git a/website_coupon/static/description/icon.png b/website_coupon/static/description/icon.png deleted file mode 100644 index 6a55fc088..000000000 Binary files a/website_coupon/static/description/icon.png and /dev/null differ diff --git a/website_coupon/static/description/index.html b/website_coupon/static/description/index.html deleted file mode 100644 index 7465bd809..000000000 --- a/website_coupon/static/description/index.html +++ /dev/null @@ -1,140 +0,0 @@ -
-
-

Website Coupon

-

..Manage Your Coupon Codes Simply..

-

Cybrosys Technologies , www.cybrosys.com

-
-

- This module by Cybrosys Technologies allows us to manage our customers in a better way by providing - discount coupons to our special customers, and thereby increase the sales. -

-
-
- -
-
-

Features

-
-

- ☛ Create and configure vouchers for providing a discount. -

-

- ☛ Generate a unique code for each coupon. -

-

- ☛ Limit the usage of coupons by each user. -

-

- ☛ Provide a validity for the coupons. -

-

- ☛ History of coupons used by each customer. -

-
-
-
- -
-
-
-

Enable the voucher option from the website.

-
- -
-

- When we added some product to our cart, under the 'Customize' menu, we can see the 'Voucher Code' option. -

-
-
-
- -
-
-
-

Apply the coupon by providing the secret code.

-
- -
-

- After enabling the 'Voucher Code' option, we can enter our coupon code. If that code is valid, - it will be applied to the order. -

-
-
-
- -
-
-
-

Create and configure vouchers.

-
- -
-

- For creating a voucher, we need to specify a product, that means, this voucher will be applicable only - if the customer has selected this product in his order. The minimum and maximum voucher values can be set here. - The expiry date indicates the validity of this voucher. -

-
-
-
- -
-
-
-

Create and configure coupons and codes.

-
- -
-

- When we create the coupon, a unique, auto-generated and editable code will be there for each coupon. There are mainly - two types of coupons, fixed and percentage. The fixed type is used to deduct a fixed amount from the order. The - percentage type will deduct a certain percentage of amount from the order. -

-

The total number of available coupons - and the number of times one user can use this coupon can be set here. It is also possible to limit this coupon to a single customer, - i.e, only one customer can use this coupon. -

-
-
-
- -
-
-
-

Coupon History.

-
- -
-

- Under the 'Coupon History' menu, we can see the details of coupons used by all the customers. -

-
-
-
- -
-

Need Any Help?

- -
\ No newline at end of file diff --git a/website_coupon/static/description/voucher.png b/website_coupon/static/description/voucher.png deleted file mode 100644 index 6b64b4152..000000000 Binary files a/website_coupon/static/description/voucher.png and /dev/null differ diff --git a/website_coupon/views/applied_coupons.xml b/website_coupon/views/applied_coupons.xml deleted file mode 100644 index 9bb13cb56..000000000 --- a/website_coupon/views/applied_coupons.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - applied_coupons_form - res.partner - - - - - - - - - - - - - - - - - - Gift Coupon History - partner.coupon - - - - - - - - - - - Gift Coupons History - partner.coupon - ir.actions.act_window - form - - tree - - - - - \ No newline at end of file diff --git a/website_coupon/views/gift_voucher.xml b/website_coupon/views/gift_voucher.xml deleted file mode 100644 index fd8164b65..000000000 --- a/website_coupon/views/gift_voucher.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - Gift Voucher - gift.voucher - -
- - - - - - - - - - - -
-
-
- - - Gift Voucher - gift.voucher - - - - - - - - - - - - - Gift Coupon - gift.coupon - -
- -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
-
- - - Gift Coupon - gift.coupon - - - - - - - - - - - - - - - - Gift Vouchers - gift.voucher - ir.actions.act_window - form - - tree,form - - - - Generate Gift Coupons - gift.coupon - ir.actions.act_window - form - - tree,form - - - - - -
-
\ No newline at end of file diff --git a/website_coupon/views/templates.xml b/website_coupon/views/templates.xml deleted file mode 100644 index e5183e8d5..000000000 --- a/website_coupon/views/templates.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - \ No newline at end of file