diff --git a/sale_stock_restrict/README.rst b/sale_stock_restrict/README.rst new file mode 100644 index 000000000..5e0f64546 --- /dev/null +++ b/sale_stock_restrict/README.rst @@ -0,0 +1,18 @@ +================================================= + Out Of Stock Products Restriction On Sales v16 +================================================= + +Odoo Developers, Keep smiling for the below reasons: + + * Restrict out of stock products in sales. + +Credits +------- +* `< odoo@cybrosys.com >` +* `` + + +Further information +=================== +HTML Description: ``__ + diff --git a/sale_stock_restrict/__init__.py b/sale_stock_restrict/__init__.py new file mode 100644 index 000000000..2e56b9658 --- /dev/null +++ b/sale_stock_restrict/__init__.py @@ -0,0 +1,21 @@ +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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/sale_stock_restrict/__manifest__.py b/sale_stock_restrict/__manifest__.py new file mode 100644 index 000000000..ace5ccd6d --- /dev/null +++ b/sale_stock_restrict/__manifest__.py @@ -0,0 +1,42 @@ +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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': 'Out Of Stock Products Restriction On Sales', + 'version': '16.0.1.0.0', + 'summary': 'Out Of Stock Products Restriction On Sales', + 'description': """Out Of Stock Products Restriction On Sales""", + 'category': 'Sales/Sales', + 'author': 'Cybrosys Techno solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'sale_management', 'stock', 'account'], + 'data': [ + 'views/res_config_views.xml', + 'views/sale_order.xml', + ], + 'images': ['static/description/banner.png'], + 'installable': True, + 'application': False, + 'auto_install': False, + 'license': 'AGPL-3', + +} diff --git a/sale_stock_restrict/doc/RELEASE_NOTES.md b/sale_stock_restrict/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..08ead4fb8 --- /dev/null +++ b/sale_stock_restrict/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 03.01.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial Commit diff --git a/sale_stock_restrict/models/__init__.py b/sale_stock_restrict/models/__init__.py new file mode 100644 index 000000000..5e6c97bf1 --- /dev/null +++ b/sale_stock_restrict/models/__init__.py @@ -0,0 +1,22 @@ +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 res_config +from . import sale_order diff --git a/sale_stock_restrict/models/res_config.py b/sale_stock_restrict/models/res_config.py new file mode 100644 index 000000000..a88151d07 --- /dev/null +++ b/sale_stock_restrict/models/res_config.py @@ -0,0 +1,54 @@ +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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, api + + +class ResConfigInherit(models.TransientModel): + _inherit = 'res.config.settings' + + product_restriction = fields.Boolean( + string='Out Of Stock Product Restriction', + help='Enable Out Of Stock Product Restriction') + check_stock = fields.Selection( + [('on_hand_quantity', 'On Hand Ouantity'), + ('forecast_quantity', 'Forecast Ouantity')], string="Based On", + help='Choose the type of restriction') + + @api.model + def get_values(self): + """get values from the fields""" + res = super(ResConfigInherit, self).get_values() + params = self.env['ir.config_parameter'].sudo().get_param + product_restriction = params('sale_stock_restrict.product_restriction') + check_stock = params('sale_stock_restrict.check_stock') + res.update( + product_restriction=product_restriction, + check_stock=check_stock + ) + return res + + def set_values(self): + """Set values in the fields""" + super(ResConfigInherit, self).set_values() + self.env['ir.config_parameter'].sudo().set_param( + 'sale_stock_restrict.product_restriction', self.product_restriction) + self.env['ir.config_parameter'].sudo().set_param( + 'sale_stock_restrict.check_stock', self.check_stock) diff --git a/sale_stock_restrict/models/sale_order.py b/sale_stock_restrict/models/sale_order.py new file mode 100644 index 000000000..63888ce19 --- /dev/null +++ b/sale_stock_restrict/models/sale_order.py @@ -0,0 +1,97 @@ +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2022-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# 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 api, fields, models +from odoo.exceptions import UserError + + +class SaleOrderLineInherit(models.Model): + _inherit = 'sale.order.line' + + qty_available = fields.Float(string="On Hand Quantity", + help='Count of On Hand quantity') + forecast_quantity = fields.Float(string="Forecast Quantity", + help='Count of Forecast quantity') + + @api.onchange('product_id') + def _onchange_product_id(self): + product_restriction = self.env['ir.config_parameter'].sudo().get_param( + 'sale_stock_restrict.product_restriction') + check_stock = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'sale_stock_restrict.check_stock') + if product_restriction: + + if check_stock == 'on_hand_quantity': + self.qty_available = self.product_id.qty_available + if check_stock == 'forecast_quantity': + self.forecast_quantity = self.product_id.virtual_available + + +class SaleOrderInherit(models.Model): + _inherit = 'sale.order' + + onhand_check = fields.Boolean(string='Enable OnHand', + help='To check whether it is based on' + ' on hand quantity') + forecast_check = fields.Boolean(string='Enable Forecast', + help='To check whether it is based on' + ' Forecast quantity') + + def action_confirm(self): + res = super(SaleOrderInherit, self).action_confirm() + low_qty = ["Can't confirm the sale order due to: \n"] + for rec in self.order_line: + product_restriction = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'sale_stock_restrict.product_restriction') + check_stock = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'sale_stock_restrict.check_stock') + if product_restriction: + if rec.product_id.detailed_type == 'product': + if check_stock == 'on_hand_quantity': + if rec.product_uom_qty > rec.qty_available: + self.onhand_check = True + onhand_qty_list = "You have added %s units of %s" \ + " but you only have %s units" \ + " available.\n" % ( + rec.product_uom_qty, + rec.product_id.name, + rec.qty_available) + low_qty.append(onhand_qty_list) + + if check_stock == 'forecast_quantity': + if rec.product_uom_qty > rec.forecast_quantity: + self.forecast_check = True + forecast_qty_list = "You have added %s" \ + " units of %s but you only have" \ + " %s units available.\n" % ( + rec.product_uom_qty, + rec.product_id.name, + rec.forecast_quantity) + low_qty.append(forecast_qty_list) + + listToStr = ' '.join(map(str, low_qty)) + if self.onhand_check: + raise UserError(listToStr) + if self.forecast_check: + raise UserError(listToStr) + return res diff --git a/sale_stock_restrict/static/description/assets/icons/check.png b/sale_stock_restrict/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/check.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/chevron.png b/sale_stock_restrict/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/chevron.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/cogs.png b/sale_stock_restrict/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/cogs.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/consultation.png b/sale_stock_restrict/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/consultation.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/ecom-black.png b/sale_stock_restrict/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/ecom-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/education-black.png b/sale_stock_restrict/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/education-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/hotel-black.png b/sale_stock_restrict/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/hotel-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/license.png b/sale_stock_restrict/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/license.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/lifebuoy.png b/sale_stock_restrict/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/lifebuoy.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/manufacturing-black.png b/sale_stock_restrict/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/manufacturing-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/pos-black.png b/sale_stock_restrict/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/pos-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/puzzle.png b/sale_stock_restrict/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/puzzle.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/restaurant-black.png b/sale_stock_restrict/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/restaurant-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/service-black.png b/sale_stock_restrict/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/service-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/trading-black.png b/sale_stock_restrict/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/trading-black.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/training.png b/sale_stock_restrict/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/training.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/update.png b/sale_stock_restrict/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/update.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/user.png b/sale_stock_restrict/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/user.png differ diff --git a/sale_stock_restrict/static/description/assets/icons/wrench.png b/sale_stock_restrict/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/sale_stock_restrict/static/description/assets/icons/wrench.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/categories.png b/sale_stock_restrict/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/categories.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/check-box.png b/sale_stock_restrict/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/check-box.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/compass.png b/sale_stock_restrict/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/compass.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/corporate.png b/sale_stock_restrict/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/corporate.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/customer-support.png b/sale_stock_restrict/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/customer-support.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/cybrosys-logo.png b/sale_stock_restrict/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/cybrosys-logo.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/features.png b/sale_stock_restrict/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/features.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/logo.png b/sale_stock_restrict/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/logo.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/pictures.png b/sale_stock_restrict/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/pictures.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/pie-chart.png b/sale_stock_restrict/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/pie-chart.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/right-arrow.png b/sale_stock_restrict/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/right-arrow.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/star.png b/sale_stock_restrict/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/star.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/support.png b/sale_stock_restrict/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/support.png differ diff --git a/sale_stock_restrict/static/description/assets/misc/whatsapp.png b/sale_stock_restrict/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/misc/whatsapp.png differ diff --git a/sale_stock_restrict/static/description/assets/modules/1.png b/sale_stock_restrict/static/description/assets/modules/1.png new file mode 100644 index 000000000..489f44e86 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/modules/1.png differ diff --git a/sale_stock_restrict/static/description/assets/modules/2.png b/sale_stock_restrict/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/sale_stock_restrict/static/description/assets/modules/2.png differ diff --git a/sale_stock_restrict/static/description/assets/modules/3.png b/sale_stock_restrict/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/sale_stock_restrict/static/description/assets/modules/3.png differ diff --git a/sale_stock_restrict/static/description/assets/modules/4.png b/sale_stock_restrict/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/sale_stock_restrict/static/description/assets/modules/4.png differ diff --git a/sale_stock_restrict/static/description/assets/modules/5.gif b/sale_stock_restrict/static/description/assets/modules/5.gif new file mode 100644 index 000000000..8f40aab85 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/modules/5.gif differ diff --git a/sale_stock_restrict/static/description/assets/modules/6.png b/sale_stock_restrict/static/description/assets/modules/6.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/modules/6.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/hero.gif b/sale_stock_restrict/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..aff31301d Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/hero.gif differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock1.png b/sale_stock_restrict/static/description/assets/screenshots/stock1.png new file mode 100644 index 000000000..65229bb5e Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock1.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock2.png b/sale_stock_restrict/static/description/assets/screenshots/stock2.png new file mode 100644 index 000000000..5a1740b11 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock2.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock3.png b/sale_stock_restrict/static/description/assets/screenshots/stock3.png new file mode 100644 index 000000000..f0ea44763 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock3.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock4.png b/sale_stock_restrict/static/description/assets/screenshots/stock4.png new file mode 100644 index 000000000..e937edb5a Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock4.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock5.png b/sale_stock_restrict/static/description/assets/screenshots/stock5.png new file mode 100644 index 000000000..a8c9cea23 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock5.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock6.png b/sale_stock_restrict/static/description/assets/screenshots/stock6.png new file mode 100644 index 000000000..422de7088 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock6.png differ diff --git a/sale_stock_restrict/static/description/assets/screenshots/stock7.png b/sale_stock_restrict/static/description/assets/screenshots/stock7.png new file mode 100644 index 000000000..b4b420221 Binary files /dev/null and b/sale_stock_restrict/static/description/assets/screenshots/stock7.png differ diff --git a/sale_stock_restrict/static/description/banner.png b/sale_stock_restrict/static/description/banner.png new file mode 100644 index 000000000..f53d7f4d1 Binary files /dev/null and b/sale_stock_restrict/static/description/banner.png differ diff --git a/sale_stock_restrict/static/description/icon.png b/sale_stock_restrict/static/description/icon.png new file mode 100644 index 000000000..dfe9a9d93 Binary files /dev/null and b/sale_stock_restrict/static/description/icon.png differ diff --git a/sale_stock_restrict/static/description/index.html b/sale_stock_restrict/static/description/index.html new file mode 100644 index 000000000..ddde6c916 --- /dev/null +++ b/sale_stock_restrict/static/description/index.html @@ -0,0 +1,664 @@ +
+ +
+ +
+
+ Community +
+
+
+ +
+
+
+ +

