diff --git a/product_exchange_pos_sys/README.rst b/product_exchange_pos_sys/README.rst new file mode 100644 index 000000000..cde0991f3 --- /dev/null +++ b/product_exchange_pos_sys/README.rst @@ -0,0 +1,17 @@ +POS Exchange Order v16 +====================== +POS Exchange Order + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +Configuration +============= + + No additional configurations needed + +Credits +======= + Developer: Megha v16 @ cybrosys, Contact: odoo@cybrosys.com diff --git a/product_exchange_pos_sys/__init__.py b/product_exchange_pos_sys/__init__.py new file mode 100644 index 000000000..21c616d3f --- /dev/null +++ b/product_exchange_pos_sys/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################### +# POS Product Exchange +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +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..bcc0a185a --- /dev/null +++ b/product_exchange_pos_sys/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +################################################################################### +# POS Product Exchange +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +{ + 'name': 'POS Product Exchange', + 'version': '16.0.1.0.0', + 'category': 'Point of Sale', + 'summary': 'POS Product Exchange', + 'author': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'description': "POS Product Exchange", + 'depends': ['base', 'point_of_sale'], + 'images': ['static/description/banner.jpg'], + 'data': [ + 'views/pos_order.xml' + ], + 'assets': { + 'point_of_sale.assets': [ + 'product_exchange_pos_sys/static/src/js/models.js', + 'product_exchange_pos_sys/static/src/js/all_order_screen.js', + 'product_exchange_pos_sys/static/src/xml/all_order_screen.xml', + 'product_exchange_pos_sys/static/src/js/order_button.js', + 'product_exchange_pos_sys/static/src/xml/order_button.xml', + 'product_exchange_pos_sys/static/src/js/exchange_order.js', + 'product_exchange_pos_sys/static/src/xml/exchange_order.xml', + 'product_exchange_pos_sys/static/src/scss/pos.scss' + ], + + }, + 'installable': True, + 'application': True, + 'auto_install': False, + 'license': 'AGPL-3', +} 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..298f78f81 --- /dev/null +++ b/product_exchange_pos_sys/doc/RELEASE_NOTES.md @@ -0,0 +1,8 @@ +## Module + +#### 10.11.2022 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit + diff --git a/product_exchange_pos_sys/models/__init__.py b/product_exchange_pos_sys/models/__init__.py new file mode 100644 index 000000000..3eb31eacb --- /dev/null +++ b/product_exchange_pos_sys/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# POS Product Exchange +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from . import pos_ssession diff --git a/product_exchange_pos_sys/models/pos_ssession.py b/product_exchange_pos_sys/models/pos_ssession.py new file mode 100644 index 000000000..f5f0aff4b --- /dev/null +++ b/product_exchange_pos_sys/models/pos_ssession.py @@ -0,0 +1,80 @@ +# -*- coding: utf-8 -*- +################################################################################ +# POS Product Exchange +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2022-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import fields, models + + +class PosSession(models.Model): + _inherit = 'pos.session' + + def _pos_ui_models_to_load(self): + result = super()._pos_ui_models_to_load() + result += { + 'pos.order', 'pos.order.line' + } + return result + + def _loader_params_pos_order(self): + return {'search_params': { + 'domain': [], + 'fields': ['name', 'date_order', 'pos_reference', + 'partner_id', 'lines', 'exchange']}} + + def _get_pos_ui_pos_order(self, params): + return self.env['pos.order'].search_read( + **params['search_params']) + + def _loader_params_pos_order_line(self): + return {'search_params': {'domain': [], + 'fields': ['product_id', 'qty', + 'price_subtotal', 'total_cost']}} + + def _get_pos_ui_pos_order_line(self, params): + return self.env['pos.order.line'].search_read( + **params['search_params']) + + +class PosOrderLine(models.Model): + _inherit = "pos.order.line" + + 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 + }) + return res + + +class PosOrder(models.Model): + _inherit = 'pos.order' + + exchange = fields.Boolean() + + def pos_exchange_order(self): + """mark order a exchanged""" + self.exchange = True + return 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..5238bdeab 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..1ae7cfe3b 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..3c3ff1afb 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..3fae4631e 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.gif b/product_exchange_pos_sys/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/modules/5.gif 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..7f2815273 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.png b/product_exchange_pos_sys/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..38b4b48b6 Binary files /dev/null and b/product_exchange_pos_sys/static/description/assets/screenshots/hero.png 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..8170fdc43 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..dcf614ea7 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..557c82ba8 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..4eb075354 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..6712507de 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..5a1ed3e8c 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..0e7037b72 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..f52b99646 Binary files /dev/null and b/product_exchange_pos_sys/static/description/banner.png differ diff --git a/product_exchange_pos_sys/static/description/hero.png b/product_exchange_pos_sys/static/description/hero.png new file mode 100644 index 000000000..38b4b48b6 Binary files /dev/null and b/product_exchange_pos_sys/static/description/hero.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..51f48b34f 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..359a2c70a --- /dev/null +++ b/product_exchange_pos_sys/static/description/index.html @@ -0,0 +1,533 @@ +
+ +
+ +
+
+ Community +
+
+
+ + + +

