diff --git a/simplified_pos/README.rst b/simplified_pos/README.rst deleted file mode 100755 index b17d57a..0000000 --- a/simplified_pos/README.rst +++ /dev/null @@ -1,46 +0,0 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - -Simplified POS -=============== -This module provides all aspects of pos on a single page in Odoo. - -Configuration -============= -* No Additional configuration is needed. - -License -------- -General Public License, Version 3 (AGPL-3). -(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) - -Company -------- -* `Cybrosys Techno Solutions `__ - -Credits -------- -Developer: Swetha Anand @cybrosys, 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/simplified_pos/__init__.py b/simplified_pos/__init__.py deleted file mode 100644 index e063a18..0000000 --- a/simplified_pos/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Swetha Anand (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 . -# -############################################################################### diff --git a/simplified_pos/__manifest__.py b/simplified_pos/__manifest__.py deleted file mode 100644 index 2dff409..0000000 --- a/simplified_pos/__manifest__.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2023-TODAY Cybrosys Technologies() -# Author: Swetha Anand (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': 'Simplified POS', - 'version': '16.0.1.0.0', - 'category': 'Point of Sale', - 'summary': 'All aspects of POS on a single page.', - 'description': 'A straightforward point-of-sale system that enables ' - 'payment,order confirmation, and product selection all on ' - 'the same page.', - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'images': ['static/description/banner.jpg'], - 'website': 'https://www.cybrosys.com', - 'depends': ['base', 'point_of_sale'], - 'assets': { - 'point_of_sale.assets': [ - 'simplified_pos/static/src/js/ProductScreen.js', - 'simplified_pos/static/src/js/ConfirmationPopup.js', - 'simplified_pos/static/src/js/PrintPopup.js', - 'simplified_pos/static/src/js/ProductScreenPaymentLine.js', - 'simplified_pos/static/src/js/ProductWidgetSimple.js', - 'simplified_pos/static/src/scss/pos.scss', - 'simplified_pos/static/src/xml/ProductScreen.xml', - 'simplified_pos/static/src/xml/OrderWidget.xml', - 'simplified_pos/static/src/xml/ActionpadWidget.xml', - 'simplified_pos/static/src/xml/ConfirmationPopup.xml', - 'simplified_pos/static/src/xml/PrintPopup.xml', - 'simplified_pos/static/src/xml/PaymentScreenPaymentLine.xml', - 'simplified_pos/static/src/xml/ProductWidgetControlPanel.xml', - 'simplified_pos/static/src/xml/chrome.xml', - ] - }, - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/simplified_pos/doc/RELEASE_NOTES.md b/simplified_pos/doc/RELEASE_NOTES.md deleted file mode 100644 index 93708f2..0000000 --- a/simplified_pos/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module -#### 01.07.2023 -#### Version 16.0.1.0.0 -#### ADD - -- Initial commit for Simplified POS diff --git a/simplified_pos/static/description/assets/icons/check.png b/simplified_pos/static/description/assets/icons/check.png deleted file mode 100644 index c8e85f5..0000000 Binary files a/simplified_pos/static/description/assets/icons/check.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/chevron.png b/simplified_pos/static/description/assets/icons/chevron.png deleted file mode 100644 index 2089293..0000000 Binary files a/simplified_pos/static/description/assets/icons/chevron.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/cogs.png b/simplified_pos/static/description/assets/icons/cogs.png deleted file mode 100644 index 95d0bad..0000000 Binary files a/simplified_pos/static/description/assets/icons/cogs.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/consultation.png b/simplified_pos/static/description/assets/icons/consultation.png deleted file mode 100644 index 8319d4b..0000000 Binary files a/simplified_pos/static/description/assets/icons/consultation.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/ecom-black.png b/simplified_pos/static/description/assets/icons/ecom-black.png deleted file mode 100644 index a9385ff..0000000 Binary files a/simplified_pos/static/description/assets/icons/ecom-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/education-black.png b/simplified_pos/static/description/assets/icons/education-black.png deleted file mode 100644 index 3eb09b2..0000000 Binary files a/simplified_pos/static/description/assets/icons/education-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/hotel-black.png b/simplified_pos/static/description/assets/icons/hotel-black.png deleted file mode 100644 index 130f613..0000000 Binary files a/simplified_pos/static/description/assets/icons/hotel-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/license.png b/simplified_pos/static/description/assets/icons/license.png deleted file mode 100644 index a586979..0000000 Binary files a/simplified_pos/static/description/assets/icons/license.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/lifebuoy.png b/simplified_pos/static/description/assets/icons/lifebuoy.png deleted file mode 100644 index 658d56c..0000000 Binary files a/simplified_pos/static/description/assets/icons/lifebuoy.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/manufacturing-black.png b/simplified_pos/static/description/assets/icons/manufacturing-black.png deleted file mode 100644 index 697eb0e..0000000 Binary files a/simplified_pos/static/description/assets/icons/manufacturing-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/pos-black.png b/simplified_pos/static/description/assets/icons/pos-black.png deleted file mode 100644 index 97c0f90..0000000 Binary files a/simplified_pos/static/description/assets/icons/pos-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/puzzle.png b/simplified_pos/static/description/assets/icons/puzzle.png deleted file mode 100644 index 65cf854..0000000 Binary files a/simplified_pos/static/description/assets/icons/puzzle.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/restaurant-black.png b/simplified_pos/static/description/assets/icons/restaurant-black.png deleted file mode 100644 index 4a35eb9..0000000 Binary files a/simplified_pos/static/description/assets/icons/restaurant-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/service-black.png b/simplified_pos/static/description/assets/icons/service-black.png deleted file mode 100644 index 301ab51..0000000 Binary files a/simplified_pos/static/description/assets/icons/service-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/trading-black.png b/simplified_pos/static/description/assets/icons/trading-black.png deleted file mode 100644 index 9398ba2..0000000 Binary files a/simplified_pos/static/description/assets/icons/trading-black.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/training.png b/simplified_pos/static/description/assets/icons/training.png deleted file mode 100644 index 884ca02..0000000 Binary files a/simplified_pos/static/description/assets/icons/training.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/update.png b/simplified_pos/static/description/assets/icons/update.png deleted file mode 100644 index ecbc5a0..0000000 Binary files a/simplified_pos/static/description/assets/icons/update.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/user.png b/simplified_pos/static/description/assets/icons/user.png deleted file mode 100644 index 6ffb23d..0000000 Binary files a/simplified_pos/static/description/assets/icons/user.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/icons/wrench.png b/simplified_pos/static/description/assets/icons/wrench.png deleted file mode 100644 index 6c04dea..0000000 Binary files a/simplified_pos/static/description/assets/icons/wrench.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/categories.png b/simplified_pos/static/description/assets/misc/categories.png deleted file mode 100644 index bedf1e0..0000000 Binary files a/simplified_pos/static/description/assets/misc/categories.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/check-box.png b/simplified_pos/static/description/assets/misc/check-box.png deleted file mode 100644 index 42caf24..0000000 Binary files a/simplified_pos/static/description/assets/misc/check-box.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/compass.png b/simplified_pos/static/description/assets/misc/compass.png deleted file mode 100644 index d5fed8f..0000000 Binary files a/simplified_pos/static/description/assets/misc/compass.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/corporate.png b/simplified_pos/static/description/assets/misc/corporate.png deleted file mode 100644 index 2eb13ed..0000000 Binary files a/simplified_pos/static/description/assets/misc/corporate.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/customer-support.png b/simplified_pos/static/description/assets/misc/customer-support.png deleted file mode 100644 index 79efc72..0000000 Binary files a/simplified_pos/static/description/assets/misc/customer-support.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/cybrosys-logo.png b/simplified_pos/static/description/assets/misc/cybrosys-logo.png deleted file mode 100644 index cc3cc0c..0000000 Binary files a/simplified_pos/static/description/assets/misc/cybrosys-logo.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/features.png b/simplified_pos/static/description/assets/misc/features.png deleted file mode 100644 index b41769f..0000000 Binary files a/simplified_pos/static/description/assets/misc/features.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/logo.png b/simplified_pos/static/description/assets/misc/logo.png deleted file mode 100644 index 478462d..0000000 Binary files a/simplified_pos/static/description/assets/misc/logo.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/pictures.png b/simplified_pos/static/description/assets/misc/pictures.png deleted file mode 100644 index 56d255f..0000000 Binary files a/simplified_pos/static/description/assets/misc/pictures.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/pie-chart.png b/simplified_pos/static/description/assets/misc/pie-chart.png deleted file mode 100644 index 426e052..0000000 Binary files a/simplified_pos/static/description/assets/misc/pie-chart.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/right-arrow.png b/simplified_pos/static/description/assets/misc/right-arrow.png deleted file mode 100644 index 730984a..0000000 Binary files a/simplified_pos/static/description/assets/misc/right-arrow.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/star.png b/simplified_pos/static/description/assets/misc/star.png deleted file mode 100644 index 2eb9ab2..0000000 Binary files a/simplified_pos/static/description/assets/misc/star.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/support.png b/simplified_pos/static/description/assets/misc/support.png deleted file mode 100644 index 4f18b8b..0000000 Binary files a/simplified_pos/static/description/assets/misc/support.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/misc/whatsapp.png b/simplified_pos/static/description/assets/misc/whatsapp.png deleted file mode 100644 index d513a53..0000000 Binary files a/simplified_pos/static/description/assets/misc/whatsapp.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/modules/1.gif b/simplified_pos/static/description/assets/modules/1.gif deleted file mode 100644 index db040e0..0000000 Binary files a/simplified_pos/static/description/assets/modules/1.gif and /dev/null differ diff --git a/simplified_pos/static/description/assets/modules/2.png b/simplified_pos/static/description/assets/modules/2.png deleted file mode 100644 index 3415917..0000000 Binary files a/simplified_pos/static/description/assets/modules/2.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/modules/3.png b/simplified_pos/static/description/assets/modules/3.png deleted file mode 100644 index a291197..0000000 Binary files a/simplified_pos/static/description/assets/modules/3.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/modules/4.png b/simplified_pos/static/description/assets/modules/4.png deleted file mode 100644 index b55ddc8..0000000 Binary files a/simplified_pos/static/description/assets/modules/4.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/modules/5.png b/simplified_pos/static/description/assets/modules/5.png deleted file mode 100644 index 25ed3e0..0000000 Binary files a/simplified_pos/static/description/assets/modules/5.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/modules/6.png b/simplified_pos/static/description/assets/modules/6.png deleted file mode 100644 index 15b1412..0000000 Binary files a/simplified_pos/static/description/assets/modules/6.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/hero.gif b/simplified_pos/static/description/assets/screenshots/hero.gif deleted file mode 100644 index 7297714..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/hero.gif and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_01.png b/simplified_pos/static/description/assets/screenshots/s_pos_01.png deleted file mode 100644 index 555dfac..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_01.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_02.png b/simplified_pos/static/description/assets/screenshots/s_pos_02.png deleted file mode 100644 index d7d3f2a..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_02.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_03.png b/simplified_pos/static/description/assets/screenshots/s_pos_03.png deleted file mode 100644 index e21a2d3..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_03.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_04.png b/simplified_pos/static/description/assets/screenshots/s_pos_04.png deleted file mode 100644 index ae21876..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_04.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_05.png b/simplified_pos/static/description/assets/screenshots/s_pos_05.png deleted file mode 100644 index c57abf2..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_05.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_06.png b/simplified_pos/static/description/assets/screenshots/s_pos_06.png deleted file mode 100644 index c5a4f06..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_06.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_07.png b/simplified_pos/static/description/assets/screenshots/s_pos_07.png deleted file mode 100644 index ea2625a..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_07.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_08.png b/simplified_pos/static/description/assets/screenshots/s_pos_08.png deleted file mode 100644 index ab39944..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_08.png and /dev/null differ diff --git a/simplified_pos/static/description/assets/screenshots/s_pos_09.png b/simplified_pos/static/description/assets/screenshots/s_pos_09.png deleted file mode 100644 index 1acb82b..0000000 Binary files a/simplified_pos/static/description/assets/screenshots/s_pos_09.png and /dev/null differ diff --git a/simplified_pos/static/description/banner.jpg b/simplified_pos/static/description/banner.jpg deleted file mode 100644 index 9ce3e0c..0000000 Binary files a/simplified_pos/static/description/banner.jpg and /dev/null differ diff --git a/simplified_pos/static/description/icon.png b/simplified_pos/static/description/icon.png deleted file mode 100644 index c835366..0000000 Binary files a/simplified_pos/static/description/icon.png and /dev/null differ diff --git a/simplified_pos/static/description/index.html b/simplified_pos/static/description/index.html deleted file mode 100644 index 6b7ba8e..0000000 --- a/simplified_pos/static/description/index.html +++ /dev/null @@ -1,686 +0,0 @@ -
- -
- -
-
- Community -
-
- Enterprise -
-
- Odoo.sh -
-
-
- -
-
-
- -

- Simplified Pos

-

- All aspects of pos on - a single page.

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

- Explore This - Module

-
- - - - -
-
- -
-

- Overview -

-
-
-
- With the help of this app, you may perform all point-of-sale tasks in a - single frame. -
-
- - - -
-
- -
-

- Features -

-
-
-
- - Choosing a product, confirming an order, and making a payment all on the same page. -
-
- - - - -
-
- -
-

- Screenshots -

-
-
-
-
-

- A POS frame

-

- This is the new point - of sale frame.

- -
- -
-

- Product Search

-

- We can search for - products here.

- -
- -
-

- Add Products to Order - line

-

- When a product is - clicked, it is added to the order lines and the total is - displayed beneath it. We can adjust the amount, - price, and discount using the number pad.

- -
- -
-

- Add Payment - Methods

-

- We can select the - necessary payment options, which can be shown beneath the - summary.

- -
- -
-

- Choose Customer

-

- By pressing the search - button, we may choose a customer.

- -
- -
-

- Click

-

- Click this to validate - the order.

- -
- -
-

- Click

-

- Click confirm to - confirm order else click cancel.

- -
- -
-

- Click

-

- Click print to print - the order.

- -
- -
-

- Click New order

-

- To access the new - order, click New Order.

- -
-
-
- - -
-
- -
-

- Suggested - 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/simplified_pos/static/src/js/ConfirmationPopup.js b/simplified_pos/static/src/js/ConfirmationPopup.js deleted file mode 100644 index cdd7169..0000000 --- a/simplified_pos/static/src/js/ConfirmationPopup.js +++ /dev/null @@ -1,44 +0,0 @@ -odoo.define('point_of_sale.ConfirmationPopup', function (require) { - 'use strict'; - const { _lt } = require('@web/core/l10n/translation'); - const PaymentScreen = require('point_of_sale.PaymentScreen'); - const Registries = require('point_of_sale.Registries'); - const { useBus } = require('@web/core/utils/hooks'); - - class ConfirmationPopup extends PaymentScreen { - /*This is to add the workings inside confirmationPopup.*/ - setup() { - super.setup(); - if (this.props.confirmKey) { - useBus(this.env.posbus, `confirm-popup-${this.props.id}`, this.confirm); - } - } - async confirm(ev) { - /*Once confirm is clicked, the confirm function is activated, - and a PrintPopup is displayed, confirming the order.*/ - this.showPopup("PrintPopup", { - title: _lt('Print order'), - confirmText: _lt('Print'), - cancelText: this.env._t('Cancel'), - }); - this.validateOrder(false) - this.env.posbus.trigger('close-popup', { - popupId: this.props.id, - response: { confirmed: true, payload: await this.getPayload() }, - }); - } - async getPayload() { - return null; - } - async cancel(ev) { - /*Orders are cancelled through the cancel function.*/ - window.location.reload(); - } - get nextScreen() { - return !this.error ? 'ProductScreen' : 'ProductScreen'; - } - } - ConfirmationPopup.template = 'ConfirmationPopup'; - Registries.Component.add(ConfirmationPopup); - return ConfirmationPopup; -}); \ No newline at end of file diff --git a/simplified_pos/static/src/js/PrintPopup.js b/simplified_pos/static/src/js/PrintPopup.js deleted file mode 100644 index 516d554..0000000 --- a/simplified_pos/static/src/js/PrintPopup.js +++ /dev/null @@ -1,51 +0,0 @@ -odoo.define('point_of_sale.PrintPopup', function (require) { - 'use strict'; - - const AbstractAwaitablePopup = require('point_of_sale.AbstractAwaitablePopup'); - const Registries = require('point_of_sale.Registries'); - - class PrintPopup extends AbstractAwaitablePopup { - setup() { - super.setup(); - } - async printReceipt() { - /*create a new window to hold the content to be printed*/ - var printWindow = window.open('', 'PrintWindow', 'height=600,width=400'); - /* get the HTML content of the popup, excluding the buttons*/ - var content = this.el.innerHTML; - content = content.replace(/]*>[\s\S]*<\/footer>/gi, ''); - content = content.replace(/]*>[\s\S]*<\/header>/gi, ''); - /* set the content of the new window to the modified HTML*/ - printWindow.document.write(content); - /* print the content and close the window*/ - printWindow.print(); - window.location.reload(); - } - async cancel() { - /*Orders are cancelled through the cancel function.*/ - window.location.reload(); - } - get orderlines() { - /*Selected order lines are passed to UI.*/ - var orderlines = this.env.pos.selectedOrder.orderlines - var orderlinesList = [] - orderlines.forEach(function (orderlines) { - var totalprice = orderlines.price * orderlines.quantity - orderlinesList.push([orderlines.product.display_name, orderlines.quantity, orderlines.price, totalprice]) - }) - return orderlinesList; - } - get total() { - /*Total is calculated and passed*/ - var total = 0 - var totalvalues = this.env.pos.selectedOrder.paymentlines - totalvalues.forEach(function (totalvalues) { - total = total + totalvalues.amount - }) - return total; - } - } - PrintPopup.template = 'PrintPopup'; - Registries.Component.add(PrintPopup); - return PrintPopup; -}); \ No newline at end of file diff --git a/simplified_pos/static/src/js/ProductScreen.js b/simplified_pos/static/src/js/ProductScreen.js deleted file mode 100644 index bbf891c..0000000 --- a/simplified_pos/static/src/js/ProductScreen.js +++ /dev/null @@ -1,87 +0,0 @@ -odoo.define('point_of_sale.customer', function (require) { - const ProductScreen = require('point_of_sale.ProductScreen'); - const { useListener } = require("@web/core/utils/hooks"); - const Registries = require('point_of_sale.Registries'); - const { _lt } = require('@web/core/l10n/translation'); - const CustomerButtons = (ProductScreen) => - class extends ProductScreen { - /*Here, the ProductScreen has been extended, and some features have been overridden.*/ - setup() { - super.setup(); - useListener('new-payment-line', this.newPaymentLine); - useListener('confirm-order', this.confirmOrder); - useListener('select-line', this._selectLine); - } - customerdetails() { - this.onClickPartner(); - } - confirmOrder() { - /* When performing validation, this function checks the - requirements and displays an error message if any are reduced.*/ - var paymentline = this.currentOrder.paymentlines.length - var partner = this.currentOrder.partner - var orderlines = this.currentOrder.orderlines.length - if (orderlines == 0) { - this.showPopup('ErrorPopup', { - title: this.env._t('Error'), - body: this.env._t('Cart is empty.'), - }); - } - else if (partner == null) { - this.showPopup('ErrorPopup', { - title: this.env._t('Error'), - body: this.env._t('Select a Customer.'), - }); - } - else if (paymentline == 0) { - this.showPopup('ErrorPopup', { - title: this.env._t('Error'), - body: this.env._t('Select a Payment Method'), - }); - } - else { - this.showPopup("ConfirmationPopup", { - title: _lt('Confirmation'), - confirmText: _lt('Confirm'), - cancelText: this.env._t('Cancel'), - }); - } - } - orderDone() { - this.env.pos.removeOrder(this.currentOrder); - this.env.pos.add_new_order(); - const { name, props } = this.nextScreen; - this.showScreen(name, props); - if (this.env.pos.config.iface_customer_facing_display) { - this.env.pos.send_current_order_to_customer_facing_display(); - } - } - newPaymentLine({ detail: paymentMethod }) { - let result = this.currentOrder.add_paymentline(paymentMethod); - if (result) { - return true; - } - else { - return false; - } - } - get paymentLines() { - return this.env.pos.get_order().get_paymentlines(); - } - get_partner() { - return this.partner; - } - set_partner(partner) { - this.partner = this.env.pos.selectedPartner[4]; - } - get nextScreen() { - return { name: 'ProductScreen' }; - } - _selectLine(event) { - this.env.pos.selectedOrder.select_orderline(event.detail.orderline); - } - - } - Registries.Component.extend(ProductScreen, CustomerButtons); - return CustomerButtons; -}); \ No newline at end of file diff --git a/simplified_pos/static/src/js/ProductScreenPaymentLine.js b/simplified_pos/static/src/js/ProductScreenPaymentLine.js deleted file mode 100644 index 8520fbf..0000000 --- a/simplified_pos/static/src/js/ProductScreenPaymentLine.js +++ /dev/null @@ -1,35 +0,0 @@ -odoo.define('point_of_sale.ProductScreenPaymentLine', function (require) { - 'use strict'; - const PaymentScreenPaymentLines = require('point_of_sale.PaymentScreenPaymentLines'); - const Registries = require('point_of_sale.Registries'); - const NumberBuffer = require('point_of_sale.NumberBuffer'); - const { useListener } = require("@web/core/utils/hooks"); - const ProductScreenPaymentLine = (PaymentScreenPaymentLines) => - class extends PaymentScreenPaymentLines { - /*Here PaymentScreenPaymentLines is extended.*/ - setup() { - super.setup(); - useListener('delete-payment', this.deletePayment); - useListener('select-payment-line', this.selectPaymentLine); - } - selectPaymentLine(event) { - /*This helps to select payment line in summary.*/ - const { cid } = event.detail; - const line = this.env.pos.selectedOrder.paymentlines.find((line) => line.cid === cid); - this.env.pos.selectedOrder.select_paymentline(line); - NumberBuffer.reset(); - this.render(true); - } - deletePayment(event) { - /*This is to delete payment lines from summary.*/ - const { cid } = event.detail; - const paymentline = this.env.pos.selectedOrder.paymentlines.find((line) => line.cid === cid); - if (paymentline) { - this.env.pos.selectedOrder.remove_paymentline(paymentline); - this.render(true); - } - } - }; - Registries.Component.extend(PaymentScreenPaymentLines, ProductScreenPaymentLine); - return ProductScreenPaymentLine; -}); \ No newline at end of file diff --git a/simplified_pos/static/src/js/ProductWidgetSimple.js b/simplified_pos/static/src/js/ProductWidgetSimple.js deleted file mode 100644 index df79433..0000000 --- a/simplified_pos/static/src/js/ProductWidgetSimple.js +++ /dev/null @@ -1,24 +0,0 @@ -odoo.define('point_of_sale.ProductsWidgetSimple', function (require) { - 'use strict'; - const Registries = require('point_of_sale.Registries'); - const ProductsWidget = require('point_of_sale.ProductsWidget'); - const ProductsWidgetSimple = (ProductsWidget) => - class extends ProductsWidget { - setup() { - super.setup(); - } - get productsToDisplay() { - /* This function is override to remove products showing before hand.*/ - let list = []; - if (this.searchWord !== '') { - list = this.env.pos.db.search_product_in_category( - this.selectedCategoryId, - this.searchWord - ); - } - return list.sort(function (a, b) { return a.display_name.localeCompare(b.display_name) }); - } - }; - Registries.Component.extend(ProductsWidget, ProductsWidgetSimple); - return ProductsWidgetSimple; -}); \ No newline at end of file diff --git a/simplified_pos/static/src/scss/pos.scss b/simplified_pos/static/src/scss/pos.scss deleted file mode 100644 index 35305e6..0000000 --- a/simplified_pos/static/src/scss/pos.scss +++ /dev/null @@ -1,209 +0,0 @@ -.pos .leftpane { - background: $gray-200; - float:left; - height: 98%; - display: flex; - flex-direction: column; - flex-grow: 1; - width:30%; - border: solid 5px teal;; - &::-webkit-scrollbar { - width: 0; - } -} -.pos .subwindow .subwindow-container-fix { - height: 100%; - position: relative; - overflow-y: scroll;; - &::-webkit-scrollbar { - width: 0; - } -} -.pos .products-widget { - display: flex; - flex-direction: column; - flex-grow: 1; - height:100%; - overflow: hidden;; - &::-webkit-scrollbar { - width: 0; - } -} -.pos .order .orderlines { - &::-webkit-scrollbar { - width: 0; - } -} -.pos-topheader { - background: teal !important; -} -.payment-status-container { - margin-top: 70px !important; -} -.paymentlines-container { - height: 29% !important; -} -.nextorder{ - margin-bottom:8px !important; - width:29% !important; -} -.pos .product-list-container .product-list-empty p { - margin: 10px; - text-align: center; - color: teal; - font-size: 14px; -} -.pos .button.validation .pay-circle { - background: white; - color: teal; -} -.pos .numpad { - display: grid; - grid-template-columns: repeat(4, 1fr); - text-align: center; - flex-grow: 1; - width: 100%; - min-width: 216px; -} -.pos .numpad button { - border-color:teal; - color:teal; - border-top: 1px solid; - border-bottom: 0px; -} -.pos .mode-button.selected-mode { - color: teal; - background: white; - border-color: teal; -} -.pos .actionpad { - padding: 0; - text-align: center; - vertical-align: top; - border: none; - border-right: 1px solid $gray-300; - flex-grow: 1; - width: 50%; -} -.pos .right{ - float:right; - background:white; - width:30%; - height: 98.9%; - border: solid 5px teal; - box-sizing: border-box; - margin-top: 2px; - margin-bottom: 8px; -} -.pos .customer-button{ - width: 65%; - margin-bottom: 110px; - border: 2px solid teal !important; - color: teal !important; -} -.pos .head{ - color: #017e84; - font-size: 12px; - font-weight: bold; -} -.pos .center{ - background:white; - height: 100%; -} -.pos ._o_customer{ - text-align: justify; - margin-left: 30px; - margin-right: 30px; -} -.pos .paymentlines-container { - padding: 16px; - padding-top: 0; - border: solid 5px teal; - min-height: 154px; - text-align:center; - padding: 50px 30px 0px 18px; - font-size: 30px; - color: #43996E; -} -.pos p.title-category { - margin: 0; - padding: map-get($spacers, 1) map-get($spacers, 3); - background: $gray-300; - color: teal; - text-transform: uppercase; - font-weight: bold; - font-size: 15px; - order: 1; -} -.pos .payment-status-total-due { - font-size: 17px; - padding-top: 12px; - padding-bottom: 12px; - color: $gray-500; - padding-left: 100px; -} -.pos .payment-status-container { - display: flex; - justify-content: center; - font-size: 25px; - padding-top: 15px; -} -.pos .button.validation { - display: flex; - align-items: center; - justify-content: center; - flex-direction: column; - height: calc(var(--btn-height-size) * 2.3); - border: none; - background: $primary; - color: #fff; - font-size: 14px; - font-weight: bold; - transition: all 150ms linear; -} -.pos .amount-paymentmethod{ - padding-left: 40%; -} -.pos .delete-button { - padding-left: 30%; -} -.pos .form-container{ - max-width: 450px; - padding: 30px; - background-color: white; -} -.pos .orderlinesactionpad-receipt{ - font-size : 15px; - text-align:left; - margin-left:35px; -} -.pos .button.validation{ - background:#39B8B8 !important; - margin-bottom: 13px !important; -} -.highlight { - width: 29.45% !important; -} -.next { - border-bottom: solid 5px teal !important; -} -.paymentmethods-container { - overflow: scroll; - height: 49.125%; - &::-webkit-scrollbar { - width: 0; - } -} -.pos .nextorder { - position: absolute; - width: 28.3%; - bottom: 0; -} -.pos .search-bar-container.sb-product { - max-width: 100%; - width:100%; - -webkit-box-pack: start; - justify-content: flex-start; - height: 100%; - min-height: 48px; -} \ No newline at end of file diff --git a/simplified_pos/static/src/xml/ActionpadWidget.xml b/simplified_pos/static/src/xml/ActionpadWidget.xml deleted file mode 100644 index 8ea0132..0000000 --- a/simplified_pos/static/src/xml/ActionpadWidget.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/simplified_pos/static/src/xml/ConfirmationPopup.xml b/simplified_pos/static/src/xml/ConfirmationPopup.xml deleted file mode 100644 index 86dd7b9..0000000 --- a/simplified_pos/static/src/xml/ConfirmationPopup.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/simplified_pos/static/src/xml/OrderWidget.xml b/simplified_pos/static/src/xml/OrderWidget.xml deleted file mode 100644 index d2da2d4..0000000 --- a/simplified_pos/static/src/xml/OrderWidget.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/simplified_pos/static/src/xml/PaymentScreenPaymentLine.xml b/simplified_pos/static/src/xml/PaymentScreenPaymentLine.xml deleted file mode 100644 index b7cd741..0000000 --- a/simplified_pos/static/src/xml/PaymentScreenPaymentLine.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - -
- -
-
-
-
\ No newline at end of file diff --git a/simplified_pos/static/src/xml/PrintPopup.xml b/simplified_pos/static/src/xml/PrintPopup.xml deleted file mode 100644 index c1bd5a8..0000000 --- a/simplified_pos/static/src/xml/PrintPopup.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/simplified_pos/static/src/xml/ProductScreen.xml b/simplified_pos/static/src/xml/ProductScreen.xml deleted file mode 100644 index 080c1b2..0000000 --- a/simplified_pos/static/src/xml/ProductScreen.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - -
- - -
-
-

CUSTOMER

-
-
- -
-
-
- -
-
-
- -
- New Order -
-
-
-
- -
-
-
-

Payment method

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

Name:

- -

Address:

- -

Email:

- -

Phone:

- - -
-
-
\ No newline at end of file diff --git a/simplified_pos/static/src/xml/ProductWidgetControlPanel.xml b/simplified_pos/static/src/xml/ProductWidgetControlPanel.xml deleted file mode 100644 index a946021..0000000 --- a/simplified_pos/static/src/xml/ProductWidgetControlPanel.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - -
-
- - - - - - -
-
-
-
-
\ No newline at end of file diff --git a/simplified_pos/static/src/xml/chrome.xml b/simplified_pos/static/src/xml/chrome.xml deleted file mode 100644 index dac78e6..0000000 --- a/simplified_pos/static/src/xml/chrome.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - -
- - -
-
-
-
\ No newline at end of file