diff --git a/product_exchange_pos_sys/README.rst b/product_exchange_pos_sys/README.rst new file mode 100644 index 000000000..d6059ed4a --- /dev/null +++ b/product_exchange_pos_sys/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +POS Product Exchange +===================== +Allows to exchange the products in a pos order. + +Configuration +============= +No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 (AGPL-3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V15) Ammu Raj, Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/product_exchange_pos_sys/__init__.py b/product_exchange_pos_sys/__init__.py new file mode 100644 index 000000000..d9e93b8e8 --- /dev/null +++ b/product_exchange_pos_sys/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 diff --git a/product_exchange_pos_sys/__manifest__.py b/product_exchange_pos_sys/__manifest__.py new file mode 100644 index 000000000..048ee4574 --- /dev/null +++ b/product_exchange_pos_sys/__manifest__.py @@ -0,0 +1,56 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 Product Exchange', + 'version': '15.0.1.0.0', + 'category': 'Point of Sale', + 'summary': "Allows to exchange the products in a pos order", + 'description': "The app allows user to select and change the product of pos" + "orders and add new products to the order during exchange.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['point_of_sale'], + 'data': [ + 'views/pos_order_views.xml' + ], + 'assets': { + 'point_of_sale.assets': [ + 'product_exchange_pos_sys/static/src/js/models.js', + 'product_exchange_pos_sys/static/src/js/AllOrderScreen.js', + 'product_exchange_pos_sys/static/src/js/OrderButton.js', + 'product_exchange_pos_sys/static/src/js/ExchangeOrder.js', + 'product_exchange_pos_sys/static/src/scss/pos.scss' + ], + 'web.assets_qweb': [ + 'product_exchange_pos_sys/static/src/xml/AllOrderScreen.xml', + 'product_exchange_pos_sys/static/src/xml/ExchangeOrder.xml', + 'product_exchange_pos_sys/static/src/xml/OrderButton.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/product_exchange_pos_sys/doc/RELEASE_NOTES.md b/product_exchange_pos_sys/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..8143d5602 --- /dev/null +++ b/product_exchange_pos_sys/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 28.11.2023 +#### Version 15.0.1.0.0 +#### ADD + +- Initial commit for POS Product Exchange diff --git a/product_exchange_pos_sys/models/__init__.py b/product_exchange_pos_sys/models/__init__.py new file mode 100644 index 000000000..d3acf90dd --- /dev/null +++ b/product_exchange_pos_sys/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 pos_order +from . import pos_order_line diff --git a/product_exchange_pos_sys/models/pos_order.py b/product_exchange_pos_sys/models/pos_order.py new file mode 100644 index 000000000..bf2b3ac2c --- /dev/null +++ b/product_exchange_pos_sys/models/pos_order.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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, fields, models + + +class PosOrder(models.Model): + """Inherited pos order for recognizing the exchanged orders""" + _inherit = 'pos.order' + + is_exchange = fields.Boolean(string='Exchange', + help='Will enable when create an exchange' + 'order') + + @api.model + def pos_exchange_order(self, order_id): + """Mark order a exchanged""" + self.browse(order_id).is_exchange = True diff --git a/product_exchange_pos_sys/models/pos_order_line.py b/product_exchange_pos_sys/models/pos_order_line.py new file mode 100644 index 000000000..930586537 --- /dev/null +++ b/product_exchange_pos_sys/models/pos_order_line.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ammu Raj (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 + + +class PosOrderLine(models.Model): + """Inherited pos order line to get the product details""" + _inherit = "pos.order.line" + + @api.model + def get_product_details(self, ids): + """To get the product details""" + lines = self.env['pos.order.line'].browse(ids) + res = [] + for rec in lines: + res.append({ + 'product_id': rec.product_id.id, + 'name': rec.product_id.name, + 'qty': rec.qty, + 'order_id': rec.order_id.id, + }) + return res diff --git a/product_exchange_pos_sys/static/description/assets/icons/check.png b/product_exchange_pos_sys/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/check.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/chevron.png b/product_exchange_pos_sys/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/chevron.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/cogs.png b/product_exchange_pos_sys/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/cogs.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/consultation.png b/product_exchange_pos_sys/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/consultation.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/ecom-black.png b/product_exchange_pos_sys/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/ecom-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/education-black.png b/product_exchange_pos_sys/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/education-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/hotel-black.png b/product_exchange_pos_sys/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/hotel-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/license.png b/product_exchange_pos_sys/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/license.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/lifebuoy.png b/product_exchange_pos_sys/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/lifebuoy.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/manufacturing-black.png b/product_exchange_pos_sys/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/pos-black.png b/product_exchange_pos_sys/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/pos-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/puzzle.png b/product_exchange_pos_sys/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/puzzle.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/restaurant-black.png b/product_exchange_pos_sys/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/restaurant-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/service-black.png b/product_exchange_pos_sys/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/service-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/trading-black.png b/product_exchange_pos_sys/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/trading-black.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/training.png b/product_exchange_pos_sys/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/training.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/update.png b/product_exchange_pos_sys/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/update.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/user.png b/product_exchange_pos_sys/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/user.png differ diff --git a/product_exchange_pos_sys/static/description/assets/icons/wrench.png b/product_exchange_pos_sys/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/icons/wrench.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/categories.png b/product_exchange_pos_sys/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/categories.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/check-box.png b/product_exchange_pos_sys/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/check-box.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/compass.png b/product_exchange_pos_sys/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/compass.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/corporate.png b/product_exchange_pos_sys/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/corporate.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/customer-support.png b/product_exchange_pos_sys/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/customer-support.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/cybrosys-logo.png b/product_exchange_pos_sys/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/cybrosys-logo.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/features.png b/product_exchange_pos_sys/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/features.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/logo.png b/product_exchange_pos_sys/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/logo.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/pictures.png b/product_exchange_pos_sys/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/pictures.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/pie-chart.png b/product_exchange_pos_sys/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/pie-chart.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/right-arrow.png b/product_exchange_pos_sys/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/right-arrow.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/star.png b/product_exchange_pos_sys/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/star.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/support.png b/product_exchange_pos_sys/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/support.png differ diff --git a/product_exchange_pos_sys/static/description/assets/misc/whatsapp.png b/product_exchange_pos_sys/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/misc/whatsapp.png differ diff --git a/product_exchange_pos_sys/static/description/assets/modules/1.png b/product_exchange_pos_sys/static/description/assets/modules/1.png new file mode 100644 index 000000000..be8dd200b Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/1.png differ diff --git a/product_exchange_pos_sys/static/description/assets/modules/2.png b/product_exchange_pos_sys/static/description/assets/modules/2.png new file mode 100644 index 000000000..9d38a9e97 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/2.png differ diff --git a/product_exchange_pos_sys/static/description/assets/modules/3.png b/product_exchange_pos_sys/static/description/assets/modules/3.png new file mode 100644 index 000000000..28a75d732 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/3.png differ diff --git a/product_exchange_pos_sys/static/description/assets/modules/4.png b/product_exchange_pos_sys/static/description/assets/modules/4.png new file mode 100644 index 000000000..f7be9edcf Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/4.png differ diff --git a/product_exchange_pos_sys/static/description/assets/modules/5.png b/product_exchange_pos_sys/static/description/assets/modules/5.png new file mode 100644 index 000000000..273676e59 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/5.png differ diff --git a/product_exchange_pos_sys/static/description/assets/modules/6.png b/product_exchange_pos_sys/static/description/assets/modules/6.png new file mode 100644 index 000000000..a2c1f4690 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/6.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/hero.gif b/product_exchange_pos_sys/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..78a901d37 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/hero.gif differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-1.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-1.png new file mode 100644 index 000000000..269ad6b78 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-1.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-2.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-2.png new file mode 100644 index 000000000..72cdaf4a8 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-2.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-3.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-3.png new file mode 100644 index 000000000..e07c7be37 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-3.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-4.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-4.png new file mode 100644 index 000000000..bbac8ffb4 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-4.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-5.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-5.png new file mode 100644 index 000000000..0afab48af Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-5.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-6.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-6.png new file mode 100644 index 000000000..ec8c227cc Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-6.png differ diff --git a/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-7.png b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-7.png new file mode 100644 index 000000000..9e585f19b Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/screenshot-7.png differ diff --git a/product_exchange_pos_sys/static/description/banner.png b/product_exchange_pos_sys/static/description/banner.png new file mode 100644 index 000000000..17835b62d Binary files /dev/null and b/product_exchange_pos_sys/static/description/banner.png differ diff --git a/product_exchange_pos_sys/static/description/icon.png b/product_exchange_pos_sys/static/description/icon.png new file mode 100644 index 000000000..c41af0e1a Binary files /dev/null and b/product_exchange_pos_sys/static/description/icon.png differ diff --git a/product_exchange_pos_sys/static/description/index.html b/product_exchange_pos_sys/static/description/index.html new file mode 100644 index 000000000..e2aa20eb5 --- /dev/null +++ b/product_exchange_pos_sys/static/description/index.html @@ -0,0 +1,671 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.Sh +
+
+
+ + + +
+
+
+ +

