diff --git a/pos_order_delete/README.rst b/pos_order_delete/README.rst deleted file mode 100644 index 596d9bf61..000000000 --- a/pos_order_delete/README.rst +++ /dev/null @@ -1,48 +0,0 @@ -.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - -POS Paid Order Delete -===================== - This app allow the specified user to delete the pos orders in paid state. - -Installation -============ -- www.odoo.com/documentation/16.0/setup/install.html -- Install our custom addon - -License -------- -General Public License, Version 3 (AGPL v3). -(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) - -Company -------- -* `Cybrosys Techno Solutions `__ - -Credits -------- -* Developers: Cybrosys Techno Solutions odoo@cybrosys.com - Version 16: Shonima @cybrosys, Sabeel B @cybrosys - -Contacts --------- -* Mail Contact : odoo@cybrosys.com -* Website : https://cybrosys.com - -Bug Tracker ------------ -Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. - -Maintainer -========== -.. image:: https://cybrosys.com/images/logo.png - :target: https://cybrosys.com - -This module is maintained by Cybrosys Technologies. - -For support and more information, please visit `Our Website `__ - -Further information -=================== -HTML Description: ``__ diff --git a/pos_order_delete/__init__.py b/pos_order_delete/__init__.py deleted file mode 100644 index 47716f7e0..000000000 --- a/pos_order_delete/__init__.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################ -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) -# -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ -from .import models -from .import wizard -from odoo import api, SUPERUSER_ID - - -def _uninstall_hook(cr, registry): - env = api.Environment(cr, SUPERUSER_ID, {}) - env['ir.config_parameter'].sudo().set_param( - 'pos_order_delete.is_delete', - False) diff --git a/pos_order_delete/__manifest__.py b/pos_order_delete/__manifest__.py deleted file mode 100644 index 11ec98a34..000000000 --- a/pos_order_delete/__manifest__.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################ -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) -# -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ -{ - 'name': 'POS Paid Order Delete', - 'version': '16.0.1.0.0', - 'category': 'POS', - 'summary': "Can Delete POS Orders in Paid State With or Without Code", - 'description': "This app allow the specified user to delete the pos orders" - " with or without code in paid state by unlinking the " - "payments of corresponding order.", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': 'https://www.cybrosys.com', - 'depends': ['base', 'point_of_sale'], - 'data': - [ - 'security/ir.model.access.csv', - 'security/pos_order_delete_groups.xml', - 'data/pos_order_data.xml', - 'views/res_config_settings_views.xml', - 'wizard/delete_paid_pos_order_views.xml' - ], - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, - 'uninstall_hook': '_uninstall_hook', -} diff --git a/pos_order_delete/data/pos_order_data.xml b/pos_order_delete/data/pos_order_data.xml deleted file mode 100644 index c0c2e8ed7..000000000 --- a/pos_order_delete/data/pos_order_data.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - Delete Paid Order - ir.actions.act_window - delete.paid.pos.order - form - new - action - list,form - - - diff --git a/pos_order_delete/doc/RELEASE_NOTES.md b/pos_order_delete/doc/RELEASE_NOTES.md deleted file mode 100644 index 1ba6976ad..000000000 --- a/pos_order_delete/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module - -#### 22.05.2024 -#### Version 16.0.1.0.0 -#### ADD -- Initial Commit for POS Paid Order Delete. diff --git a/pos_order_delete/models/__init__.py b/pos_order_delete/models/__init__.py deleted file mode 100644 index 17eee1481..000000000 --- a/pos_order_delete/models/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################ -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) -# -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ -from .import res_config_settings diff --git a/pos_order_delete/models/res_config_settings.py b/pos_order_delete/models/res_config_settings.py deleted file mode 100644 index 43f4ca580..000000000 --- a/pos_order_delete/models/res_config_settings.py +++ /dev/null @@ -1,87 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################ -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) -# -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ -from odoo import api, models, fields - - -class ResConfigSettings(models.TransientModel): - """Inheriting ResConfigSettings to add new fields""" - _inherit = 'res.config.settings' - - is_delete = fields.Boolean(string='Delete Paid Order', - help='Based on this selection it shows the ' - 'fields for deleting the paid pos order ' - 'with code and without code') - delete_paid_order = fields.Selection( - [('order_with_code', 'Delete POS order with code'), - ('order_without_code', 'Delete POS order without code')], - default='order_with_code', - string='Delete Paid Order', - store=True, - help='Delete the paid POS order with code or without providing the ' - 'code') - code = fields.Char(string='Code', help="Enter code to confirming " - "record deletion") - - @api.model - def get_values(self): - """Get values from the fields""" - res = super(ResConfigSettings, self).get_values() - params = self.env['ir.config_parameter'].sudo().get_param - is_delete = params('pos_order_delete.is_delete') - delete_paid_order = params('pos_order_delete.delete_paid_order') - code = params('pos_order_delete.code') - res.update( - is_delete=is_delete, - delete_paid_order=delete_paid_order, - code=code, - ) - return res - - def set_values(self): - """Set values in the fields""" - super(ResConfigSettings, self).set_values() - self.env['ir.config_parameter'].sudo().set_param( - 'pos_order_delete.is_delete', - self.is_delete) - self.env['ir.config_parameter'].sudo().set_param( - 'pos_order_delete.delete_paid_order', - self.delete_paid_order) - self.env['ir.config_parameter'].sudo().set_param( - 'pos_order_delete.code', - self.code) - if self.is_delete: - self.env['ir.actions.act_window'].search([ - ('name', '=', 'Delete Paid Order')]).update( - {'binding_model_id': self.env['ir.model.data']._xmlid_to_res_id - ('point_of_sale.model_pos_order') - }) - else: - (self.env['ir.actions.act_window'].search([ - ('name', '=', 'Delete Paid Order')]).update - ({'binding_model_id': ''})) - - @api.onchange('is_delete') - def _onchange_is_delete(self): - """This function is used to st the value of code is None when we are - disabling the pos order delete field""" - if not self.is_delete: - self.code = None diff --git a/pos_order_delete/security/ir.model.access.csv b/pos_order_delete/security/ir.model.access.csv deleted file mode 100644 index aff4ce1f2..000000000 --- a/pos_order_delete/security/ir.model.access.csv +++ /dev/null @@ -1,2 +0,0 @@ -"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" -"access_delete_paid_pos_order","delete.paid.pos.order","model_delete_paid_pos_order","base.group_user",1,1,1,1 diff --git a/pos_order_delete/security/pos_order_delete_groups.xml b/pos_order_delete/security/pos_order_delete_groups.xml deleted file mode 100644 index 6e51ee40e..000000000 --- a/pos_order_delete/security/pos_order_delete_groups.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - POS Order Delete - - - diff --git a/pos_order_delete/static/description/assets/icons/check.png b/pos_order_delete/static/description/assets/icons/check.png deleted file mode 100644 index c8e85f51d..000000000 Binary files a/pos_order_delete/static/description/assets/icons/check.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/chevron.png b/pos_order_delete/static/description/assets/icons/chevron.png deleted file mode 100644 index 2089293d6..000000000 Binary files a/pos_order_delete/static/description/assets/icons/chevron.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/cogs.png b/pos_order_delete/static/description/assets/icons/cogs.png deleted file mode 100644 index 95d0bad62..000000000 Binary files a/pos_order_delete/static/description/assets/icons/cogs.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/consultation.png b/pos_order_delete/static/description/assets/icons/consultation.png deleted file mode 100644 index 8319d4baa..000000000 Binary files a/pos_order_delete/static/description/assets/icons/consultation.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/ecom-black.png b/pos_order_delete/static/description/assets/icons/ecom-black.png deleted file mode 100644 index a9385ff13..000000000 Binary files a/pos_order_delete/static/description/assets/icons/ecom-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/education-black.png b/pos_order_delete/static/description/assets/icons/education-black.png deleted file mode 100644 index 3eb09b27b..000000000 Binary files a/pos_order_delete/static/description/assets/icons/education-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/hotel-black.png b/pos_order_delete/static/description/assets/icons/hotel-black.png deleted file mode 100644 index 130f613be..000000000 Binary files a/pos_order_delete/static/description/assets/icons/hotel-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/license.png b/pos_order_delete/static/description/assets/icons/license.png deleted file mode 100644 index a5869797e..000000000 Binary files a/pos_order_delete/static/description/assets/icons/license.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/lifebuoy.png b/pos_order_delete/static/description/assets/icons/lifebuoy.png deleted file mode 100644 index 658d56ccc..000000000 Binary files a/pos_order_delete/static/description/assets/icons/lifebuoy.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/manufacturing-black.png b/pos_order_delete/static/description/assets/icons/manufacturing-black.png deleted file mode 100644 index 697eb0e9f..000000000 Binary files a/pos_order_delete/static/description/assets/icons/manufacturing-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/pos-black.png b/pos_order_delete/static/description/assets/icons/pos-black.png deleted file mode 100644 index 97c0f90c1..000000000 Binary files a/pos_order_delete/static/description/assets/icons/pos-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/puzzle.png b/pos_order_delete/static/description/assets/icons/puzzle.png deleted file mode 100644 index 65cf854e7..000000000 Binary files a/pos_order_delete/static/description/assets/icons/puzzle.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/restaurant-black.png b/pos_order_delete/static/description/assets/icons/restaurant-black.png deleted file mode 100644 index 4a35eb939..000000000 Binary files a/pos_order_delete/static/description/assets/icons/restaurant-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/service-black.png b/pos_order_delete/static/description/assets/icons/service-black.png deleted file mode 100644 index 301ab51cb..000000000 Binary files a/pos_order_delete/static/description/assets/icons/service-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/trading-black.png b/pos_order_delete/static/description/assets/icons/trading-black.png deleted file mode 100644 index 9398ba2f1..000000000 Binary files a/pos_order_delete/static/description/assets/icons/trading-black.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/training.png b/pos_order_delete/static/description/assets/icons/training.png deleted file mode 100644 index 884ca024d..000000000 Binary files a/pos_order_delete/static/description/assets/icons/training.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/update.png b/pos_order_delete/static/description/assets/icons/update.png deleted file mode 100644 index ecbc5a01a..000000000 Binary files a/pos_order_delete/static/description/assets/icons/update.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/user.png b/pos_order_delete/static/description/assets/icons/user.png deleted file mode 100644 index 6ffb23d9f..000000000 Binary files a/pos_order_delete/static/description/assets/icons/user.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/icons/wrench.png b/pos_order_delete/static/description/assets/icons/wrench.png deleted file mode 100644 index 6c04dea0f..000000000 Binary files a/pos_order_delete/static/description/assets/icons/wrench.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/categories.png b/pos_order_delete/static/description/assets/misc/categories.png deleted file mode 100644 index bedf1e0b1..000000000 Binary files a/pos_order_delete/static/description/assets/misc/categories.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/check-box.png b/pos_order_delete/static/description/assets/misc/check-box.png deleted file mode 100644 index 42caf24b9..000000000 Binary files a/pos_order_delete/static/description/assets/misc/check-box.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/compass.png b/pos_order_delete/static/description/assets/misc/compass.png deleted file mode 100644 index d5fed8faa..000000000 Binary files a/pos_order_delete/static/description/assets/misc/compass.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/corporate.png b/pos_order_delete/static/description/assets/misc/corporate.png deleted file mode 100644 index 2eb13edbf..000000000 Binary files a/pos_order_delete/static/description/assets/misc/corporate.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/customer-support.png b/pos_order_delete/static/description/assets/misc/customer-support.png deleted file mode 100644 index 79efc72ed..000000000 Binary files a/pos_order_delete/static/description/assets/misc/customer-support.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/cybrosys-logo.png b/pos_order_delete/static/description/assets/misc/cybrosys-logo.png deleted file mode 100644 index cc3cc0ccf..000000000 Binary files a/pos_order_delete/static/description/assets/misc/cybrosys-logo.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/features.png b/pos_order_delete/static/description/assets/misc/features.png deleted file mode 100644 index b41769f77..000000000 Binary files a/pos_order_delete/static/description/assets/misc/features.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/logo.png b/pos_order_delete/static/description/assets/misc/logo.png deleted file mode 100644 index 478462d3e..000000000 Binary files a/pos_order_delete/static/description/assets/misc/logo.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/pictures.png b/pos_order_delete/static/description/assets/misc/pictures.png deleted file mode 100644 index 56d255fe9..000000000 Binary files a/pos_order_delete/static/description/assets/misc/pictures.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/pie-chart.png b/pos_order_delete/static/description/assets/misc/pie-chart.png deleted file mode 100644 index 426e05244..000000000 Binary files a/pos_order_delete/static/description/assets/misc/pie-chart.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/right-arrow.png b/pos_order_delete/static/description/assets/misc/right-arrow.png deleted file mode 100644 index 730984a06..000000000 Binary files a/pos_order_delete/static/description/assets/misc/right-arrow.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/star.png b/pos_order_delete/static/description/assets/misc/star.png deleted file mode 100644 index 2eb9ab29f..000000000 Binary files a/pos_order_delete/static/description/assets/misc/star.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/support.png b/pos_order_delete/static/description/assets/misc/support.png deleted file mode 100644 index 4f18b8b82..000000000 Binary files a/pos_order_delete/static/description/assets/misc/support.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/misc/whatsapp.png b/pos_order_delete/static/description/assets/misc/whatsapp.png deleted file mode 100644 index d513a5356..000000000 Binary files a/pos_order_delete/static/description/assets/misc/whatsapp.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/modules/1.png b/pos_order_delete/static/description/assets/modules/1.png deleted file mode 100644 index ed175b076..000000000 Binary files a/pos_order_delete/static/description/assets/modules/1.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/modules/2.png b/pos_order_delete/static/description/assets/modules/2.png deleted file mode 100644 index a3194264c..000000000 Binary files a/pos_order_delete/static/description/assets/modules/2.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/modules/3.png b/pos_order_delete/static/description/assets/modules/3.png deleted file mode 100644 index e894393ef..000000000 Binary files a/pos_order_delete/static/description/assets/modules/3.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/modules/4.png b/pos_order_delete/static/description/assets/modules/4.png deleted file mode 100644 index f3c986fc1..000000000 Binary files a/pos_order_delete/static/description/assets/modules/4.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/modules/5.png b/pos_order_delete/static/description/assets/modules/5.png deleted file mode 100644 index b21837312..000000000 Binary files a/pos_order_delete/static/description/assets/modules/5.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/modules/6.png b/pos_order_delete/static/description/assets/modules/6.png deleted file mode 100644 index e64a5b55c..000000000 Binary files a/pos_order_delete/static/description/assets/modules/6.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/1.png b/pos_order_delete/static/description/assets/screenshots/1.png deleted file mode 100644 index 76a1e5049..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/1.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/2.png b/pos_order_delete/static/description/assets/screenshots/2.png deleted file mode 100644 index d1efc80a4..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/2.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/3.png b/pos_order_delete/static/description/assets/screenshots/3.png deleted file mode 100644 index f7ff553ac..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/3.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/4.png b/pos_order_delete/static/description/assets/screenshots/4.png deleted file mode 100644 index 182956a5b..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/4.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/5.png b/pos_order_delete/static/description/assets/screenshots/5.png deleted file mode 100644 index dd8d4680e..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/5.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/6.png b/pos_order_delete/static/description/assets/screenshots/6.png deleted file mode 100644 index be5b06e7f..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/6.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/7.png b/pos_order_delete/static/description/assets/screenshots/7.png deleted file mode 100644 index 79d7d497a..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/7.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/8.png b/pos_order_delete/static/description/assets/screenshots/8.png deleted file mode 100644 index 709436026..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/8.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/9.png b/pos_order_delete/static/description/assets/screenshots/9.png deleted file mode 100644 index 2169137e6..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/9.png and /dev/null differ diff --git a/pos_order_delete/static/description/assets/screenshots/hero.gif b/pos_order_delete/static/description/assets/screenshots/hero.gif deleted file mode 100644 index f328c1a28..000000000 Binary files a/pos_order_delete/static/description/assets/screenshots/hero.gif and /dev/null differ diff --git a/pos_order_delete/static/description/banner.jpg b/pos_order_delete/static/description/banner.jpg deleted file mode 100644 index f98892c56..000000000 Binary files a/pos_order_delete/static/description/banner.jpg and /dev/null differ diff --git a/pos_order_delete/static/description/icon.png b/pos_order_delete/static/description/icon.png deleted file mode 100644 index fb9dbfa58..000000000 Binary files a/pos_order_delete/static/description/icon.png and /dev/null differ diff --git a/pos_order_delete/static/description/index.html b/pos_order_delete/static/description/index.html deleted file mode 100644 index 2135fc533..000000000 --- a/pos_order_delete/static/description/index.html +++ /dev/null @@ -1,568 +0,0 @@ -
- -
- -
-
- Community -
-
- Enterprise -
-
-
- -
-
-
- -

