diff --git a/openai_product_tag_descrption/README.rst b/openai_product_tag_descrption/README.rst new file mode 100644 index 000000000..8b6b158dd --- /dev/null +++ b/openai_product_tag_descrption/README.rst @@ -0,0 +1,45 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Generate Product Description/Tags Using OpenAI +========== +* Module which helps create product tag from description and description from tags + +Installation +============ + - www.odoo.com/documentation/14.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.odoo.com/documentation/user/14.0/legal/licenses/licenses.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +LAJINA K V @ cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +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/openai_product_tag_descrption/__init__.py b/openai_product_tag_descrption/__init__.py new file mode 100644 index 000000000..5466bee46 --- /dev/null +++ b/openai_product_tag_descrption/__init__.py @@ -0,0 +1,24 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models + diff --git a/openai_product_tag_descrption/__manifest__.py b/openai_product_tag_descrption/__manifest__.py new file mode 100644 index 000000000..aba9db6a0 --- /dev/null +++ b/openai_product_tag_descrption/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding:utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'Generate Product Description/Tags Using OpenAI', + 'version': '14.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'This Module will helps to generate the description from product tags ' + 'and create the product tags from the generated description', + 'description': 'Generation of product tags from product description and creation ' + 'of description from product tags', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'product', 'openai_odoo_base', 'stock'], + 'data': [ + 'security/ir.model.access.csv', + 'views/product_template.xml', + 'views/product_product.xml', + 'views/product_actions.xml', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/openai_product_tag_descrption/doc/RELEASE_NOTES.md b/openai_product_tag_descrption/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..f13afde72 --- /dev/null +++ b/openai_product_tag_descrption/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 31.03.2023 +#### Version 14.0.1.0.0 +#### ADD +- Initial commit for Generate Product Description/Tags Using OpenAI + diff --git a/openai_product_tag_descrption/models/__init__.py b/openai_product_tag_descrption/models/__init__.py new file mode 100644 index 000000000..20f95bb81 --- /dev/null +++ b/openai_product_tag_descrption/models/__init__.py @@ -0,0 +1,26 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import product_product +from . import product_tag +from . import product_template + diff --git a/openai_product_tag_descrption/models/product_product.py b/openai_product_tag_descrption/models/product_product.py new file mode 100644 index 000000000..572bd9bb5 --- /dev/null +++ b/openai_product_tag_descrption/models/product_product.py @@ -0,0 +1,120 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +import requests +from odoo import fields, models, _ +from odoo.exceptions import ValidationError + + +class ProductProduct(models.Model): + """Inherit ProductProduct model """ + _inherit = 'product.product' + + product_tag_ids = fields.Many2many('product.tag', string="Product Tags", + related='product_tmpl_id.product_tag_ids', + readonly=False, help="Tags For Product") + + def action_create_tag_internal_note(self): + """Summary: + Function to create tags from Internal notes + """ + api_key = self.env['ir.config_parameter'].sudo().get_param( + 'openai_api_key') + if not api_key: + raise ValidationError("Please Enter Valid Open AI Key") + product_id = self._context['active_id'] + product = self.env['product.product'].browse(product_id) + tags_list = [] + if product.description: + prompt = "Generate tags for the following description: \n" + str( + product.description) + "\n\nTags:" + response = requests.post( + "https://api.openai.com/v1/engines/text-davinci-002/completions", + headers={ + "Content-Type": "application/json", + "Authorization": f"Bearer {api_key}" + }, + json={ + "prompt": prompt, + "max_tokens": 60, + "n": 1, + "stop": None, + "temperature": 0.5 + } + ) + tags = response.json()["choices"][0]["text"].split(",") + tags = [tag.strip() for tag in tags] + tags_list.extend(tags) + tags_exists = self.env['product.tag'].search([]).mapped('name') + for tag in tags_list: + if tag not in tags_exists: + tag_created = self.env['product.tag'].create({ + 'name': tag}) + product.write({ + 'product_tag_ids': [(4, tag_created.id)] + }) + else: + tags_exist = self.env['product.tag'].search( + [('name', '=', tag)]) + for tag_apply in tags_exist: + product.write({ + 'product_tag_ids': [(4, tag_apply.id)] + }) + else: + raise ValidationError( + _("No description for this product")) + + def generate_internal_notes_from_tags(self): + """Summary: + Function to create Internal notes from tags + """ + prompt = "Generate a description for a product based on " \ + "the following tags: \n" + api_key = self.env['ir.config_parameter'].sudo().get_param( + 'openai_api_key') + product_id = self._context['active_id'] + product = self.env['product.product'].browse(product_id) + if product.product_tag_ids: + for tag in product.product_tag_ids: + prompt += f"- {tag}\n" + prompt += "\nDescription:" + + response = requests.post( + "https://api.openai.com/v1/engines/text-davinci-002/completions" + , + headers={ + "Content-Type": "application/json", + "Authorization": f"Bearer {api_key}" + }, + json={ + "prompt": prompt, + "max_tokens": 200, + "n": 1, + "stop": None, + "temperature": 0.5 + } + ) + description = response.json()["choices"][0]["text"].split('\n') + product.description = description[-1] + else: + raise ValidationError( + _("No tags for this product")) diff --git a/openai_product_tag_descrption/models/product_tag.py b/openai_product_tag_descrption/models/product_tag.py new file mode 100644 index 000000000..1952d6f8c --- /dev/null +++ b/openai_product_tag_descrption/models/product_tag.py @@ -0,0 +1,33 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################## +from odoo import fields, models + + +class ProductTag(models.Model): + """ Product Tag""" + _name = 'product.tag' + _description = 'Product Tag' + + name = fields.Char('Product Tags', help="It will add tags for the product") + color = fields.Integer('Color Index', + help='It will used to give color for product tags') diff --git a/openai_product_tag_descrption/models/product_template.py b/openai_product_tag_descrption/models/product_template.py new file mode 100644 index 000000000..b5d481515 --- /dev/null +++ b/openai_product_tag_descrption/models/product_template.py @@ -0,0 +1,120 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +import requests +from odoo import fields, models, _ +from odoo.exceptions import ValidationError + + +class ProductTemplate(models.Model): + """Inherit ProductTemplate model """ + _inherit = 'product.template' + + product_tag_ids = fields.Many2many('product.tag', string="Product Tags", + help="Tags For Product") + + def action_create_tag_description(self): + """Summary: + Function to create tags from description + """ + api_key = self.env['ir.config_parameter'].sudo().get_param( + 'openai_api_key') + if not api_key: + raise ValidationError("Please Enter Valid Open AI Key") + product_id = self._context['active_id'] + product = self.env['product.template'].browse(product_id) + tags_list = [] + if product.description: + prompt = "Generate tags for the following description: \n" + str( + product.description) + "\n\nTags:" + response = requests.post \ + ("https://api.openai.com/v1/engines/text-davinci-002/completions", + headers={ + "Content-Type": "application/json", + "Authorization": f"Bearer {api_key}" + }, + json={ + "prompt": prompt, + "max_tokens": 60, + "n": 1, + "stop": None, + "temperature": 0.5 + }) + tags = response.json()["choices"][0]["text"].split(",") + tags = [tag.strip() for tag in tags] + tags_list.extend(tags) + tags_exists = self.env['product.tag'].search([]).mapped('name') + for tag in tags_list: + if tag not in tags_exists: + tag_created = self.env['product.tag'].create({ + 'name': tag}) + product.write({ + 'product_tag_ids': [(4, tag_created.id)] + }) + else: + tags_exist = self.env['product.tag'].search( + [('name', '=', tag)]) + for tag_apply in tags_exist: + product.write({ + 'product_tag_ids': [(4, tag_apply.id)] + }) + else: + raise ValidationError( + _("No description for this product")) + + def generate_description_from_tags(self): + """Summary: + Function to create description from tags + """ + prompt = "Generate a description for a product based on" \ + " the following tags: \n" + api_key = self.env['ir.config_parameter'].sudo().get_param( + 'openai_api_key') + if not api_key: + raise ValidationError("Please Enter Valid Open AI Key") + product_id = self._context['active_id'] + product = self.env['product.template'].browse(product_id) + if product.product_tag_ids: + for tag in product.product_tag_ids: + prompt += f"- {tag}\n" + prompt += "\nDescription:" + + response = requests.post( + "https://api.openai.com/v1/engines/text-davinci-002/completions" + , + headers={ + "Content-Type": "application/json", + "Authorization": f"Bearer {api_key}" + }, + json={ + "prompt": prompt, + "max_tokens": 200, + "n": 1, + "stop": None, + "temperature": 0.5 + } + ) + description = response.json()["choices"][0]["text"].split('\n') + product.description = description[-1] + else: + raise ValidationError( + _("No tags for this product")) diff --git a/openai_product_tag_descrption/security/ir.model.access.csv b/openai_product_tag_descrption/security/ir.model.access.csv new file mode 100644 index 000000000..91a6a375e --- /dev/null +++ b/openai_product_tag_descrption/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_product_tag,access.product.tag,model_product_tag,base.group_user,1,1,1,1 + diff --git a/openai_product_tag_descrption/static/description/assets/icons/check.png b/openai_product_tag_descrption/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/check.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/chevron.png b/openai_product_tag_descrption/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/chevron.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/cogs.png b/openai_product_tag_descrption/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/cogs.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/consultation.png b/openai_product_tag_descrption/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/consultation.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/ecom-black.png b/openai_product_tag_descrption/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/ecom-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/education-black.png b/openai_product_tag_descrption/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/education-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/hotel-black.png b/openai_product_tag_descrption/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/hotel-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/license.png b/openai_product_tag_descrption/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/license.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/lifebuoy.png b/openai_product_tag_descrption/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/lifebuoy.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/logo.png b/openai_product_tag_descrption/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/logo.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/manufacturing-black.png b/openai_product_tag_descrption/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/manufacturing-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/pos-black.png b/openai_product_tag_descrption/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/pos-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/puzzle.png b/openai_product_tag_descrption/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/puzzle.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/restaurant-black.png b/openai_product_tag_descrption/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/restaurant-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/service-black.png b/openai_product_tag_descrption/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/service-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/trading-black.png b/openai_product_tag_descrption/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/trading-black.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/training.png b/openai_product_tag_descrption/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/training.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/update.png b/openai_product_tag_descrption/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/update.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/user.png b/openai_product_tag_descrption/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/user.png differ diff --git a/openai_product_tag_descrption/static/description/assets/icons/wrench.png b/openai_product_tag_descrption/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/icons/wrench.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/approval_image.png b/openai_product_tag_descrption/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/approval_image.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/dynamic_image.png b/openai_product_tag_descrption/static/description/assets/modules/dynamic_image.png new file mode 100644 index 000000000..f55c47e0f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/dynamic_image.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/list_view_image.png b/openai_product_tag_descrption/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..510d36ae9 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/list_view_image.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/multiple_ref_image.png b/openai_product_tag_descrption/static/description/assets/modules/multiple_ref_image.png new file mode 100644 index 000000000..3fe90e552 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/multiple_ref_image.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/print_image.png b/openai_product_tag_descrption/static/description/assets/modules/print_image.png new file mode 100644 index 000000000..b470725a1 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/print_image.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/product_return_image.png b/openai_product_tag_descrption/static/description/assets/modules/product_return_image.png new file mode 100644 index 000000000..3afc14722 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/product_return_image.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_1.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_1.png new file mode 100644 index 000000000..c66813aa5 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_1.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_2.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_2.png new file mode 100644 index 000000000..a11ed5cd6 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_2.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_3.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_3.png new file mode 100644 index 000000000..d8f6227dc Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_3.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_4.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_4.png new file mode 100644 index 000000000..75a8ae98c Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_4.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_5.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_5.png new file mode 100644 index 000000000..1dba816ac Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_5.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_6.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_6.png new file mode 100644 index 000000000..04f82851f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_6.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_7.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_7.png new file mode 100644 index 000000000..2993df4a5 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_7.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_8.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_8.png new file mode 100644 index 000000000..835050cb7 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_8.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_9.png b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_9.png new file mode 100644 index 000000000..31dcc514c Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/enterprise_9.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/hero.gif b/openai_product_tag_descrption/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..b35272f0d Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/hero.gif differ diff --git a/openai_product_tag_descrption/static/description/banner.png b/openai_product_tag_descrption/static/description/banner.png new file mode 100644 index 000000000..395b22fff Binary files /dev/null and b/openai_product_tag_descrption/static/description/banner.png differ diff --git a/openai_product_tag_descrption/static/description/icon.png b/openai_product_tag_descrption/static/description/icon.png new file mode 100644 index 000000000..7e17ab2f4 Binary files /dev/null and b/openai_product_tag_descrption/static/description/icon.png differ diff --git a/openai_product_tag_descrption/static/description/index.html b/openai_product_tag_descrption/static/description/index.html new file mode 100644 index 000000000..84fa7e764 --- /dev/null +++ b/openai_product_tag_descrption/static/description/index.html @@ -0,0 +1,669 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+ +
+
+
+

