diff --git a/product_internal_ref_generator/README.rst b/product_internal_ref_generator/README.rst new file mode 100644 index 000000000..17a2deb1c --- /dev/null +++ b/product_internal_ref_generator/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 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 +------- +* Developers:(V15) Fathima Mazlin AM, + (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..32d6a88c7 --- /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: Fathima Mazlin AM () +# +# 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..3ad7cb548 --- /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: Fathima Mazlin AM () +# +# 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": "15.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, + "auto_install": False, + "application": 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..29c4c0526 --- /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..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..14bf008dd --- /dev/null +++ b/product_internal_ref_generator/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 23.05.2024 +#### Version 15.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..04397acfb --- /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: Fathima Mazlin AM () +# +# 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..6146580e1 --- /dev/null +++ b/product_internal_ref_generator/models/product_product.py @@ -0,0 +1,151 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies () +# Author: Fathima Mazlin AM () +# +# 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') + 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: + if rec.name: + if pro_name_digit: + default_code += rec.name[:int(pro_name_digit)] + if pro_name_separator: + default_code += pro_name_separator + if pro_categ_config: + if rec.categ_id.name: + if pro_categ_digit: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + if pro_categ_separator: + default_code += pro_categ_separator + if pro_template_config: + for attribute in rec.attribute_line_ids: + for value in attribute.value_ids: + if pro_template_digit: + default_code += value.name[:int(pro_template_digit)] + if pro_template_separator: + default_code += pro_template_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') + 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: + if rec.name: + if pro_name_digit: + default_code += rec.name[:int(pro_name_digit)] + if pro_name_separator: + default_code += pro_name_separator + if pro_categ_config: + if rec.categ_id.name: + if pro_categ_digit: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + if pro_categ_separator: + default_code += pro_categ_separator + if pro_template_config: + for attribute in rec.attribute_line_ids: + for value in attribute.value_ids: + if pro_template_digit: + default_code += value.name[:int(pro_template_digit)] + if pro_template_separator: + default_code += pro_template_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..08015b95c --- /dev/null +++ b/product_internal_ref_generator/models/product_template.py @@ -0,0 +1,140 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies () +# Author: Fathima Mazlin AM () +# +# 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: + if pro_name_digit: + default_code += rec.name[:int(pro_name_digit)] + if pro_name_separator: + default_code += pro_name_separator + if pro_categ_config: + if pro_categ_digit: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + if pro_template_separator: + default_code += pro_template_separator + if pro_template_config: + for attribute in rec.attribute_line_ids: + for value in attribute.value_ids: + if pro_template_digit: + default_code += value.name[:int(pro_template_digit)] + if pro_name_separator: + 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: + if pro_name_digit: + default_code += rec.name[:int(pro_name_digit)] + if pro_name_separator: + default_code += pro_name_separator + if pro_categ_config: + if pro_categ_digit: + default_code += rec.categ_id.name[:int(pro_categ_digit)] + if pro_categ_separator: + default_code += pro_categ_separator + if pro_template_config: + for attribute in rec.attribute_line_ids: + for value in attribute.value_ids: + if pro_template_digit: + default_code += value.name[:int(pro_template_digit)] + if pro_template_separator: + 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..dd625f83f --- /dev/null +++ b/product_internal_ref_generator/models/res_config_settings.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies () +# Author: Fathima Mazlin AM () +# +# 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/logo.png b/product_internal_ref_generator/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/icons/logo.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/11.png b/product_internal_ref_generator/static/description/assets/modules/11.png new file mode 100644 index 000000000..492980ad0 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/11.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/22.png b/product_internal_ref_generator/static/description/assets/modules/22.png new file mode 100644 index 000000000..65a3645b0 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/22.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/33.png b/product_internal_ref_generator/static/description/assets/modules/33.png new file mode 100644 index 000000000..2c260531d Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/33.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/44.png b/product_internal_ref_generator/static/description/assets/modules/44.png new file mode 100644 index 000000000..3f5bfcd0b Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/44.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/55.png b/product_internal_ref_generator/static/description/assets/modules/55.png new file mode 100644 index 000000000..94c023fe1 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/55.png differ diff --git a/product_internal_ref_generator/static/description/assets/modules/66.png b/product_internal_ref_generator/static/description/assets/modules/66.png new file mode 100644 index 000000000..90fee9eb9 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/modules/66.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/1.png b/product_internal_ref_generator/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..95e0020bf Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/1.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/2.png b/product_internal_ref_generator/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..577f86ad8 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/2.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/3.png b/product_internal_ref_generator/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..5cc5b0e7b Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/3.png differ diff --git a/product_internal_ref_generator/static/description/assets/screenshots/4.png b/product_internal_ref_generator/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..6a6253051 Binary files /dev/null and b/product_internal_ref_generator/static/description/assets/screenshots/4.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..be9534b11 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/banner.jpg b/product_internal_ref_generator/static/description/banner.jpg new file mode 100644 index 000000000..2f47570b6 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..02970eb24 Binary files /dev/null and b/product_internal_ref_generator/static/description/icon.png differ diff --git a/product_internal_ref_generator/static/description/images/1.jpeg b/product_internal_ref_generator/static/description/images/1.jpeg new file mode 100644 index 000000000..ccb8e1556 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/1.jpeg differ diff --git a/product_internal_ref_generator/static/description/images/1.png b/product_internal_ref_generator/static/description/images/1.png new file mode 100644 index 000000000..fc8ec526e Binary files /dev/null and b/product_internal_ref_generator/static/description/images/1.png differ diff --git a/product_internal_ref_generator/static/description/images/2.jpeg b/product_internal_ref_generator/static/description/images/2.jpeg new file mode 100644 index 000000000..2625f7727 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/2.jpeg differ diff --git a/product_internal_ref_generator/static/description/images/2.png b/product_internal_ref_generator/static/description/images/2.png new file mode 100644 index 000000000..9d33f8b33 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/2.png differ diff --git a/product_internal_ref_generator/static/description/images/3.jpeg b/product_internal_ref_generator/static/description/images/3.jpeg new file mode 100644 index 000000000..5dfdf2c2b Binary files /dev/null and b/product_internal_ref_generator/static/description/images/3.jpeg differ diff --git a/product_internal_ref_generator/static/description/images/3.png b/product_internal_ref_generator/static/description/images/3.png new file mode 100644 index 000000000..eccf7317d Binary files /dev/null and b/product_internal_ref_generator/static/description/images/3.png differ diff --git a/product_internal_ref_generator/static/description/images/4.jpeg b/product_internal_ref_generator/static/description/images/4.jpeg new file mode 100644 index 000000000..ec8264c0b Binary files /dev/null and b/product_internal_ref_generator/static/description/images/4.jpeg differ diff --git a/product_internal_ref_generator/static/description/images/4.png b/product_internal_ref_generator/static/description/images/4.png new file mode 100644 index 000000000..7bbadd6b8 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/4.png differ diff --git a/product_internal_ref_generator/static/description/images/5.jpeg b/product_internal_ref_generator/static/description/images/5.jpeg new file mode 100644 index 000000000..e10c28799 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/5.jpeg differ diff --git a/product_internal_ref_generator/static/description/images/5.png b/product_internal_ref_generator/static/description/images/5.png new file mode 100644 index 000000000..2bd680666 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/5.png differ diff --git a/product_internal_ref_generator/static/description/images/6.jpeg b/product_internal_ref_generator/static/description/images/6.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/product_internal_ref_generator/static/description/images/6.jpeg differ diff --git a/product_internal_ref_generator/static/description/images/checked.png b/product_internal_ref_generator/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/checked.png differ diff --git a/product_internal_ref_generator/static/description/images/cybrosys.png b/product_internal_ref_generator/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/product_internal_ref_generator/static/description/images/cybrosys.png differ diff --git a/product_internal_ref_generator/static/description/images/enable.png b/product_internal_ref_generator/static/description/images/enable.png new file mode 100644 index 000000000..c38dc2d38 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/enable.png differ diff --git a/product_internal_ref_generator/static/description/images/image1.png b/product_internal_ref_generator/static/description/images/image1.png new file mode 100644 index 000000000..e0916cfa9 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/image1.png differ diff --git a/product_internal_ref_generator/static/description/images/image2.png b/product_internal_ref_generator/static/description/images/image2.png new file mode 100644 index 000000000..d0813ded7 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/image2.png differ diff --git a/product_internal_ref_generator/static/description/images/image3.png b/product_internal_ref_generator/static/description/images/image3.png new file mode 100644 index 000000000..01459a4cf Binary files /dev/null and b/product_internal_ref_generator/static/description/images/image3.png differ diff --git a/product_internal_ref_generator/static/description/images/image4.png b/product_internal_ref_generator/static/description/images/image4.png new file mode 100644 index 000000000..9cc5a1fb1 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/image4.png differ diff --git a/product_internal_ref_generator/static/description/images/image5.png b/product_internal_ref_generator/static/description/images/image5.png new file mode 100644 index 000000000..2fd2f6566 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/image5.png differ diff --git a/product_internal_ref_generator/static/description/images/paytm.gif b/product_internal_ref_generator/static/description/images/paytm.gif new file mode 100644 index 000000000..77b34a395 Binary files /dev/null and b/product_internal_ref_generator/static/description/images/paytm.gif 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..29132d247 --- /dev/null +++ b/product_internal_ref_generator/static/description/index.html @@ -0,0 +1,631 @@ +
+ +
+ +
+
+ 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 +

+
+
+
+
+ + Community + Enterprise & Odoo sh Support. +
+
+
+
+ + 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. +

+ + + +
+
+
+ Automatic Internal Reference: For New Products +
+ + +
+
+
+ + + + +
+
+

Suggested 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..f9d684c6e --- /dev/null +++ b/product_internal_ref_generator/views/res_config_settings_views.xml @@ -0,0 +1,103 @@ + + + + + res.config.settings.view.form.inherit.product.internal.ref.generator + res.config.settings + + + +
+

Product Internal Reference Generator

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