- POS Paid Order Delete -

-

- This app helps you to delete the POS orders in paid state. -

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

Explore This - Module

-
- - - - -
-
- -
-

Overview -

-
-
-
- Allow the user to delete the single or multiple POS order in paid state. -
-
- - - -
-
- -
-

Features -

-
-
-
-
- - Easy Configuration. - -
-
- - Delete the pos order in paid state with using the code or without using the code. -
-
-
-
- - Available in Odoo 16.0 - Community and Enterprise. -
-
-
- - - -
-
- -
-

Screenshots -

-
-
-
-
-

- Go to Settings --> Users & Companies --> Users --> Enable POS Order Delete. To give permission to the - user to delete the paid POS orders. -

- -
-
-

- Go to Point of Sale --> Configuration --> Settings --> Enable the boolean field Delete Paid Order. -

- -
-
-

- Choose with or without code, Enter a code if your going with code. -

- -
-
-

- Go to Point of Sale --> Orders --> Orders --> Choose Order/Orders to delete --> Select the action 'Delete Paid Order'. -

- -

- Enter The Code and Click on 'DELETE PAID ORDER'. -

- -
-
-

- Shows a Confirmation Wizard if Your Going Without Code -

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

Related - Products -

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

Our Services -

-
- -
-
-
-
- -
-
- Odoo - Customization
-
- -
-
- -
-
- Odoo - Implementation
-
- -
-
- -
-
- Odoo - Support
-
- - -
-
- -
-
- Hire - Odoo - Developer
-
- -
-
- -
-
- Odoo - Integration
-
- -
-
- -
-
- Odoo - Migration
-
- - -
-
- -
-
- Odoo - Consultancy
-
- -
-
- -
-
- Odoo - Implementation
-
- -
-
- -
-
- Odoo - Licensing Consultancy
-
-
- -
- - - - - -
-
- -
-