POS Product Exchange

+

Customers Can return or exchange their products

+ + + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

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

Features +

+
+
+
+
+ + Exchange the pos products +
+
+ + Return the pos orders +
+
+
+ + + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Order's

+

Click this button to show the order screen

+ +
+ +
+

Order screen +

+

View the all order's

+ + +
+ +
+

Exchange order

+

Click the Order to exchange the products, it open a pop up

+ + +
+ +
+

Product Screen

+

After click the Exchange button it returns to product quantity

+ +
+ +
+

Add Product

+ +
+
+

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/all_order_screen.js b/product_exchange_pos_sys/static/src/js/all_order_screen.js new file mode 100644 index 000000000..38cb1d1b3 --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/all_order_screen.js @@ -0,0 +1,60 @@ +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'); + var rpc = require('web.rpc'); + var core = require('web.core'); + var Qweb = core.qweb; + const { onMounted, onWillUnmount, useState } = owl; + + class CustomOrdrScreen extends PosComponent { + + setup(){ + super.setup(); + useListener('click-order', this._onClickOrder); + this.state = { + order: this.props.orders, + pos: this.env.pos + }; + } + + back() { + this.showScreen('ProductScreen'); + } + _onClickOrder(order, pos){ + if (order.exchange == true){ + this.showPopup('ErrorPopup', { + title: this.env._t('Exchange order'), + body: this.env._t('Already created the Exchange order') + }); + } + else{ + + var lines = [] + for(var i = 0; i < order.lines.length; i++){ + lines.push(order.lines[i]) + } + var self = this; + this.rpc({ + model: 'pos.order.line', + method: 'get_product_details', + args: [[], order.lines], + }).then(function (value) { + self.showPopup('ExchangeOrder', { + 'order_line' : value, + 'pos': pos, + 'order_id': order.id + }); + }); + } + } + }; + + CustomOrdrScreen.template = 'CustomOrdrScreen'; + Registries.Component.add(CustomOrdrScreen); + return CustomOrdrScreen; + +}); \ No newline at end of file diff --git a/product_exchange_pos_sys/static/src/js/exchange_order.js b/product_exchange_pos_sys/static/src/js/exchange_order.js new file mode 100644 index 000000000..58a627b96 --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/exchange_order.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'); + const { useState } = owl; + + class ExchangeOrder extends AbstractAwaitablePopup { + setup() { + super.setup(); + this.props.line = JSON.parse(JSON.stringify(this.props.order_line)) + this.state = useState({ + line: JSON.parse(JSON.stringify(this.props.order_line)), + pos: this.props.pos + }); + } + //@override + async confirm() { + const CurrentOrder = this.env.pos.get_order() + for(var i = 0; i < this.props.line.length; i++){ + var product = this.env.pos.db.get_product_by_id(this.props.line[i].product_id) + CurrentOrder.add_product(product, {quantity: - this.props.line[i].qty}) + } + this.rpc({ + model: 'pos.order', + method: 'pos_exchange_order', + args: [this.props.order_id], + }) + this.showScreen('ProductScreen'); + super.confirm(); + } + } + + ExchangeOrder.template = 'ExchangeOrder'; + ExchangeOrder.defaultProps = { cancelKey: false }; + Registries.Component.add(ExchangeOrder); + + return ExchangeOrder; +}); \ No newline at end of file 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..3e9a6e13e --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/models.js @@ -0,0 +1,17 @@ +odoo.define('product_exchange_pos_sys.models', function (require) { + "use strict"; + var { PosGlobalState, Order} = require('point_of_sale.models'); + const Registries = require('point_of_sale.Registries'); + + const PosSessionOrdersPosGlobalState = (PosGlobalState) => class PosSessionOrdersPosGlobalState extends PosGlobalState { + async _processData(loadedData) { + await super._processData(...arguments); + this.pos_orders = loadedData['pos.order']; + this.pos_order_lines = loadedData['pos.order.line']; + + console.log(this.pos_orders,'this.session_orders') + + } + } + Registries.Model.extend(PosGlobalState, PosSessionOrdersPosGlobalState); +}); diff --git a/product_exchange_pos_sys/static/src/js/order_button.js b/product_exchange_pos_sys/static/src/js/order_button.js new file mode 100644 index 000000000..a5aa82ef0 --- /dev/null +++ b/product_exchange_pos_sys/static/src/js/order_button.js @@ -0,0 +1,33 @@ +odoo.define('product_exchange_pos_sys.Orders', function (require) { +'use strict'; + const { Gui } = require('point_of_sale.Gui'); + const PosComponent = require('point_of_sale.PosComponent'); + const { identifyError } = require('point_of_sale.utils'); + const ProductScreen = require('point_of_sale.ProductScreen'); + const { useListener } = require("@web/core/utils/hooks"); + const Registries = require('point_of_sale.Registries'); + const PaymentScreen = require('point_of_sale.PaymentScreen'); + class OrderLineALL extends PosComponent { + setup() { + super.setup(); + useListener('click', this.onClick); + } + onClick() { + this.showScreen('CustomOrdrScreen', { + orders: this.env.pos.pos_orders, + pos: this.env.pos + }); + + } + } + + OrderLineALL.template = 'OrderLineALL'; + ProductScreen.addControlButton({ + component: OrderLineALL, + condition: function() { + return this.env.pos; + }, + }); + Registries.Component.add(OrderLineALL); + return OrderLineALL; +}); \ No newline at end of file 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/all_order_screen.xml b/product_exchange_pos_sys/static/src/xml/all_order_screen.xml new file mode 100644 index 000000000..6a46dfe9e --- /dev/null +++ b/product_exchange_pos_sys/static/src/xml/all_order_screen.xml @@ -0,0 +1,46 @@ + + + +
+
+
+
+ Back +
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + +
Order ReferenceReceipt ReferenceCustomerOrder Date
+ + + +
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/product_exchange_pos_sys/static/src/xml/exchange_order.xml b/product_exchange_pos_sys/static/src/xml/exchange_order.xml new file mode 100644 index 000000000..b4a34fa0d --- /dev/null +++ b/product_exchange_pos_sys/static/src/xml/exchange_order.xml @@ -0,0 +1,34 @@ + + + + + + diff --git a/product_exchange_pos_sys/static/src/xml/order_button.xml b/product_exchange_pos_sys/static/src/xml/order_button.xml new file mode 100644 index 000000000..7675f77f6 --- /dev/null +++ b/product_exchange_pos_sys/static/src/xml/order_button.xml @@ -0,0 +1,10 @@ + + + +
+ + All Order's +
+
+
+ diff --git a/product_exchange_pos_sys/views/pos_order.xml b/product_exchange_pos_sys/views/pos_order.xml new file mode 100644 index 000000000..95900c091 --- /dev/null +++ b/product_exchange_pos_sys/views/pos_order.xml @@ -0,0 +1,17 @@ + + + + + + pos.order.form + pos.order + + + + + + + + + + \ No newline at end of file