diff --git a/product_internal_ref_generator/README.rst b/product_internal_ref_generator/README.rst new file mode 100644 index 000000000..3c36a8c2f --- /dev/null +++ b/product_internal_ref_generator/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: http://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). +(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developer:(V16) Megha K, 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..1051acf77 --- /dev/null +++ b/product_internal_ref_generator/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER General Public License (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER General Public License for more details. +# +# You should have received a copy of the GNU LESSER General Public License +# 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..1a32b7400 --- /dev/null +++ b/product_internal_ref_generator/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER General Public License (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER General Public License for more details. +# +# You should have received a copy of the GNU LESSER General Public License +# along with this program. If not, see . +# +############################################################################### +{ + 'name': 'Product Internal Reference Generator', + 'version': '16.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.png'], + '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..34439b668 --- /dev/null +++ b/product_internal_ref_generator/data/ir_actions_server_data.xml @@ -0,0 +1,26 @@ + + + + + + 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..6dab80354 --- /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 + + + \ No newline at end of file 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..782e196f5 --- /dev/null +++ b/product_internal_ref_generator/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 19.01.2024 +#### Version 16.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..da6364c87 --- /dev/null +++ b/product_internal_ref_generator/models/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER General Public License (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER General Public License for more details. +# +# You should have received a copy of the GNU LESSER General Public License +# 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..bb5071e93 --- /dev/null +++ b/product_internal_ref_generator/models/product_product.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER General Public License (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER General Public License for more details. +# +# You should have received a copy of the GNU LESSER General Public License +# 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) + 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) + 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 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..b7de25544 --- /dev/null +++ b/product_internal_ref_generator/models/product_template.py @@ -0,0 +1,128 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2023-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER General Public License (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER General Public License for more details. +# +# You should have received a copy of the GNU LESSER General Public License +# 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_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_template_separator + if pro_template_config: + for attrbute in rec.attribute_line_ids: + for value in attrbute.value_ids: + default_code += value.name[:int(pro_template_digit)] + default_code += pro_name_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_template_separator + if pro_template_config: + for attrbute in rec.attribute_line_ids: + for value in attrbute.value_ids: + default_code += value.name[:int(pro_template_digit)] + default_code += pro_name_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..951d944b4 --- /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) 2023-TODAY Cybrosys Technologies (). +# Author: Megha K () +# +# This program is free software: you can modify +# it under the terms of the GNU LESSER General Public License (LGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER General Public License for more details. +# +# You should have received a copy of the GNU LESSER General Public License +# 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/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/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/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/categories.png b/product_internal_ref_generator/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/categories.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/check-box.png b/product_internal_ref_generator/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/check-box.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/compass.png b/product_internal_ref_generator/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/compass.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/corporate.png b/product_internal_ref_generator/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/corporate.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/customer-support.png b/product_internal_ref_generator/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/customer-support.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/cybrosys-logo.png b/product_internal_ref_generator/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/cybrosys-logo.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/features.png b/product_internal_ref_generator/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/features.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/logo.png b/product_internal_ref_generator/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/logo.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/pictures.png b/product_internal_ref_generator/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/pictures.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/pie-chart.png b/product_internal_ref_generator/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/pie-chart.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/right-arrow.png b/product_internal_ref_generator/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/right-arrow.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/star.png b/product_internal_ref_generator/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/star.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/support.png b/product_internal_ref_generator/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/support.png differ diff --git a/product_internal_ref_generator/static/description/assets/misc/whatsapp.png b/product_internal_ref_generator/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/misc/whatsapp.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/1.png b/product_internal_ref_generator/static/description/assets/modules/1.png new file mode 100644 index 000000000..359d3e4d6 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/1.png 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..66e5f3dd1 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..e281bd660 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.png b/product_internal_ref_generator/static/description/assets/modules/4.png new file mode 100644 index 000000000..d21466f5f Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/4.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/5.png b/product_internal_ref_generator/static/description/assets/modules/5.png new file mode 100644 index 000000000..25d89fa6d Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/5.png 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..956a7e9c7 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/hero.gif b/product_internal_ref_generator/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..3da48a279 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/hero.gif differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/screenshot_1.png b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_1.png new file mode 100644 index 000000000..3383af693 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_1.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/screenshot_2.png b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_2.png new file mode 100644 index 000000000..c0a6cd4b8 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_2.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/screenshot_3.png b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_3.png new file mode 100644 index 000000000..42590c09e Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_3.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/screenshot_4.png b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_4.png new file mode 100644 index 000000000..78e3a9e78 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_4.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/screenshot_5.png b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_5.png new file mode 100644 index 000000000..29aa6bb71 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/screenshot_5.png differ diff --git a/product_internal_ref_generator/static/description/banner.png b/product_internal_ref_generator/static/description/banner.png new file mode 100644 index 000000000..db7d9122b Binary files /dev/null and b/product_internal_ref_generator/static/description/banner.png 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..8a2b64daf 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..650ee4629 --- /dev/null +++ b/product_internal_ref_generator/static/description/index.html @@ -0,0 +1,640 @@ +
+ +
+ +
+
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. +

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module helps you to create internal references automatically based on the products. Automatically create reference for newly created products and all products. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Automatically create internal reference for new products +
+
+ + Automatically create internal reference for default products. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

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

+

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

+ +
+

+ Product Internal Reference +

+

Change the reference from the form view.

+ +
+

+ Internal Reference: For New Products +

+

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

+ +
+
+
+ + +
+
+ +
+

+ Related + Products +

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

+ Our Services +

+
+ +
+
+
+
+ +
+
+ Odoo + Customization
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Support
+
+ + +
+
+ +
+
+ Hire + Odoo + Developer
+
+ +
+
+ +
+
+ Odoo + Integration
+
+ +
+
+ +
+
+ Odoo + Migration
+
+ + +
+
+ +
+
+ Odoo + Consultancy
+
+ +
+
+ +
+
+ Odoo + Implementation
+
+ +
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+ +
+ + + + + +
+
+ +
+

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+ +
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/product_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..aa22601aa --- /dev/null +++ b/product_internal_ref_generator/views/res_config_settings_views.xml @@ -0,0 +1,104 @@ + + + + + res.config.settings.view.form.inherit.product.internal.ref.generator + + res.config.settings + + + +
+

Product Internal Reference Generator

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