+ Out Of Stock Products Restriction On Sales

+

+ This module is helps to restrict out of stock products.

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module helps manage out-of-stock products based on on-hand or forecast quantity. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Enable Out Of Stock Product Restrition under sales configuration +
+
+ + Restrict the products based on On Hand Quantity +
+
+ + Restrict the products based on Forecast Quantity +
+ +
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Enable Out Of Stock Product Restriction +

+ + + +
+ +
+

+ Based on On Hand quantity. +

+ + + +
+ +
+

+ On Hand quantity : Sale order with out-of-stock products. +

+ + + +
+ +
+

+ On Hand quantity : When you confirm the sale order. +

+ + + +
+ +
+

+ Based on On Forecast quantity. +

+ + + +
+ +
+

+ Forecast quantity : Sale order with out-of-stock products. +

+ + + +
+ +
+

+ Forecast quantity : When you confirm the sale order. +

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

+ 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/sale_stock_restrict/views/res_config_views.xml b/sale_stock_restrict/views/res_config_views.xml new file mode 100644 index 000000000..261f01a7a --- /dev/null +++ b/sale_stock_restrict/views/res_config_views.xml @@ -0,0 +1,36 @@ + + + + res.config.settings.low.stock.view.form.inherit + + res.config.settings + + + + + +

Out Of Stock Product Restriction

+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file diff --git a/sale_stock_restrict/views/sale_order.xml b/sale_stock_restrict/views/sale_order.xml new file mode 100644 index 000000000..aacf52fe0 --- /dev/null +++ b/sale_stock_restrict/views/sale_order.xml @@ -0,0 +1,23 @@ + + + + inherited.model.form.inherit.aa + sale.order + + + + + + + + + + + + + + + + \ No newline at end of file