diff --git a/low_stocks_product_alert/README.rst b/low_stocks_product_alert/README.rst new file mode 100644 index 000000000..ff5ad6480 --- /dev/null +++ b/low_stocks_product_alert/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Product Low Stock Alert +======================= +* Product low stock alert display in Point of Sale and Product Views. + +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/16.0/legal/licenses/licenses.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v16) anfas @ 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 +========== +.. 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 https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ diff --git a/low_stocks_product_alert/__init__.py b/low_stocks_product_alert/__init__.py new file mode 100644 index 000000000..faadf9ccb --- /dev/null +++ b/low_stocks_product_alert/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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/low_stocks_product_alert/__manifest__.py b/low_stocks_product_alert/__manifest__.py new file mode 100644 index 000000000..ac7c9e6ff --- /dev/null +++ b/low_stocks_product_alert/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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': "Product Low Stock Alert", + 'version': '16.0.1.0.0', + 'summary': """Product Low Stock Alert Display in Point of Sale and + Product Views""", + "category": 'Warehouse,Point of Sale', + 'description': """Module adds functionality to display product stock + alerts in the point of sale interface, indicating low stock levels for + products and also in the product template kanban and list view.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['stock', 'point_of_sale'], + 'data': [ + 'views/res_config_settings_views.xml', + 'views/product_product_views.xml', + 'views/product_template_views.xml' + ], + 'assets': { + 'web.assets_backend': [ + 'low_stocks_product_alert/static/src/css/template_color.css', + ], + 'point_of_sale.assets': [ + 'low_stocks_product_alert/static/src/xml/product_item_template.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'license': "LGPL-3", + 'installable': True, + 'application': False +} diff --git a/low_stocks_product_alert/doc/RELEASE_NOTES.md b/low_stocks_product_alert/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..6ca8f2546 --- /dev/null +++ b/low_stocks_product_alert/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 27.07.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Initial commit for Product Low Stock Alert \ No newline at end of file diff --git a/low_stocks_product_alert/models/__init__.py b/low_stocks_product_alert/models/__init__.py new file mode 100644 index 000000000..ed0e53e14 --- /dev/null +++ b/low_stocks_product_alert/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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 product_product +from . import product_template +from . import pos_session +from . import res_config_settings diff --git a/low_stocks_product_alert/models/pos_session.py b/low_stocks_product_alert/models/pos_session.py new file mode 100644 index 000000000..31aea6c7c --- /dev/null +++ b/low_stocks_product_alert/models/pos_session.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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 + + +class PosSession(models.Model): + """ + This is an Odoo model for Point of Sale (POS) sessions. + It inherits from the 'pos.session' model and extends its functionality. + + Methods: _loader_params_product_product(): Adds the 'alert_tag' field to + the search parameters for the product loader. + """ + _inherit = 'pos.session' + + def _loader_params_product_product(self): + """ Adds the 'alert_tag' field to the search parameters for the + product loader. + + Returns: + dict: The updated search parameters for the product loader. + """ + result = super()._loader_params_product_product() + result['search_params']['fields'].append('alert_tag') + return result diff --git a/low_stocks_product_alert/models/product_product.py b/low_stocks_product_alert/models/product_product.py new file mode 100644 index 000000000..d41bc4deb --- /dev/null +++ b/low_stocks_product_alert/models/product_product.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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 api, fields, models + + +class ProductProduct(models.Model): + """ + This is an Odoo model for product products. It inherits from the + 'product.product' model and extends its functionality by adding a + computed field for product alert state. + + Methods: + _compute_alert_tag(): Computes the value of the 'alert_tag' field based on the + product's stock quantity and configured low stock alert parameters + """ + _inherit = 'product.product' + + alert_tag = fields.Char( + string='Product Alert Tag', compute='_compute_alert_tag', + help='This field represents the alert tag of the product.') + + @api.depends('qty_available') + def _compute_alert_tag(self): + """Computes the value of the 'alert_tag' field based on the product's + stock quantity and configured low stock alert parameters.""" + if self.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.is_low_stock_alert'): + for rec in self: + is_low_stock = rec.detailed_type == 'product' and rec.qty_available <= int( + self.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.min_low_stock_alert')) + rec.alert_tag = rec.qty_available if is_low_stock else False diff --git a/low_stocks_product_alert/models/product_template.py b/low_stocks_product_alert/models/product_template.py new file mode 100644 index 000000000..ac3dd4dd3 --- /dev/null +++ b/low_stocks_product_alert/models/product_template.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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 api, fields, models + + +class ProductTemplate(models.Model): + """ + This is an Odoo model for product templates. It inherits from the + 'product.template' model and extends its functionality by adding computed + fields for product alert state and color field. + + Methods: + _compute_alert_state: Computes the 'alert_state' and 'color_field' + fields based on the product's stock quantity and low stock + alert parameters + + """ + _inherit = 'product.template' + + alert_state = fields.Boolean(string='Product Alert State', default=False, + compute='_compute_alert_state', + help='This field represents the alert state' + 'of the product') + color_field = fields.Char(string='Background color', + help='This field represents the background ' + 'color of the product.') + + @api.depends('qty_available') + def _compute_alert_state(self): + """ Computes the 'alert_state' and 'color_field' fields based on + the product's stock quantity and low stock alert parameters.""" + if self.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.is_low_stock_alert'): + for rec in self: + rec.alert_state, rec.color_field = (False, 'white') if \ + rec.detailed_type != 'product' or rec.qty_available > int( + self.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.min_low_stock_alert')) \ + else (True, '#fdc6c673') + else: + self.alert_state = False + self.color_field = 'white' diff --git a/low_stocks_product_alert/models/res_config_settings.py b/low_stocks_product_alert/models/res_config_settings.py new file mode 100644 index 000000000..bf5d9d221 --- /dev/null +++ b/low_stocks_product_alert/models/res_config_settings.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Anfas Faisal K () +# +# 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 fields, models + + +class ResConfig(models.TransientModel): + """ + This is an Odoo model for configuration settings. It inherits from the + 'res.config.settings' model and extends its functionality by adding + fields for low stock alert configuration + + """ + _inherit = 'res.config.settings' + + is_low_stock_alert = fields.Boolean( + string="Low Stock Alert", + help='This field determines the minimum stock quantity at which a low ' + 'stock alert will be triggered.When the product quantity falls ' + 'below this value, the background color for the product will be ' + 'changed based on the alert state.', + config_parameter='low_stocks_product_alert.is_low_stock_alert') + min_low_stock_alert = fields.Integer( + string='Alert Quantity', default=0, + help='Change the background color for the product based' + 'on the Alert Quant.', + config_parameter='low_stocks_product_alert.min_low_stock_alert') diff --git a/low_stocks_product_alert/static/description/assets/icons/check.png b/low_stocks_product_alert/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/check.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/chevron.png b/low_stocks_product_alert/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/chevron.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/cogs.png b/low_stocks_product_alert/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/cogs.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/consultation.png b/low_stocks_product_alert/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/consultation.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/ecom-black.png b/low_stocks_product_alert/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/ecom-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/education-black.png b/low_stocks_product_alert/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/education-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/hotel-black.png b/low_stocks_product_alert/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/hotel-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/license.png b/low_stocks_product_alert/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/license.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/lifebuoy.png b/low_stocks_product_alert/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/lifebuoy.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/manufacturing-black.png b/low_stocks_product_alert/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/manufacturing-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/pos-black.png b/low_stocks_product_alert/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/pos-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/puzzle.png b/low_stocks_product_alert/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/puzzle.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/restaurant-black.png b/low_stocks_product_alert/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/restaurant-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/service-black.png b/low_stocks_product_alert/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/service-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/trading-black.png b/low_stocks_product_alert/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/trading-black.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/training.png b/low_stocks_product_alert/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/training.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/update.png b/low_stocks_product_alert/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/update.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/user.png b/low_stocks_product_alert/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/user.png differ diff --git a/low_stocks_product_alert/static/description/assets/icons/wrench.png b/low_stocks_product_alert/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/wrench.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/categories.png b/low_stocks_product_alert/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/categories.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/check-box.png b/low_stocks_product_alert/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/check-box.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/compass.png b/low_stocks_product_alert/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/compass.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/corporate.png b/low_stocks_product_alert/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/corporate.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/customer-support.png b/low_stocks_product_alert/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/customer-support.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/cybrosys-logo.png b/low_stocks_product_alert/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/cybrosys-logo.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/features.png b/low_stocks_product_alert/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/features.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/logo.png b/low_stocks_product_alert/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/logo.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/pictures.png b/low_stocks_product_alert/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/pictures.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/pie-chart.png b/low_stocks_product_alert/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/pie-chart.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/right-arrow.png b/low_stocks_product_alert/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/right-arrow.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/star.png b/low_stocks_product_alert/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/star.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/support.png b/low_stocks_product_alert/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/support.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/whatsapp.png b/low_stocks_product_alert/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/whatsapp.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/1.gif b/low_stocks_product_alert/static/description/assets/modules/1.gif new file mode 100644 index 000000000..beb106101 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/1.gif differ diff --git a/low_stocks_product_alert/static/description/assets/modules/2.png b/low_stocks_product_alert/static/description/assets/modules/2.png new file mode 100644 index 000000000..359d3e4d6 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/2.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/3.png b/low_stocks_product_alert/static/description/assets/modules/3.png new file mode 100644 index 000000000..ed11bd818 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/3.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/4.png b/low_stocks_product_alert/static/description/assets/modules/4.png new file mode 100644 index 000000000..b55ddc812 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/4.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/5.png b/low_stocks_product_alert/static/description/assets/modules/5.png new file mode 100644 index 000000000..5c56f0bcd Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/5.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/6.png b/low_stocks_product_alert/static/description/assets/modules/6.png new file mode 100644 index 000000000..c1f30354a Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/6.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/export_image.png b/low_stocks_product_alert/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/export_image.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/gantt_image.png b/low_stocks_product_alert/static/description/assets/modules/gantt_image.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/gantt_image.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/quotation_image.png b/low_stocks_product_alert/static/description/assets/modules/quotation_image.png new file mode 100644 index 000000000..499b1a72f Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/quotation_image.png differ diff --git a/low_stocks_product_alert/static/description/assets/screenshots/1.png b/low_stocks_product_alert/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..ee9234ae4 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/1.png differ diff --git a/low_stocks_product_alert/static/description/assets/screenshots/2.png b/low_stocks_product_alert/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..e48d44597 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/2.png differ diff --git a/low_stocks_product_alert/static/description/assets/screenshots/3.png b/low_stocks_product_alert/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..7e807b2f1 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/3.png differ diff --git a/low_stocks_product_alert/static/description/assets/screenshots/4.png b/low_stocks_product_alert/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..384107fa0 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/4.png differ diff --git a/low_stocks_product_alert/static/description/assets/screenshots/5.png b/low_stocks_product_alert/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..60761464f Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/5.png differ diff --git a/low_stocks_product_alert/static/description/assets/screenshots/low-stock-product-alert-v16-gif.gif b/low_stocks_product_alert/static/description/assets/screenshots/low-stock-product-alert-v16-gif.gif new file mode 100644 index 000000000..70710c54b Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/low-stock-product-alert-v16-gif.gif differ diff --git a/low_stocks_product_alert/static/description/banner.png b/low_stocks_product_alert/static/description/banner.png new file mode 100644 index 000000000..66e5f3dd1 Binary files /dev/null and b/low_stocks_product_alert/static/description/banner.png differ diff --git a/low_stocks_product_alert/static/description/icon.png b/low_stocks_product_alert/static/description/icon.png new file mode 100644 index 000000000..4742f2e0e Binary files /dev/null and b/low_stocks_product_alert/static/description/icon.png differ diff --git a/low_stocks_product_alert/static/description/index.html b/low_stocks_product_alert/static/description/index.html new file mode 100644 index 000000000..3577b6d07 --- /dev/null +++ b/low_stocks_product_alert/static/description/index.html @@ -0,0 +1,614 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ + + +

Product Low Stock Alert

+

Simplify your stock management by promptly recognizing low stock items through highlighted red color.

+ + + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+The Product Low Stock Alert module helps you to handle product stock in effective way. The product get highlighted when stock for a particular product falls below the defined minimum quantity. + +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Stock Alert in List & Kanban View +

Product details get highlighted in red color when the product quantity goes below the alert quantity defined.

+
+
+ + Alert Tag in POS +

Display the quantity and alert tag when the products go below the alert quantity defined.

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

Screenshots +

+
+
+
+

+ Enable the "Low Stock Alert "button.

+

+ Go to Settings --> Enable "Low Stock Alert" button and enter + Alert Quantity. +

+ +
+ +
+

+ List View

+

+ If the quantity of the product is less than the quantity of + the alert quantity defined in the settings, the list view of + the product will display a red background color. +

+ +
+ +
+ +
+

+ Kanban View

+

+ If the quantity of the product is less than the quantity of + the alert quantity defined in the settings, the kanban view + of the product will display a red background color. +

+ +
+ +
+ +
+

+ Point of Sale

+

+ If the quantity of the product is less than the quantity of + the alert quantity defined in the settings, the pos session + of the product will display an alert tag with quantity. +

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

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/low_stocks_product_alert/static/src/css/template_color.css b/low_stocks_product_alert/static/src/css/template_color.css new file mode 100644 index 000000000..430ce7baa --- /dev/null +++ b/low_stocks_product_alert/static/src/css/template_color.css @@ -0,0 +1,7 @@ +.d-color { + background-color: red !important; +} + +tr.o_data_row.text-danger.o_row_draggable { + background-color: rgba(253, 198, 198, 0.39); +} diff --git a/low_stocks_product_alert/static/src/xml/product_item_template.xml b/low_stocks_product_alert/static/src/xml/product_item_template.xml new file mode 100644 index 000000000..bece5ec1b --- /dev/null +++ b/low_stocks_product_alert/static/src/xml/product_item_template.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + diff --git a/low_stocks_product_alert/views/product_product_views.xml b/low_stocks_product_alert/views/product_product_views.xml new file mode 100644 index 000000000..2fbcc3e85 --- /dev/null +++ b/low_stocks_product_alert/views/product_product_views.xml @@ -0,0 +1,14 @@ + + + + + product.product.view.form.inherit.low.stocks.product.alert + product.product + + + + + + + + diff --git a/low_stocks_product_alert/views/product_template_views.xml b/low_stocks_product_alert/views/product_template_views.xml new file mode 100644 index 000000000..be2b2bf2e --- /dev/null +++ b/low_stocks_product_alert/views/product_template_views.xml @@ -0,0 +1,41 @@ + + + + + + product.template.view.tree.inherit.low.stocks.product.alert + + product.template + + + + + + + alert_state == True + + + + + + + + product.template.view.kanban.inherit.low.stocks.product.alert + + + product.template + + + + + + + + background-color:#{record.color_field.raw_value} + !important; + + + + + diff --git a/low_stocks_product_alert/views/res_config_settings_views.xml b/low_stocks_product_alert/views/res_config_settings_views.xml new file mode 100644 index 000000000..06a75412e --- /dev/null +++ b/low_stocks_product_alert/views/res_config_settings_views.xml @@ -0,0 +1,33 @@ + + + + + + res.config.settings.view.form.inherit.low.stocks.product.alert + + res.config.settings + + + +
+
+ +
+
+ Low Stock Alert +
Quantity for Low Stock Alert +
+
+
+
+
+
+
+
+