diff --git a/low_stocks_product_alert/README.rst b/low_stocks_product_alert/README.rst new file mode 100644 index 000000000..f717a5c80 --- /dev/null +++ b/low_stocks_product_alert/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-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. + +Configuration +============ +- Need to turn on the option 'Low Stock Alert' in the Inventory configuration + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License, Version 3 (LGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Credits +------- +* Developer: + (v16) anfas, + (v17) Sadique Kottekkat + Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit 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..bac3a7588 --- /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: Sadique Kottekkat () +# +# 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..bba651d2e --- /dev/null +++ b/low_stocks_product_alert/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sadique Kottekkat () +# +# 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': '17.0.1.0.0', + "category": 'Warehouse,Point of Sale', + 'summary': """Product Low Stock Alert Display in Point of Sale and + Product Views""", + '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_pos': [ + 'low_stocks_product_alert/static/src/xml/product_item_template.xml', + 'low_stocks_product_alert/static/src/xml/product_list_template.xml', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': "LGPL-3", + 'installable': True, + 'application': False, + 'auto_install': 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..cd9041fcd --- /dev/null +++ b/low_stocks_product_alert/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 04.01.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for Product Low Stock Alert diff --git a/low_stocks_product_alert/models/__init__.py b/low_stocks_product_alert/models/__init__.py new file mode 100644 index 000000000..0a24a6efe --- /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: Sadique Kottekkat () +# +# 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..433b018e9 --- /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: Sadique Kottekkat () +# +# 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'].extend(['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..6bcdb8d37 --- /dev/null +++ b/low_stocks_product_alert/models/product_product.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sadique Kottekkat () +# +# 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.""" + stock_alert = self.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.is_low_stock_alert') + for rec in self: + if stock_alert: + is_low_stock = True if 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')) else False + rec.alert_tag = rec.qty_available if is_low_stock else False + else: + rec.alert_tag = 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..e2f0b51e5 --- /dev/null +++ b/low_stocks_product_alert/models/product_template.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sadique Kottekkat () +# +# 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', + 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.""" + stock_alert = self.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.is_low_stock_alert') + for rec in self: + if stock_alert: + rec.alert_state, rec.color_field = (False, 'white') if \ + rec.detailed_type != 'product' or rec.qty_available > int( + rec.env['ir.config_parameter'].sudo().get_param( + 'low_stocks_product_alert.min_low_stock_alert')) \ + else (True, '#fdc6c673') + else: + rec.alert_state = False + rec.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..49cc66ea5 --- /dev/null +++ b/low_stocks_product_alert/models/res_config_settings.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Sadique Kottekkat () +# +# 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 ResConfigSettings(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/capture (1).png b/low_stocks_product_alert/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/capture (1).png differ 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/img.png b/low_stocks_product_alert/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/img.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/photo-capture.png b/low_stocks_product_alert/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/low_stocks_product_alert/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/misc/Cybrosys R.png differ diff --git a/low_stocks_product_alert/static/description/assets/misc/email.svg b/low_stocks_product_alert/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/phone.svg b/low_stocks_product_alert/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/star (1) 2.svg b/low_stocks_product_alert/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/support (1) 1.svg b/low_stocks_product_alert/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/support-email.svg b/low_stocks_product_alert/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/tick-mark.svg b/low_stocks_product_alert/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/whatsapp 1.svg b/low_stocks_product_alert/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/misc/whatsapp.svg b/low_stocks_product_alert/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/low_stocks_product_alert/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/low_stocks_product_alert/static/description/assets/modules/m1.png b/low_stocks_product_alert/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/m1.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/m2.png b/low_stocks_product_alert/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/m2.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/m3.png b/low_stocks_product_alert/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/m3.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/m4.png b/low_stocks_product_alert/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/m4.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/m5.png b/low_stocks_product_alert/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/m5.png differ diff --git a/low_stocks_product_alert/static/description/assets/modules/m6.png b/low_stocks_product_alert/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/modules/m6.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..a2f07723d 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..72440fded 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..32acc3c70 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..a02486b5a 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/hero.gif b/low_stocks_product_alert/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..849f1b7c2 Binary files /dev/null and b/low_stocks_product_alert/static/description/assets/screenshots/hero.gif differ diff --git a/low_stocks_product_alert/static/description/banner.jpg b/low_stocks_product_alert/static/description/banner.jpg new file mode 100644 index 000000000..a68431b9d Binary files /dev/null and b/low_stocks_product_alert/static/description/banner.jpg 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..d547a27c8 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..d379871ef --- /dev/null +++ b/low_stocks_product_alert/static/description/index.html @@ -0,0 +1,616 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Product Low Stock Alert

+

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

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

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. +

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

+ 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.

+
+
+
+
+
+
+
    +
  • + 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.
    • +
    +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:25th May 2023 +
+

+ Initial Commit for Product Low Stock Alert

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + 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..d6265ef1a --- /dev/null +++ b/low_stocks_product_alert/static/src/css/template_color.css @@ -0,0 +1,6 @@ +.d-color { + background-color: red !important; +} +.text-danger td { + 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..4813cb861 --- /dev/null +++ b/low_stocks_product_alert/static/src/xml/product_item_template.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + diff --git a/low_stocks_product_alert/static/src/xml/product_list_template.xml b/low_stocks_product_alert/static/src/xml/product_list_template.xml new file mode 100644 index 000000000..ef2b73ec6 --- /dev/null +++ b/low_stocks_product_alert/static/src/xml/product_list_template.xml @@ -0,0 +1,22 @@ + + + + + + + + + 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..e16f2d338 --- /dev/null +++ b/low_stocks_product_alert/views/product_product_views.xml @@ -0,0 +1,16 @@ + + + + + + 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..ea69f1756 --- /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..c4b255253 --- /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 +
+
+
+
+
+
+
+
+