Our - Industries -

-
- -
-
-
-
- -
- Trading -
-

- Easily procure - and - sell your products

-
-
- -
-
- -
- POS -
-

- Easy - configuration - and convivial experience

-
-
- -
-
- -
- Education -
-

- A platform for - educational management

-
-
- -
-
- -
- Manufacturing -
-

- Plan, track and - schedule your operations

-
-
- -
-
- -
- E-commerce & Website -
-

- Mobile - friendly, - awe-inspiring product pages

-
-
- -
-
- -
- Service Management -
-

- Keep track of - services and invoice

-
-
- -
-
- -
- Restaurant -
-

- Run your bar or - restaurant methodically

-
-
- -
-
- -
- Hotel Management -
-

- An - all-inclusive - hotel management application

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

Support -

-
-
-
-
-
-
- -
-
-

Need Help?

-

Got questions or need help? Get in touch.

- -

- odoo@cybrosys.com

-
-
-
-
-
-
-
- -
-
-

WhatsApp

-

Say hi to us on WhatsApp!

- -

+91 86068 - 27707

-
-
-
-
-
-
-
- -
-
-
- diff --git a/pos_order_delete/views/res_config_settings_views.xml b/pos_order_delete/views/res_config_settings_views.xml deleted file mode 100644 index 108df4326..000000000 --- a/pos_order_delete/views/res_config_settings_views.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - res.config.settings.view.form.inherit.purchase.serial.number - res.config.settings - - - -

