diff --git a/openai_product_tag_descrption/README.rst b/openai_product_tag_descrption/README.rst new file mode 100644 index 000000000..a1364e51a --- /dev/null +++ b/openai_product_tag_descrption/README.rst @@ -0,0 +1,41 @@ +OpenAI Product Tag Description +========== +* Module which helps create product tag from description and description from tags + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +Ranjith R @ 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..f88982c86 --- /dev/null +++ b/openai_product_tag_descrption/__init__.py @@ -0,0 +1,23 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ranjith R (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..96a2b1d45 --- /dev/null +++ b/openai_product_tag_descrption/__manifest__.py @@ -0,0 +1,41 @@ +# -*- coding:utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ranjith R (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': '16.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Automate Product Tag Creation and Description Generation with My Module in Odoo Using OpenAI API', + 'description': 'Automate Product Tag Creation and Description Generation with My Module in Odoo Using OpenAI API', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png,static/description/icon.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'product', 'openai_odoo_base', 'stock'], + 'data': [ + '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..c093bc3fa --- /dev/null +++ b/openai_product_tag_descrption/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 17.03.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for OpenAI Product Tag Description + diff --git a/openai_product_tag_descrption/models/__init__.py b/openai_product_tag_descrption/models/__init__.py new file mode 100644 index 000000000..94f091795 --- /dev/null +++ b/openai_product_tag_descrption/models/__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: Ranjith R (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_template +from . import product_product 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..8d2a4d415 --- /dev/null +++ b/openai_product_tag_descrption/models/product_product.py @@ -0,0 +1,114 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ranjith R (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 models, _ +import requests +from odoo.exceptions import ValidationError + + +class ProductProduct(models.Model): + """Inherit ProductProduct model """ + _inherit = 'product.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') + 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_template.py b/openai_product_tag_descrption/models/product_template.py new file mode 100644 index 000000000..4c48674a5 --- /dev/null +++ b/openai_product_tag_descrption/models/product_template.py @@ -0,0 +1,114 @@ +"""Tag creation from description and description creation from tags""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Ranjith R (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 models, _ +import requests +from odoo.exceptions import ValidationError + + +class ProductTemplate(models.Model): + """Inherit ProductTemplate model """ + _inherit = 'product.template' + + 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') + 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') + 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/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/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/misc/categories.png b/openai_product_tag_descrption/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/categories.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/check-box.png b/openai_product_tag_descrption/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/check-box.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/compass.png b/openai_product_tag_descrption/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/compass.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/corporate.png b/openai_product_tag_descrption/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/corporate.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/customer-support.png b/openai_product_tag_descrption/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/customer-support.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/cybrosys-logo.png b/openai_product_tag_descrption/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/cybrosys-logo.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/features.png b/openai_product_tag_descrption/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/features.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/logo.png b/openai_product_tag_descrption/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/logo.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/pictures.png b/openai_product_tag_descrption/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/pictures.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/pie-chart.png b/openai_product_tag_descrption/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/pie-chart.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/right-arrow.png b/openai_product_tag_descrption/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/right-arrow.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/star.png b/openai_product_tag_descrption/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/star.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/support.png b/openai_product_tag_descrption/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/support.png differ diff --git a/openai_product_tag_descrption/static/description/assets/misc/whatsapp.png b/openai_product_tag_descrption/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/misc/whatsapp.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/1.png b/openai_product_tag_descrption/static/description/assets/modules/1.png new file mode 100644 index 000000000..5238bdeab Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/1.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/2.png b/openai_product_tag_descrption/static/description/assets/modules/2.png new file mode 100644 index 000000000..1ae7cfe3b Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/2.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/3.png b/openai_product_tag_descrption/static/description/assets/modules/3.png new file mode 100644 index 000000000..3c3ff1afb Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/3.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/4.png b/openai_product_tag_descrption/static/description/assets/modules/4.png new file mode 100644 index 000000000..3fae4631e Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/4.png differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/5.gif b/openai_product_tag_descrption/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/5.gif differ diff --git a/openai_product_tag_descrption/static/description/assets/modules/6.png b/openai_product_tag_descrption/static/description/assets/modules/6.png new file mode 100644 index 000000000..7f2815273 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/modules/6.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/1.png b/openai_product_tag_descrption/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..3b3094fa1 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/1.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/10.png b/openai_product_tag_descrption/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..ead898077 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/10.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/2.png b/openai_product_tag_descrption/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..146c017a2 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/2.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/3.png b/openai_product_tag_descrption/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..68a3beb5f Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/3.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/4.png b/openai_product_tag_descrption/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..115967743 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/4.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/7.png b/openai_product_tag_descrption/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..cbeccb8cb Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/7.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/8.png b/openai_product_tag_descrption/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..c9bac9d62 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/8.png differ diff --git a/openai_product_tag_descrption/static/description/assets/screenshots/9.png b/openai_product_tag_descrption/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..5734e7b2d Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/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..3b55ad8b9 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/assets/screenshots/settings.png b/openai_product_tag_descrption/static/description/assets/screenshots/settings.png new file mode 100644 index 000000000..e9f214774 Binary files /dev/null and b/openai_product_tag_descrption/static/description/assets/screenshots/settings.png 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..4668600fb 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..fa95b6c50 --- /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

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

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

+
+
+
+
+ + Available in Odoo 16.0 + Community and Enterprise. +
+
+ + Automate Product Description Generation in Odoo +
+
+
+
+ + Automate Product Tag Generation in Odoo +
+ +
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+
+
+

+ Field to Fill 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 variants menu on the basis of description

+ +

+ +

+
+
+ +
+
+

+ Description creation +

+

+ Description creation on product menu on the basis of tags

+ +

+ +

+
+
+
+
+

+ Tag creation +

+

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

+ +

+ +

+
+
+ + + +
+
+ +
+

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