diff --git a/product_internal_ref_generator/README.rst b/product_internal_ref_generator/README.rst new file mode 100644 index 000000000..3dcf3b7f5 --- /dev/null +++ b/product_internal_ref_generator/README.rst @@ -0,0 +1,47 @@ +.. 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 Internal Reference Generator +==================================== +* Generating internal reference for the products + +Configuration +============= +- Additional configuration not required + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developer:(V16) Megha K, + (V17) Javid A, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : http://www.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/product_internal_ref_generator/__init__.py b/product_internal_ref_generator/__init__.py new file mode 100644 index 000000000..2ecc2db8e --- /dev/null +++ b/product_internal_ref_generator/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Javid A (odoo@cybrosys.com) +# +# 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/product_internal_ref_generator/__manifest__.py b/product_internal_ref_generator/__manifest__.py new file mode 100644 index 000000000..2076ce0f2 --- /dev/null +++ b/product_internal_ref_generator/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Javid A (odoo@cybrosys.com) +# +# 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 Internal Reference Generator", + "version": "17.0.1.0.0", + "category": "Warehouse", + "summary": "In this Module we can generate internal references", + "description": """Generating internal reference for the products based + on the product details""", + "author": "Cybrosys Techno Solutions", + "company": "Cybrosys Techno Solutions", + "maintainer": "Cybrosys Techno Solutions", + "website": "https://www.cybrosys.com", + "depends": ["sale_management"], + "data": [ + 'data/ir_sequence_data.xml', + 'data/ir_actions_server_data.xml', + 'views/res_config_settings_views.xml', + ], + "images": ["static/description/banner.jpg"], + "license": "LGPL-3", + "installable": True, + "application": False, + "auto_install": False, +} diff --git a/product_internal_ref_generator/data/ir_actions_server_data.xml b/product_internal_ref_generator/data/ir_actions_server_data.xml new file mode 100644 index 000000000..13adba4b4 --- /dev/null +++ b/product_internal_ref_generator/data/ir_actions_server_data.xml @@ -0,0 +1,22 @@ + + + + + + Generate Internal Reference + + + list,form + code + action = model.action_generate_internal_ref_pro() + + + Generate Internal Reference + + + list,form + code + action = model.action_generate_internal_ref() + + + diff --git a/product_internal_ref_generator/data/ir_sequence_data.xml b/product_internal_ref_generator/data/ir_sequence_data.xml new file mode 100644 index 000000000..5d02661f1 --- /dev/null +++ b/product_internal_ref_generator/data/ir_sequence_data.xml @@ -0,0 +1,22 @@ + + + + + + Product Sequence + product.sequence.ref + + + + 5 + + + Attribute Sequence + attribute.sequence.ref + + + + 5 + + + diff --git a/product_internal_ref_generator/doc/RELEASE_NOTES.md b/product_internal_ref_generator/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..93ebc6052 --- /dev/null +++ b/product_internal_ref_generator/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 29.04.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial commit for Product Internal Reference Generator diff --git a/product_internal_ref_generator/models/__init__.py b/product_internal_ref_generator/models/__init__.py new file mode 100644 index 000000000..e2132f81f --- /dev/null +++ b/product_internal_ref_generator/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Javid A (odoo@cybrosys.com) +# +# 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 res_config_settings diff --git a/product_internal_ref_generator/models/product_product.py b/product_internal_ref_generator/models/product_product.py new file mode 100644 index 000000000..e623459ca --- /dev/null +++ b/product_internal_ref_generator/models/product_product.py @@ -0,0 +1,110 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Javid A (odoo@cybrosys.com) +# +# 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, models + + +class ProductProduct(models.Model): + """Class for products to generate the internal reference""" + _inherit = 'product.product' + + @api.model_create_multi + def create(self, vals_list): + """supering the create function, generating the internal reference""" + res = super().create(vals_list) + auto_generate_internal_ref = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.auto_generate_internal_ref') + if auto_generate_internal_ref: + product_name_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.product_name_config') + pro_name_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_digit') + pro_name_separator = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_separator') + pro_categ_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_config') + pro_categ_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_digit') + pro_categ_separator = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_separator') + for rec in res: + default_code = '' + if rec.detailed_type == 'consu': + default_code += 'Consu:' + elif rec.detailed_type == 'service': + default_code += 'Servi:' + elif rec.detailed_type == 'product': + default_code += 'Stora:' + if product_name_config: + if rec.name: + default_code += rec.name[:int(pro_name_digit)] + default_code += pro_name_separator + if pro_categ_config: + if rec.categ_id.name: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + default_code += pro_categ_separator + sequence_code = 'product.sequence.ref' + default_code += self.env['ir.sequence'].next_by_code( + sequence_code) + rec.default_code = default_code + return res + + @api.model + def action_generate_internal_ref_pro(self): + """creating the internal reference""" + active_ids = self.env.context.get('active_ids') + products = self.env['product.product'].browse(active_ids) + product_name_config = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.product_name_config') + pro_name_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_digit') + pro_name_separator = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_separator') + pro_categ_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_config') + pro_categ_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_digit') + pro_categ_separator = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_separator') + for rec in products: + default_code = '' + if rec.detailed_type == 'consu': + default_code += 'Consu:' + elif rec.detailed_type == 'service': + default_code += 'Servi:' + elif rec.detailed_type == 'product': + default_code += 'Stora:' + if product_name_config: + if rec.name: + default_code += rec.name[:int(pro_name_digit)] + default_code += pro_name_separator + if pro_categ_config: + if rec.categ_id.name: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + default_code += pro_categ_separator + sequence_code = 'product.sequence.ref' + default_code += self.env['ir.sequence'].next_by_code( + sequence_code) + rec.default_code = default_code + return self diff --git a/product_internal_ref_generator/models/product_template.py b/product_internal_ref_generator/models/product_template.py new file mode 100644 index 000000000..8a6521121 --- /dev/null +++ b/product_internal_ref_generator/models/product_template.py @@ -0,0 +1,132 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Javid A (odoo@cybrosys.com) +# +# 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, models + + +class ProductTemplate(models.Model): + """Class for product template to generate internal reference""" + _inherit = 'product.template' + + @api.model_create_multi + def create(self, vals_list): + """supering the create function, generating the internal reference""" + res = super().create(vals_list) + auto_generate_internal_ref = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.auto_generate_internal_ref') + if auto_generate_internal_ref: + product_name_config = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.product_name_config') + pro_name_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_digit') + pro_name_separator = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_separator') + pro_categ_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_config') + pro_categ_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_digit') + pro_categ_separator = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_separator') + pro_template_config = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_template_config') + pro_template_digit = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_template_digit') + pro_template_separator = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_template_separator') + for rec in res: + default_code = '' + if rec.detailed_type == 'consu': + default_code += 'Consu:' + elif rec.detailed_type == 'service': + default_code += 'Servi:' + elif rec.detailed_type == 'product': + default_code += 'Stora:' + if product_name_config: + default_code += rec.name[:int(pro_name_digit)] + default_code += pro_name_separator + if pro_categ_config: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + default_code += pro_categ_separator + if pro_template_config: + for attribute in rec.attribute_line_ids: + for value in attribute.value_ids: + default_code += value.name[:int(pro_template_digit)] + default_code += pro_template_separator + sequence_code = 'attribute.sequence.ref' + default_code += self.env['ir.sequence'].next_by_code( + sequence_code) + rec.default_code = default_code + return res + + @api.model + def action_generate_internal_ref(self): + """Creating internal reference""" + active_ids = self.env.context.get('active_ids') + products = self.env['product.template'].browse(active_ids) + product_name_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.product_name_config') + pro_name_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_digit') + pro_name_separator = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_name_separator') + pro_categ_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_config') + pro_categ_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_digit') + pro_categ_separator = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_categ_separator') + pro_template_config = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_template_config') + pro_template_digit = self.env['ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_template_digit') + pro_template_separator = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'product_internal_ref_generator.pro_template_separator') + for rec in products: + default_code = '' + if rec.detailed_type == 'consu': + default_code += 'Consu:' + elif rec.detailed_type == 'service': + default_code += 'Servi:' + elif rec.detailed_type == 'product': + default_code += 'Stora:' + if product_name_config: + default_code += rec.name[:int(pro_name_digit)] + default_code += pro_name_separator + if pro_categ_config: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + default_code += pro_categ_separator + if pro_template_config: + for attribute in rec.attribute_line_ids: + for value in attribute.value_ids: + default_code += value.name[:int(pro_template_digit)] + default_code += pro_template_separator + sequence_code = 'attribute.sequence.ref' + default_code += self.env['ir.sequence'].next_by_code( + sequence_code) + rec.default_code = default_code + return self diff --git a/product_internal_ref_generator/models/res_config_settings.py b/product_internal_ref_generator/models/res_config_settings.py new file mode 100644 index 000000000..34238b8e4 --- /dev/null +++ b/product_internal_ref_generator/models/res_config_settings.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Javid A (odoo@cybrosys.com) +# +# 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): + """Inherit the configuration settings to add fields.""" + _inherit = 'res.config.settings' + + pro_internal_ref = fields.Boolean(string='Product Internal Ref', + help="Internal reference of products", + config_parameter='product_internal_ref_generator.pro_internal_ref') + auto_generate_internal_ref = fields.Boolean( + string='Auto Generate Product Internal Ref', + help="To auto generate the product internal reference.", + config_parameter='product_internal_ref_generator.auto_generate_internal_ref') + product_name_config = fields.Boolean(string='Product Name Config', + help="Name of the product config", + config_parameter='product_internal_ref_generator.product_name_config') + pro_name_digit = fields.Integer(string='Product Name Digit', + help="Number of digit of product name", + config_parameter='product_internal_ref_generator.pro_name_digit') + pro_name_separator = fields.Char(string='Product Name Separator', + help="Separator for product name", + config_parameter='product_internal_ref_generator.pro_name_separator') + pro_template_config = fields.Boolean(string='Product Attribute Config', + help="To add the product attribute config", + config_parameter='product_internal_ref_generator.pro_template_config') + pro_template_digit = fields.Integer(string='Product Attribute Digit', + help="Number of digit of product attribute", + config_parameter='product_internal_ref_generator.pro_template_digit') + pro_template_separator = fields.Char(string='Product Attribute Separator', + help="Separator for product attribute", + config_parameter="product_internal_ref_generator.pro_template_separator") + pro_categ_config = fields.Boolean(string='Product Category Config', + help="To add product category", + config_parameter="product_internal_ref_generator.pro_categ_config") + pro_categ_digit = fields.Integer(string='Product Category Digit', + help="Number of product category digit", + config_parameter='product_internal_ref_generator.pro_categ_digit') + pro_categ_separator = fields.Char(string='Product Category Separator', + help="Separator for product category", + config_parameter='product_internal_ref_generator.pro_categ_separator') diff --git a/product_internal_ref_generator/static/description/assets/icons/capture (1).png b/product_internal_ref_generator/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/capture (1).png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/check.png b/product_internal_ref_generator/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/check.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/chevron.png b/product_internal_ref_generator/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/chevron.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/cogs.png b/product_internal_ref_generator/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/cogs.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/consultation.png b/product_internal_ref_generator/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/consultation.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/ecom-black.png b/product_internal_ref_generator/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/ecom-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/education-black.png b/product_internal_ref_generator/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/education-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/hotel-black.png b/product_internal_ref_generator/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/hotel-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/img.png b/product_internal_ref_generator/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/img.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/license.png b/product_internal_ref_generator/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/license.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/lifebuoy.png b/product_internal_ref_generator/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/lifebuoy.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/manufacturing-black.png b/product_internal_ref_generator/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/photo-capture.png b/product_internal_ref_generator/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/photo-capture.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/pos-black.png b/product_internal_ref_generator/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/pos-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/puzzle.png b/product_internal_ref_generator/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/puzzle.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/restaurant-black.png b/product_internal_ref_generator/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/restaurant-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/service-black.png b/product_internal_ref_generator/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/service-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/trading-black.png b/product_internal_ref_generator/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/trading-black.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/training.png b/product_internal_ref_generator/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/training.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/update.png b/product_internal_ref_generator/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/update.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/user.png b/product_internal_ref_generator/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/user.png differ diff --git a/product_internal_ref_generator/static/description/assets/icons/wrench.png b/product_internal_ref_generator/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/wrench.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/Cybrosys R.png b/product_internal_ref_generator/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/Cybrosys R.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/email.svg b/product_internal_ref_generator/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/phone.svg b/product_internal_ref_generator/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/star (1) 2.svg b/product_internal_ref_generator/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/support (1) 1.svg b/product_internal_ref_generator/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/support-email.svg b/product_internal_ref_generator/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/tick-mark.svg b/product_internal_ref_generator/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/whatsapp 1.svg b/product_internal_ref_generator/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/misc/whatsapp.svg b/product_internal_ref_generator/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/product_internal_ref_generator/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_internal_ref_generator/static/description/assets/modules/1.gif b/product_internal_ref_generator/static/description/assets/modules/1.gif new file mode 100644 index 000000000..ae3a880a2 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/1.gif differ diff --git a/product_internal_ref_generator/static/description/assets/modules/2.png b/product_internal_ref_generator/static/description/assets/modules/2.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/2.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/3.png b/product_internal_ref_generator/static/description/assets/modules/3.png new file mode 100644 index 000000000..cb17cf612 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/3.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/4.jpg b/product_internal_ref_generator/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/4.jpg differ diff --git a/product_internal_ref_generator/static/description/assets/modules/5.jpg b/product_internal_ref_generator/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..5141a7802 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/5.jpg differ diff --git a/product_internal_ref_generator/static/description/assets/modules/6.png b/product_internal_ref_generator/static/description/assets/modules/6.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/6.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/01.png b/product_internal_ref_generator/static/description/assets/screenshots/01.png new file mode 100644 index 000000000..00ec793c6 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/01.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/02.png b/product_internal_ref_generator/static/description/assets/screenshots/02.png new file mode 100644 index 000000000..45565cdba Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/02.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/03.png b/product_internal_ref_generator/static/description/assets/screenshots/03.png new file mode 100644 index 000000000..50efc8302 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/03.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/04.png b/product_internal_ref_generator/static/description/assets/screenshots/04.png new file mode 100644 index 000000000..df1b654c6 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/04.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/05.png b/product_internal_ref_generator/static/description/assets/screenshots/05.png new file mode 100644 index 000000000..88d9db426 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/05.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/hero-v17.gif b/product_internal_ref_generator/static/description/assets/screenshots/hero-v17.gif new file mode 100644 index 000000000..f4cf04303 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/hero-v17.gif differ diff --git a/product_internal_ref_generator/static/description/banner.jpg b/product_internal_ref_generator/static/description/banner.jpg new file mode 100644 index 000000000..cae524842 Binary files /dev/null and b/product_internal_ref_generator/static/description/banner.jpg differ diff --git a/product_internal_ref_generator/static/description/icon.png b/product_internal_ref_generator/static/description/icon.png new file mode 100644 index 000000000..5e8b7f21a Binary files /dev/null and b/product_internal_ref_generator/static/description/icon.png differ diff --git a/product_internal_ref_generator/static/description/index.html b/product_internal_ref_generator/static/description/index.html new file mode 100644 index 000000000..3aa90b2ba --- /dev/null +++ b/product_internal_ref_generator/static/description/index.html @@ -0,0 +1,578 @@ + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Product Internal Reference Generator