Delete Paid Order

-
-
-
- -
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pos_order_delete/wizard/__init__.py b/pos_order_delete/wizard/__init__.py deleted file mode 100644 index 318f2e4d1..000000000 --- a/pos_order_delete/wizard/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################ -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) -# -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ -from .import delete_paid_pos_order diff --git a/pos_order_delete/wizard/delete_paid_pos_order.py b/pos_order_delete/wizard/delete_paid_pos_order.py deleted file mode 100644 index 15162bc57..000000000 --- a/pos_order_delete/wizard/delete_paid_pos_order.py +++ /dev/null @@ -1,84 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################ -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2024-TODAY Cybrosys Technologies(). -# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) -# -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -################################################################################ -from odoo import api, models, fields, _ -from odoo.exceptions import UserError - - -class DeletePosPaidOrder(models.TransientModel): - _name = "delete.paid.pos.order" - _description = "Delete Paid POS Order" - - pos_order_delete = fields.Boolean(string='Delete Paid Order', default=True, - help="Enable to delete POS orders") - code = fields.Char(string='Code', help="Setup code to enter " - "while deleting the POS order") - - @api.model - def default_get(self, fields): - """The function used to update the default values""" - is_delete = self.env['ir.config_parameter'].sudo().get_param( - 'pos_order_delete.is_delete') - result = super(DeletePosPaidOrder, self).default_get(fields) - if is_delete: - delete_paid_order = self.env[ - 'ir.config_parameter'].sudo().get_param( - 'pos_order_delete.delete_paid_order') - result['pos_order_delete'] = delete_paid_order != 'order_with_code' - return result - - def delete_pos_paid_order(self): - """This function is used to delete the pos paid orders and the - corresponding payments""" - is_delete = (self.env['ir.config_parameter'].sudo(). - get_param('pos_order_delete.is_delete')) - if is_delete: - delete_paid_order = (self.env['ir.config_parameter'].sudo(). - get_param('pos_order_delete.delete_paid_order' - )) - pos_orders = self.env['pos.order'].browse(self.env.context.get - ('active_ids')) - code = self.env['ir.config_parameter'].sudo().get_param( - 'pos_order_delete.code') - if delete_paid_order == 'order_with_code': - if code == self.code: - for order in pos_orders: - for payment in order.payment_ids: - payment.unlink() - order.action_pos_order_cancel() - order.unlink() - else: - raise UserError("The code is wrong.Please enter the " - "correct code") - else: - for order in pos_orders: - for payment in order.payment_ids: - payment.unlink() - order.action_pos_order_cancel() - order.unlink() - return { - 'type': 'ir.actions.act_window', - 'name': _('Delete Pos Orders'), - 'res_model': 'pos.order', - 'view_mode': 'tree', - 'view_id': self.env.ref('point_of_sale.view_pos_order_tree').id, - 'target': 'main', - } diff --git a/pos_order_delete/wizard/delete_paid_pos_order_views.xml b/pos_order_delete/wizard/delete_paid_pos_order_views.xml deleted file mode 100644 index c386973bb..000000000 --- a/pos_order_delete/wizard/delete_paid_pos_order_views.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - delete.paid.pos.order.view.form - delete.paid.pos.order - -
- -
-

Are you sure you want to delete these records?

-
-
-

Please Enter the Code

- - - - - -
- - -
-
-