+ POS Product Exchange

+

+ Allows to Exchange the Products in a POS Order +

+ + +
+
+
+
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ Odoo POS Product Exchange facilitates your customers to return or + exchange their products. + +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Allows to exchange the products from the selected pos order. +
+
+ + User can return the Products from pos orders. +
+
+ + Allows to add extra products during exchange. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ All Order's Button

+

+ Click the Button All Order's to show the all order's screen.

+ +
+ +
+

+ All Order screen +

+

+ View the all order's here and, you can select the required one for exchange. +

+ +
+ +
+

+ Exchange order

+

+ Click the required Order to exchange the products. When clicking on it will open a popup.

+ + +
+ +
+

+ Product Screen with Product

+

+ After click the Exchange button it returns to product quantity. Here in the Product screen, you can see the product with negative quantity. +

+ +
+ +
+

+ Add Product

+

+ At the time of return you can add other products if you want, the additionally added product will add to the order. +

+ +
+
+

+ Make the Payment

+ +
+
+
+ + + +
+
+ +
+

+ 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

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/product_exchange_pos_sys/static/src/js/AllOrderScreen.js b/product_exchange_pos_sys/static/src/js/AllOrderScreen.js new file mode 100644 index 000000000..ab272d873 --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/AllOrderScreen.js @@ -0,0 +1,62 @@ +odoo.define('product_exchange_pos_sys.all_order_screen', function(require) { + 'use strict'; + + const PosComponent = require('point_of_sale.PosComponent'); + const ProductScreen = require('point_of_sale.ProductScreen'); + const { useListener } = require("@web/core/utils/hooks"); + const Registries = require('point_of_sale.Registries'); + const { Gui } = require('point_of_sale.Gui'); + var rpc = require('web.rpc'); + var core = require('web.core'); + + class CustomOrdrScreen extends PosComponent { + setup() { + super.setup(); + useListener('click-order', this._onClickOrder); + this.state = { + order: this.props.orders, + pos: this.env.pos + }; + } +// Going back to the product screen + back() { + this.showScreen('ProductScreen'); + } +// Refresh window + reload(){ + window.location.reload(); + } +// Function for fetching all orders + async _onClickOrder(order, pos) { + if (order.is_exchange == true) { + await Gui.showPopup('ErrorPopup', { + title: this.env._t('Exchange order'), + body: this.env._t('Already created the Exchange order') + }); + } else { + var lines = [] + var self = this; + this.rpc({ + model: 'pos.order.line', + method: 'get_product_details', + args: [order.lines], + }).then(async function(value) { + for (var i = 0; i < self.state.order.length; i++) { + lines.push(self.state.order[i]) + } + var _t = core._t; + await self.trigger('close-temp-screen'); + Gui.showPopup("ExchangeOrder", { + title: _t("Exchange Order"), + cancelText: 'Cancel', + 'order_line': value, + }); + }); + + } + } + }; + CustomOrdrScreen.template = 'CustomOrdrScreen'; + Registries.Component.add(CustomOrdrScreen); + return CustomOrdrScreen; +}); diff --git a/product_exchange_pos_sys/static/src/js/ExchangeOrder.js b/product_exchange_pos_sys/static/src/js/ExchangeOrder.js new file mode 100644 index 000000000..9ceeedbaf --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/ExchangeOrder.js @@ -0,0 +1,39 @@ +odoo.define('product_exchange_pos_sys.ExchangeOrder', function(require) { + 'use strict'; + + const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); + const Registries = require('point_of_sale.Registries'); + + class ExchangeOrder extends AbstractAwaitablePopup { + constructor() { + super(...arguments); + } +// Confirming the exchange returns to the product screen + async confirm() { + const CurrentOrder = this.env.pos.get_order() + for (var i = 0; i < this.props.order_line.length; i++) { + var order_id = this.props.order_line[i].order_id + var product = this.env.pos.db.get_product_by_id(this.props.order_line[i].product_id) + CurrentOrder.add_product(product, { + quantity: -this.props.order_line[i].qty + }) + } + this.rpc({ + model: 'pos.order', + method: 'pos_exchange_order', + args: [this.props.order_line[0].order_id], + }) + this.showScreen('ProductScreen'); + super.confirm(); + } + } + ExchangeOrder.template = 'ExchangeOrder'; + ExchangeOrder.defaultProps = { + confirmText: 'Ok', + cancelText: 'Cancel', + title: 'Confirm ?', + body: '', + }; + Registries.Component.add(ExchangeOrder); + return ExchangeOrder; +}); diff --git a/product_exchange_pos_sys/static/src/js/OrderButton.js b/product_exchange_pos_sys/static/src/js/OrderButton.js new file mode 100644 index 000000000..eec7edc48 --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/OrderButton.js @@ -0,0 +1,30 @@ +odoo.define('product_exchange_pos_sys.Orders', function(require) { + 'use strict'; + const PosComponent = require('point_of_sale.PosComponent'); + const ProductScreen = require('point_of_sale.ProductScreen'); + const { useListener } = require("@web/core/utils/hooks"); + const Registries = require('point_of_sale.Registries'); + + class AllOrders extends PosComponent { + setup() { + super.setup(); + useListener('click', this.onClick); + } +// Adding the button All order's + onClick() { + this.showScreen('CustomOrdrScreen', { + orders: this.env.pos.pos_orders, + pos: this.env.pos + }); + } + } + AllOrders.template = 'AllOrders'; + ProductScreen.addControlButton({ + component: AllOrders, + condition: function() { + return true; + }, + }); + Registries.Component.add(AllOrders); + return AllOrders; +}); diff --git a/product_exchange_pos_sys/static/src/js/models.js b/product_exchange_pos_sys/static/src/js/models.js new file mode 100644 index 000000000..5c29a169c --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/models.js @@ -0,0 +1,22 @@ +odoo.define('product_exchange_pos_sys.models', function(require) { + "use strict"; + var models = require('point_of_sale.models'); + /** + * Loading the required model and fields + **/ + models.load_models({ + model: 'pos.order', + fields: ['name', 'date_order', 'pos_reference', + 'partner_id', 'lines', 'is_exchange' + ], + loaded: function(self, pos_orders) { + self.pos_orders = pos_orders; + } + }, { + model: 'pos.order.line', + fields: ['product_id', 'qty', 'price_subtotal', 'total_cost'], + loaded: function(self, pos_order_lines) { + self.pos_order_lines = pos_order_lines; + } + }); +}); diff --git a/product_exchange_pos_sys/static/src/scss/pos.scss b/product_exchange_pos_sys/static/src/scss/pos.scss new file mode 100644 index 000000000..9a833e60e --- /dev/null +++ b/product_exchange_pos_sys/static/src/scss/pos.scss @@ -0,0 +1,16 @@ +.order-list{ + font-size: 16px; + width: 100%; +} +.order-list th, +.order-list td { + padding: 12px; +} +exchange-list{ + font-size: 16px; + width: 100%; +} +.exchange-list th, +.exchange-list td { + padding: 10px; +} diff --git a/product_exchange_pos_sys/static/src/xml/AllOrderScreen.xml b/product_exchange_pos_sys/static/src/xml/AllOrderScreen.xml new file mode 100644 index 000000000..42dc477c8 --- /dev/null +++ b/product_exchange_pos_sys/static/src/xml/AllOrderScreen.xml @@ -0,0 +1,52 @@ + + + + +
+
+
+
+ Back +
+ + + Refresh + +
+
+
+
+
+
+
+ + + + + + + + + + + + + +
Order ReferenceReceipt ReferenceCustomerOrder Date
+ + + +
+
+
+
+
+
+
+
+
+
diff --git a/product_exchange_pos_sys/static/src/xml/ExchangeOrder.xml b/product_exchange_pos_sys/static/src/xml/ExchangeOrder.xml new file mode 100644 index 000000000..4d6b38af3 --- /dev/null +++ b/product_exchange_pos_sys/static/src/xml/ExchangeOrder.xml @@ -0,0 +1,37 @@ + + + + + + + diff --git a/product_exchange_pos_sys/static/src/xml/OrderButton.xml b/product_exchange_pos_sys/static/src/xml/OrderButton.xml new file mode 100644 index 000000000..ab1ad35c3 --- /dev/null +++ b/product_exchange_pos_sys/static/src/xml/OrderButton.xml @@ -0,0 +1,10 @@ + + + + +
+ + All Order's +
+
+
diff --git a/product_exchange_pos_sys/views/pos_order_views.xml b/product_exchange_pos_sys/views/pos_order_views.xml new file mode 100644 index 000000000..cd59fe3ae --- /dev/null +++ b/product_exchange_pos_sys/views/pos_order_views.xml @@ -0,0 +1,16 @@ + + + + + + pos.order.view.form.inherit.product.exchange.pos.sys + + pos.order + + + + + + + +