+ Generate Product Description/Tags Using OpenAI

+

+ Automate Product Tag and Description Generation in Odoo + Using OpenAI API +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This module offers a convenient and efficient solution to automate the + process of creating product tags and + generating descriptions based on them. This module utilizes the power of + the OpenAI API to analyze product + descriptions and generate relevant tags, as well as generate + descriptions based on assigned tags. + + With the ability to generate tags from descriptions, you can save time + and effort in manually assigning tags to + each product. This process is automated by the module, which analyzes + the product description and identifies the + most relevant keywords and phrases to create tags that accurately + describe the product. + + Additionally, the module also allows you to generate descriptions based + on assigned tags. This feature is + particularly useful when you need to quickly generate product + descriptions for a large number of products. The + module analyzes the assigned tags and generates descriptions that + accurately reflect the product's features and + benefits.

+
+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Community & Enterprise Support.

+
+
+ +
+
+ +
+
+

+ Automate Product Description Generation in Odoo

+
+
+
+
+ +
+
+

+ Automate Product Tag Generation in Odoo.

+
+
+
+ +
+
+

+ Screenshots +

+
+
+

Field to provide api key

+

+ Fill your API key in settings for easy accessibility of api + key

+ +
+
+

Description Creation

+

+ Description creation on product menu on the basis of tags

