diff --git a/pos_product_limit_odoo/README.rst b/pos_product_limit_odoo/README.rst new file mode 100644 index 000000000..0ba2a5fb4 --- /dev/null +++ b/pos_product_limit_odoo/README.rst @@ -0,0 +1,44 @@ +Pos Product Limit In Odoo 15 +============================ + +This module used to allow products to user or only access products +related to allowed categories or Allow access of products/category to user + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/15.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(V15) Archana V @ Cybrosys + + +Contacts +-------- +* Mail Contact : odoo@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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/pos_product_limit_odoo/__init__.py b/pos_product_limit_odoo/__init__.py new file mode 100644 index 000000000..3367fdfdb --- /dev/null +++ b/pos_product_limit_odoo/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models diff --git a/pos_product_limit_odoo/__manifest__.py b/pos_product_limit_odoo/__manifest__.py new file mode 100644 index 000000000..91a2658ce --- /dev/null +++ b/pos_product_limit_odoo/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Pos Product Limit Odoo 15', + 'version': '15.0.1.0.0', + 'summary': """Pos Product Limit Odoo 15""", + 'description': """Pos Product Limit Odoo 15'""", + 'category': "Point of Sale", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['web', 'base', 'point_of_sale'], + 'data': ['views/pos_config.xml'], + 'assets': { + 'web.assets_backend': [ + 'pos_product_limit_odoo/static/src/js/productWidget.js' + ], + }, + 'images': ['static/description/banner.png'], + 'license': "LGPL-3", + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/pos_product_limit_odoo/doc/RELEASE_NOTES.md b/pos_product_limit_odoo/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..5250d4996 --- /dev/null +++ b/pos_product_limit_odoo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 01.10.2022 +#### Version 15.0.1.0.0 +#### ADD +- Initial commit for pos_product_limit \ No newline at end of file diff --git a/pos_product_limit_odoo/models/__init__.py b/pos_product_limit_odoo/models/__init__.py new file mode 100644 index 000000000..28cc9800a --- /dev/null +++ b/pos_product_limit_odoo/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import pos_config diff --git a/pos_product_limit_odoo/models/pos_config.py b/pos_product_limit_odoo/models/pos_config.py new file mode 100644 index 000000000..834cbbec2 --- /dev/null +++ b/pos_product_limit_odoo/models/pos_config.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import models, fields + + +class PosConfig(models.Model): + _inherit = 'pos.config' + + product_limit = fields.Integer(string="product Limit") diff --git a/pos_product_limit_odoo/static/description/assets/icons/check.png b/pos_product_limit_odoo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/check.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/chevron.png b/pos_product_limit_odoo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/chevron.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/cogs.png b/pos_product_limit_odoo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/cogs.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/consultation.png b/pos_product_limit_odoo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/consultation.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/ecom-black.png b/pos_product_limit_odoo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/ecom-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/education-black.png b/pos_product_limit_odoo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/education-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/hotel-black.png b/pos_product_limit_odoo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/hotel-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/license.png b/pos_product_limit_odoo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/license.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/lifebuoy.png b/pos_product_limit_odoo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/lifebuoy.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/logo.png b/pos_product_limit_odoo/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/logo.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/manufacturing-black.png b/pos_product_limit_odoo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/manufacturing-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/pos-black.png b/pos_product_limit_odoo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/pos-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/puzzle.png b/pos_product_limit_odoo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/puzzle.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/restaurant-black.png b/pos_product_limit_odoo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/restaurant-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/service-black.png b/pos_product_limit_odoo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/service-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/trading-black.png b/pos_product_limit_odoo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/trading-black.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/training.png b/pos_product_limit_odoo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/training.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/update.png b/pos_product_limit_odoo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/update.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/user.png b/pos_product_limit_odoo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/user.png differ diff --git a/pos_product_limit_odoo/static/description/assets/icons/wrench.png b/pos_product_limit_odoo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/icons/wrench.png differ diff --git a/pos_product_limit_odoo/static/description/assets/modules/budget_image.png b/pos_product_limit_odoo/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/modules/budget_image.png differ diff --git a/pos_product_limit_odoo/static/description/assets/modules/credit_image.png b/pos_product_limit_odoo/static/description/assets/modules/credit_image.png new file mode 100644 index 000000000..3ad04ecfd Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/modules/credit_image.png differ diff --git a/pos_product_limit_odoo/static/description/assets/modules/employee_image.png b/pos_product_limit_odoo/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/modules/employee_image.png differ diff --git a/pos_product_limit_odoo/static/description/assets/modules/export_image.png b/pos_product_limit_odoo/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/modules/export_image.png differ diff --git a/pos_product_limit_odoo/static/description/assets/modules/gantt_image.png b/pos_product_limit_odoo/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/modules/gantt_image.png differ diff --git a/pos_product_limit_odoo/static/description/assets/modules/quotation_image.png b/pos_product_limit_odoo/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/modules/quotation_image.png differ diff --git a/pos_product_limit_odoo/static/description/assets/screenshots/a1.png b/pos_product_limit_odoo/static/description/assets/screenshots/a1.png new file mode 100644 index 000000000..d0b9f4d9f Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/screenshots/a1.png differ diff --git a/pos_product_limit_odoo/static/description/assets/screenshots/a2.png b/pos_product_limit_odoo/static/description/assets/screenshots/a2.png new file mode 100644 index 000000000..0c700bfe4 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/screenshots/a2.png differ diff --git a/pos_product_limit_odoo/static/description/assets/screenshots/a3.png b/pos_product_limit_odoo/static/description/assets/screenshots/a3.png new file mode 100644 index 000000000..49079bf48 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/screenshots/a3.png differ diff --git a/pos_product_limit_odoo/static/description/assets/screenshots/a4.png b/pos_product_limit_odoo/static/description/assets/screenshots/a4.png new file mode 100644 index 000000000..a46a6fafa Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/screenshots/a4.png differ diff --git a/pos_product_limit_odoo/static/description/assets/screenshots/hero.gif b/pos_product_limit_odoo/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..e1d16a796 Binary files /dev/null and b/pos_product_limit_odoo/static/description/assets/screenshots/hero.gif differ diff --git a/pos_product_limit_odoo/static/description/banner.png b/pos_product_limit_odoo/static/description/banner.png new file mode 100644 index 000000000..a6fd947b3 Binary files /dev/null and b/pos_product_limit_odoo/static/description/banner.png differ diff --git a/pos_product_limit_odoo/static/description/icon.png b/pos_product_limit_odoo/static/description/icon.png new file mode 100644 index 000000000..029317d14 Binary files /dev/null and b/pos_product_limit_odoo/static/description/icon.png differ diff --git a/pos_product_limit_odoo/static/description/index.html b/pos_product_limit_odoo/static/description/index.html new file mode 100644 index 000000000..cfb72a473 --- /dev/null +++ b/pos_product_limit_odoo/static/description/index.html @@ -0,0 +1,578 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ + +
+
+
+
+ +
+
+
+

+ POS Product Limit

+

+ Configure Limited Number of Products in POS Shop

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ The module used to allowing the limited products in POS product screen. +

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Enterprise and Community compatible.

+
+
+ +
+
+ +
+
+

+ Configure Limited Products in POS

+
+
+ +
+
+ +
+
+

+ Available in Odoo 16.0 + Community

+
+
+ + +
+ +
+
+

+ Screenshots +

+
+
+

+ Product Screen of the POS.

+ + +
+ +
+

+ Shop Settings

+

+ Clicking on the "settings" button of the pos shop

+ +
+ +
+

+ We can see the pop up window and also there is a field product limit , configured the number of limit of + the products. +

+ +
+
+

+ Limited products is visible the pos product screen

+ +
+
+ +
+
+

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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/pos_product_limit_odoo/static/src/js/productWidget.js b/pos_product_limit_odoo/static/src/js/productWidget.js new file mode 100644 index 000000000..0e4ed0916 --- /dev/null +++ b/pos_product_limit_odoo/static/src/js/productWidget.js @@ -0,0 +1,31 @@ +/** @odoo-module */ +import ProductsWidget from 'point_of_sale.ProductsWidget'; +import Registries from 'point_of_sale.Registries'; + +export const ProductsWidgetLimit =(ProductsWidget)=> + class ProductsWidgetLimit extends ProductsWidget{ + get productsToDisplay() { + let list = []; + if (this.searchWord !== '') { + list = this.env.pos.db.search_product_in_category( + this.selectedCategoryId, + this.searchWord + ); + } else { + list = this.env.pos.db.get_product_by_category(this.selectedCategoryId); + } + let all_items = list.sort(function (a, b) { return a.display_name.localeCompare(b.display_name) }); + let limit_items = all_items + if (this.env.pos.config.product_limit <= 0){ + limit_items = all_items; + } + else{ + limit_items = all_items.slice(0,this.env.pos.config.product_limit); + } + + return limit_items; + } + + } + +Registries.Component.extend(ProductsWidget,ProductsWidgetLimit); \ No newline at end of file diff --git a/pos_product_limit_odoo/views/pos_config.xml b/pos_product_limit_odoo/views/pos_config.xml new file mode 100644 index 000000000..157647de0 --- /dev/null +++ b/pos_product_limit_odoo/views/pos_config.xml @@ -0,0 +1,20 @@ + + + + pos.config.inherit + pos.config + + +
+
+
+
+ +
+
+