diff --git a/product_discount_limit/README.rst b/product_discount_limit/README.rst new file mode 100644 index 000000000..2eb8da9c2 --- /dev/null +++ b/product_discount_limit/README.rst @@ -0,0 +1,42 @@ +.. 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 +Product Discount Limit +===================================== +This module allow to set discount limit for products and product categories + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: JANISH BABU EK@cybrosys(v16) + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ + + diff --git a/product_discount_limit/__init__.py b/product_discount_limit/__init__.py new file mode 100644 index 000000000..1a2ee356e --- /dev/null +++ b/product_discount_limit/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models diff --git a/product_discount_limit/__manifest__.py b/product_discount_limit/__manifest__.py new file mode 100644 index 000000000..a83c847fa --- /dev/null +++ b/product_discount_limit/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (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': 'Product Discount Limit', + 'version': '16.0.1.0.0', + 'summary': """Limit of Product Discount""", + 'description': """This module allow to set discount limit for products and product categories.""", + 'category': 'Sales', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'depends': ['base', 'sale_management'], + 'website': 'https://www.cybrosys.com', + 'data': [ + 'views/product_product.xml', + 'views/product_category.xml', + 'views/res_users.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/product_discount_limit/doc/RELEASE_NOTES.md b/product_discount_limit/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..869ccaf9b --- /dev/null +++ b/product_discount_limit/doc/RELEASE_NOTES.md @@ -0,0 +1,8 @@ +## Module + +#### 09.03.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Product Discount Limit + diff --git a/product_discount_limit/models/__init__.py b/product_discount_limit/models/__init__.py new file mode 100644 index 000000000..de360938a --- /dev/null +++ b/product_discount_limit/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import product_category +from . import product_product +from . import res_users +from . import sale_order_line diff --git a/product_discount_limit/models/product_category.py b/product_discount_limit/models/product_category.py new file mode 100644 index 000000000..0515cb2c3 --- /dev/null +++ b/product_discount_limit/models/product_category.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + +"""Inherited product.category to add field Discount Limit""" + + +class ProductCategory(models.Model): + _inherit = 'product.category' + + desc_limit = fields.Float("Discount Limit(%)", + help="""If it is specified, + user can't give a discount + greater the amount""") diff --git a/product_discount_limit/models/product_product.py b/product_discount_limit/models/product_product.py new file mode 100644 index 000000000..b502037ac --- /dev/null +++ b/product_discount_limit/models/product_product.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + +"""Inherited product.template to add field Discount Limit""" + + +class ProductTemplate(models.Model): + _inherit = 'product.template' + + desc_limit = fields.Float("Discount Limit(%)", help="""If it is specified, + user can't give a discount + greater the amount""") diff --git a/product_discount_limit/models/res_users.py b/product_discount_limit/models/res_users.py new file mode 100644 index 000000000..3be39fe58 --- /dev/null +++ b/product_discount_limit/models/res_users.py @@ -0,0 +1,33 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + +"""Inherited res.users to add field to allow discount over limit""" + + +class ResUser(models.Model): + _inherit = 'res.users' + + allow_discount = fields.Boolean("Allow Discount Over Limit", + help="""If it is True, + discount Limit will + not affect the user""") diff --git a/product_discount_limit/models/sale_order_line.py b/product_discount_limit/models/sale_order_line.py new file mode 100644 index 000000000..87a989702 --- /dev/null +++ b/product_discount_limit/models/sale_order_line.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: JANISH BABU EK (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import api, exceptions, models, _ + +"""Inherited sale.order.line for checking the limit of discount allowed for product and category""" + + +class SalesOrderLine(models.Model): + _inherit = 'sale.order.line' + + @api.onchange('discount') + def _onchange_discount(self): + """Checking the limit of discount allowed for products and category""" + if not self.env.user.allow_discount: + desc_limit = self.product_id.product_tmpl_id.desc_limit or self.product_id.categ_id.desc_limit + if desc_limit and self.discount > desc_limit: + raise exceptions.UserError( + _('You are not allowed to apply discount more than %s percentage ' + 'on this %s. Please contact your administrator', + desc_limit, + 'product' if self.product_id.product_tmpl_id else 'category')) diff --git a/product_discount_limit/static/description/assets/icons/check.png b/product_discount_limit/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/check.png differ diff --git a/product_discount_limit/static/description/assets/icons/chevron.png b/product_discount_limit/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/chevron.png differ diff --git a/product_discount_limit/static/description/assets/icons/cogs.png b/product_discount_limit/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/cogs.png differ diff --git a/product_discount_limit/static/description/assets/icons/consultation.png b/product_discount_limit/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/consultation.png differ diff --git a/product_discount_limit/static/description/assets/icons/ecom-black.png b/product_discount_limit/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/ecom-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/education-black.png b/product_discount_limit/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/education-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/hotel-black.png b/product_discount_limit/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/hotel-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/license.png b/product_discount_limit/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/license.png differ diff --git a/product_discount_limit/static/description/assets/icons/lifebuoy.png b/product_discount_limit/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/lifebuoy.png differ diff --git a/product_discount_limit/static/description/assets/icons/manufacturing-black.png b/product_discount_limit/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/pos-black.png b/product_discount_limit/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/pos-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/puzzle.png b/product_discount_limit/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/puzzle.png differ diff --git a/product_discount_limit/static/description/assets/icons/restaurant-black.png b/product_discount_limit/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/restaurant-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/service-black.png b/product_discount_limit/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/service-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/trading-black.png b/product_discount_limit/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/trading-black.png differ diff --git a/product_discount_limit/static/description/assets/icons/training.png b/product_discount_limit/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/training.png differ diff --git a/product_discount_limit/static/description/assets/icons/update.png b/product_discount_limit/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/update.png differ diff --git a/product_discount_limit/static/description/assets/icons/user.png b/product_discount_limit/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/user.png differ diff --git a/product_discount_limit/static/description/assets/icons/wrench.png b/product_discount_limit/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_discount_limit/static/description/assets/icons/wrench.png differ diff --git a/product_discount_limit/static/description/assets/misc/categories.png b/product_discount_limit/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/categories.png differ diff --git a/product_discount_limit/static/description/assets/misc/check-box.png b/product_discount_limit/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/check-box.png differ diff --git a/product_discount_limit/static/description/assets/misc/compass.png b/product_discount_limit/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/compass.png differ diff --git a/product_discount_limit/static/description/assets/misc/corporate.png b/product_discount_limit/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/corporate.png differ diff --git a/product_discount_limit/static/description/assets/misc/customer-support.png b/product_discount_limit/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/customer-support.png differ diff --git a/product_discount_limit/static/description/assets/misc/cybrosys-logo.png b/product_discount_limit/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/cybrosys-logo.png differ diff --git a/product_discount_limit/static/description/assets/misc/features.png b/product_discount_limit/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/features.png differ diff --git a/product_discount_limit/static/description/assets/misc/logo.png b/product_discount_limit/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/logo.png differ diff --git a/product_discount_limit/static/description/assets/misc/pictures.png b/product_discount_limit/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/pictures.png differ diff --git a/product_discount_limit/static/description/assets/misc/pie-chart.png b/product_discount_limit/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/pie-chart.png differ diff --git a/product_discount_limit/static/description/assets/misc/right-arrow.png b/product_discount_limit/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/right-arrow.png differ diff --git a/product_discount_limit/static/description/assets/misc/star.png b/product_discount_limit/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/star.png differ diff --git a/product_discount_limit/static/description/assets/misc/support.png b/product_discount_limit/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/support.png differ diff --git a/product_discount_limit/static/description/assets/misc/whatsapp.png b/product_discount_limit/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/product_discount_limit/static/description/assets/misc/whatsapp.png differ diff --git a/product_discount_limit/static/description/assets/modules/1.png b/product_discount_limit/static/description/assets/modules/1.png new file mode 100644 index 000000000..3415917c2 Binary files /dev/null and b/product_discount_limit/static/description/assets/modules/1.png differ diff --git a/product_discount_limit/static/description/assets/modules/2.png b/product_discount_limit/static/description/assets/modules/2.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/product_discount_limit/static/description/assets/modules/2.png differ diff --git a/product_discount_limit/static/description/assets/modules/3.png b/product_discount_limit/static/description/assets/modules/3.png new file mode 100644 index 000000000..25ed3e0b6 Binary files /dev/null and b/product_discount_limit/static/description/assets/modules/3.png differ diff --git a/product_discount_limit/static/description/assets/modules/4.png b/product_discount_limit/static/description/assets/modules/4.png new file mode 100644 index 000000000..359d3e4d6 Binary files /dev/null and b/product_discount_limit/static/description/assets/modules/4.png differ diff --git a/product_discount_limit/static/description/assets/modules/5.png b/product_discount_limit/static/description/assets/modules/5.png new file mode 100644 index 000000000..3add135c3 Binary files /dev/null and b/product_discount_limit/static/description/assets/modules/5.png differ diff --git a/product_discount_limit/static/description/assets/modules/6.png b/product_discount_limit/static/description/assets/modules/6.png new file mode 100644 index 000000000..be454ea44 Binary files /dev/null and b/product_discount_limit/static/description/assets/modules/6.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_1.png b/product_discount_limit/static/description/assets/screenshots/14_1.png new file mode 100644 index 000000000..c6ca3409f Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_1.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_2.png b/product_discount_limit/static/description/assets/screenshots/14_2.png new file mode 100644 index 000000000..d8423a054 Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_2.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_3.png b/product_discount_limit/static/description/assets/screenshots/14_3.png new file mode 100644 index 000000000..68ad9dd80 Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_3.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_4.png b/product_discount_limit/static/description/assets/screenshots/14_4.png new file mode 100644 index 000000000..372927ac3 Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_4.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_5.png b/product_discount_limit/static/description/assets/screenshots/14_5.png new file mode 100644 index 000000000..16948384a Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_5.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_6.png b/product_discount_limit/static/description/assets/screenshots/14_6.png new file mode 100644 index 000000000..29b88496a Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_6.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/14_7.png b/product_discount_limit/static/description/assets/screenshots/14_7.png new file mode 100644 index 000000000..ed60965a3 Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/14_7.png differ diff --git a/product_discount_limit/static/description/assets/screenshots/hero.gif b/product_discount_limit/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..1a07dec51 Binary files /dev/null and b/product_discount_limit/static/description/assets/screenshots/hero.gif differ diff --git a/product_discount_limit/static/description/banner.jpg b/product_discount_limit/static/description/banner.jpg new file mode 100644 index 000000000..98e7c8176 Binary files /dev/null and b/product_discount_limit/static/description/banner.jpg differ diff --git a/product_discount_limit/static/description/icon.png b/product_discount_limit/static/description/icon.png new file mode 100644 index 000000000..09e192e4c Binary files /dev/null and b/product_discount_limit/static/description/icon.png differ diff --git a/product_discount_limit/static/description/index.html b/product_discount_limit/static/description/index.html new file mode 100644 index 000000000..6dce91bdd --- /dev/null +++ b/product_discount_limit/static/description/index.html @@ -0,0 +1,711 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+ +

+ Product Discount Limit

+

+ Limit Discount for Products & Product Category +

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module allow to set discount limit for products and product + categories. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + + Set discount limit on product + +
+
+
+
+ + + Set discount limit on product category + +
+
+
+
+ + + Restrict to apply discount more than discount limit + +
+
+
+
+ + + Grand discount permission for particular users + +
+
+
+
+ + + Discount restriction on sale order + +
+
+
+
+ + + Compatible with community and enterprise + +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Enable Discount

+

+ Using this checkbox we can enable the discount on sales. +

+ +
+ +
+

+ Discount Limit On Products

+

+ We can set discount limit for each product.

+ +
+ +
+

+ Apply Discount

+

+ Can apply discount less than the limit.

+ +
+
+

+ Warning

+

+ If it exceed the limit, the system show a warning. +

+ +
+
+

+ Discount Limit On Category

+

+ We can set discount limit for each category. +

+ +
+
+

+ Warning

+

+ If it exceed the limit, the system show a warning. +

+ +
+
+

+ Over Limit Access

+

+ Checking this will allow the Users to give access for skip the + discount limit. +

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

+ 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_discount_limit/views/product_category.xml b/product_discount_limit/views/product_category.xml new file mode 100644 index 000000000..be69010d9 --- /dev/null +++ b/product_discount_limit/views/product_category.xml @@ -0,0 +1,19 @@ + + + + + product.category.view.form.inherit.discount.limit + product.category + + 10 + + + + + + + + + + + \ No newline at end of file diff --git a/product_discount_limit/views/product_product.xml b/product_discount_limit/views/product_product.xml new file mode 100644 index 000000000..eae97f42e --- /dev/null +++ b/product_discount_limit/views/product_product.xml @@ -0,0 +1,15 @@ + + + + + product.template.view.form.inherit.discount.limit + product.template + + 10 + + + + + + + \ No newline at end of file diff --git a/product_discount_limit/views/res_users.xml b/product_discount_limit/views/res_users.xml new file mode 100644 index 000000000..e5ee231d4 --- /dev/null +++ b/product_discount_limit/views/res_users.xml @@ -0,0 +1,19 @@ + + + + + res.users.view.form.inherit.discount.limit + res.users + + 10 + + + + + + + + + + + \ No newline at end of file