+

+ Currently, there is no way to generate internal reference automatically. In this Module we can generate internal references. +

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Reference For New Product

+

Automatically create internal reference for new products. +

+
+
+
+
+
+
+ +
+
+

Reference For Default Product

+

Automatically create internal reference for default products. +

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

+ Configuration

+

After installation, go to Settings => General settings => Product Internal Reference Generator. configure the settings.

+

Product Name configurations: enable this for configure the internal reference based on the product name.

+

Product Attribute configurations: enable this for configure the internal reference based on the product attributes.

+

Product category configurations: enable this for configure the internal reference based on the product category.

+
+
+
+
+
+
+ +
+
+

+ Product Internal Reference.

+

+ Select the products and click the generate reference button. +

+
+
+
+
+
+
+ +
+
+

+ Product internal reference is changed. First 5 letters indicate the product type. +

+
+
+
+
+
+
+ +
+
+

+ Change the reference from the form view. +

+
+
+
+
+
+
+ +
+
+

+ Internal Reference: For New Products

+

+ Enable this boolean field to generate internal reference for new products. +

+
+
+
+ +
+
+
+
    +
  • + Automatically create internal reference for new products. +
  • +
  • + Automatically create internal reference for default products. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:25th April 2024 +
+

+ Initial commit for Product Internal Reference Generator.

+
+
+
+
+
+
+
+

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/product_internal_ref_generator/views/res_config_settings_views.xml b/product_internal_ref_generator/views/res_config_settings_views.xml new file mode 100644 index 000000000..61c3aa298 --- /dev/null +++ b/product_internal_ref_generator/views/res_config_settings_views.xml @@ -0,0 +1,94 @@ + + + + + res.config.settings.view.form.inherit.product.internal.ref.generator + res.config.settings + + + +
+

Product Internal Reference Generator

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