+ + +
+
+

Tag creation

+

+ Tag creation on product menu on the basis of description

+ + +
+
+

Description Creation

+

+ Description creation on product Variant menu on the basis of tags

+ + +
+
+

Tag creation

+

+ Tag creation on product variant menu on the basis of description

+ + +
+ + +
+ +
+
+

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

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/openai_product_tag_descrption/views/product_actions.xml b/openai_product_tag_descrption/views/product_actions.xml new file mode 100644 index 000000000..aa1f8297a --- /dev/null +++ b/openai_product_tag_descrption/views/product_actions.xml @@ -0,0 +1,60 @@ + + + + + + Generate Tags from Description Using Openai + + + + list,form + code + + action = model.action_create_tag_description() + + + + + + Generate Tags from Internal Note Using Openai + + + + list,form + code + + action = model.action_create_tag_internal_note() + + + + + + Generate Internal Note from Tags Using Openai + + + + list,form + code + + action = model.generate_internal_notes_from_tags() + + + + + Generate Description Using Openai + + + list,form + code + + action = model.generate_description_from_tags() + + + + \ No newline at end of file diff --git a/openai_product_tag_descrption/views/product_product.xml b/openai_product_tag_descrption/views/product_product.xml new file mode 100644 index 000000000..2bde47e1c --- /dev/null +++ b/openai_product_tag_descrption/views/product_product.xml @@ -0,0 +1,16 @@ + + + + + product.product.view.form.inherit.openai.product.tag.descrption + + product.product + + + + + + + + \ No newline at end of file diff --git a/openai_product_tag_descrption/views/product_template.xml b/openai_product_tag_descrption/views/product_template.xml new file mode 100644 index 000000000..24c643e55 --- /dev/null +++ b/openai_product_tag_descrption/views/product_template.xml @@ -0,0 +1,16 @@ + + + + + product.template.view.form.inherit.openai.product.tag.descrption + + product.template + + + + + + + + \ No newline at end of file