diff --git a/openai_website_product_media/README.rst b/openai_website_product_media/README.rst new file mode 100644 index 000000000..b0d12cd81 --- /dev/null +++ b/openai_website_product_media/README.rst @@ -0,0 +1,47 @@ +.. 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 + +OpenAI eCommerce Product Media +=========================== +Helps You To Convert image sample created from dalle to product media for ecommerce . + +Installation +============ +* Just install the module. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + + +Credits +------- +* Developers +LAJINA K V @ cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, pse 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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/openai_website_product_media/__init__.py b/openai_website_product_media/__init__.py new file mode 100644 index 000000000..b680030ef --- /dev/null +++ b/openai_website_product_media/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V() +# +# 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 model diff --git a/openai_website_product_media/__manifest__.py b/openai_website_product_media/__manifest__.py new file mode 100644 index 000000000..8e0b20007 --- /dev/null +++ b/openai_website_product_media/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V() +# +# 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': 'OpenAI eCommerce Product Media', + 'version': '14.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Open AI Product Media Images For Ecommerce.', + 'description': 'Module helps to convert the image created on dalle sample ' + 'as product media images', + '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', 'website_sale', + 'openai_product_images', 'stock'], + 'data': [ + 'views/dalle_image_suggestion_views.xml' + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/openai_website_product_media/doc/RELEASE_NOTES.md b/openai_website_product_media/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..1863a9f19 --- /dev/null +++ b/openai_website_product_media/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 31.03.2023 +#### Version 14.0.1.0.0 +#### ADD +- Initial commit for OpenAI eCommerce Product Media + diff --git a/openai_website_product_media/model/__init__.py b/openai_website_product_media/model/__init__.py new file mode 100644 index 000000000..4d381d711 --- /dev/null +++ b/openai_website_product_media/model/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V() +# +# 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 dalle_image_suggestion diff --git a/openai_website_product_media/model/dalle_image_suggestion.py b/openai_website_product_media/model/dalle_image_suggestion.py new file mode 100644 index 000000000..5ffb8db39 --- /dev/null +++ b/openai_website_product_media/model/dalle_image_suggestion.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: LAJINA K V() +# +# 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 + + +class DalleImageSuggestionInherit(models.Model): + """image for product from dalle and save it as record""" + _inherit = 'dalle.image.suggestion' + + def action_make_as_media_image(self): + """Summary: + Function to make this image as media image + Returns: + returns the created media image of corresponding product + """ + dalle_media_image_suggestion_id = self.env['product.image'].create({ + 'name': self.product_tmpl_id.name, + 'image_1920': self.product_image, + 'product_tmpl_id': self.product_tmpl_id.id, + }) + return { + 'name': self.product_tmpl_id.name, + 'view_mode': 'form', + 'res_model': 'product.image', + 'type': 'ir.actions.act_window', + 'res_id': dalle_media_image_suggestion_id.id, + 'domain': [('id', '=', self.product_tmpl_id.id)], + 'target': 'current', + } diff --git a/openai_website_product_media/static/description/assets/icons/check.png b/openai_website_product_media/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/check.png differ diff --git a/openai_website_product_media/static/description/assets/icons/chevron.png b/openai_website_product_media/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/chevron.png differ diff --git a/openai_website_product_media/static/description/assets/icons/cogs.png b/openai_website_product_media/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/cogs.png differ diff --git a/openai_website_product_media/static/description/assets/icons/consultation.png b/openai_website_product_media/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/consultation.png differ diff --git a/openai_website_product_media/static/description/assets/icons/ecom-black.png b/openai_website_product_media/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/ecom-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/education-black.png b/openai_website_product_media/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/education-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/hotel-black.png b/openai_website_product_media/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/hotel-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/license.png b/openai_website_product_media/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/license.png differ diff --git a/openai_website_product_media/static/description/assets/icons/lifebuoy.png b/openai_website_product_media/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/lifebuoy.png differ diff --git a/openai_website_product_media/static/description/assets/icons/logo.png b/openai_website_product_media/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/logo.png differ diff --git a/openai_website_product_media/static/description/assets/icons/manufacturing-black.png b/openai_website_product_media/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/manufacturing-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/pos-black.png b/openai_website_product_media/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/pos-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/puzzle.png b/openai_website_product_media/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/puzzle.png differ diff --git a/openai_website_product_media/static/description/assets/icons/restaurant-black.png b/openai_website_product_media/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/restaurant-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/service-black.png b/openai_website_product_media/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/service-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/trading-black.png b/openai_website_product_media/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/trading-black.png differ diff --git a/openai_website_product_media/static/description/assets/icons/training.png b/openai_website_product_media/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/training.png differ diff --git a/openai_website_product_media/static/description/assets/icons/update.png b/openai_website_product_media/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/update.png differ diff --git a/openai_website_product_media/static/description/assets/icons/user.png b/openai_website_product_media/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/user.png differ diff --git a/openai_website_product_media/static/description/assets/icons/wrench.png b/openai_website_product_media/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/openai_website_product_media/static/description/assets/icons/wrench.png differ diff --git a/openai_website_product_media/static/description/assets/modules/approval_image.png b/openai_website_product_media/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/openai_website_product_media/static/description/assets/modules/approval_image.png differ diff --git a/openai_website_product_media/static/description/assets/modules/dynamic_image.png b/openai_website_product_media/static/description/assets/modules/dynamic_image.png new file mode 100644 index 000000000..f55c47e0f Binary files /dev/null and b/openai_website_product_media/static/description/assets/modules/dynamic_image.png differ diff --git a/openai_website_product_media/static/description/assets/modules/list_view_image.png b/openai_website_product_media/static/description/assets/modules/list_view_image.png new file mode 100644 index 000000000..510d36ae9 Binary files /dev/null and b/openai_website_product_media/static/description/assets/modules/list_view_image.png differ diff --git a/openai_website_product_media/static/description/assets/modules/multiple_ref_image.png b/openai_website_product_media/static/description/assets/modules/multiple_ref_image.png new file mode 100644 index 000000000..3fe90e552 Binary files /dev/null and b/openai_website_product_media/static/description/assets/modules/multiple_ref_image.png differ diff --git a/openai_website_product_media/static/description/assets/modules/print_image.png b/openai_website_product_media/static/description/assets/modules/print_image.png new file mode 100644 index 000000000..b470725a1 Binary files /dev/null and b/openai_website_product_media/static/description/assets/modules/print_image.png differ diff --git a/openai_website_product_media/static/description/assets/modules/product_return_image.png b/openai_website_product_media/static/description/assets/modules/product_return_image.png new file mode 100644 index 000000000..3afc14722 Binary files /dev/null and b/openai_website_product_media/static/description/assets/modules/product_return_image.png differ diff --git a/openai_website_product_media/static/description/assets/screenshots/hero.gif b/openai_website_product_media/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..7e4bfffe7 Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/hero.gif differ diff --git a/openai_website_product_media/static/description/assets/screenshots/image_1.png b/openai_website_product_media/static/description/assets/screenshots/image_1.png new file mode 100644 index 000000000..105e8ebf7 Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/image_1.png differ diff --git a/openai_website_product_media/static/description/assets/screenshots/image_2.png b/openai_website_product_media/static/description/assets/screenshots/image_2.png new file mode 100644 index 000000000..4c7c87bdd Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/image_2.png differ diff --git a/openai_website_product_media/static/description/assets/screenshots/image_3.png b/openai_website_product_media/static/description/assets/screenshots/image_3.png new file mode 100644 index 000000000..08b6fc6ab Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/image_3.png differ diff --git a/openai_website_product_media/static/description/assets/screenshots/image_4.png b/openai_website_product_media/static/description/assets/screenshots/image_4.png new file mode 100644 index 000000000..2deba6ec9 Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/image_4.png differ diff --git a/openai_website_product_media/static/description/assets/screenshots/image_5.png b/openai_website_product_media/static/description/assets/screenshots/image_5.png new file mode 100644 index 000000000..04523052c Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/image_5.png differ diff --git a/openai_website_product_media/static/description/assets/screenshots/image_6.png b/openai_website_product_media/static/description/assets/screenshots/image_6.png new file mode 100644 index 000000000..b8eff40ca Binary files /dev/null and b/openai_website_product_media/static/description/assets/screenshots/image_6.png differ diff --git a/openai_website_product_media/static/description/banner.png b/openai_website_product_media/static/description/banner.png new file mode 100644 index 000000000..87f387c1f Binary files /dev/null and b/openai_website_product_media/static/description/banner.png differ diff --git a/openai_website_product_media/static/description/icon.png b/openai_website_product_media/static/description/icon.png new file mode 100644 index 000000000..9cf906f35 Binary files /dev/null and b/openai_website_product_media/static/description/icon.png differ diff --git a/openai_website_product_media/static/description/index.html b/openai_website_product_media/static/description/index.html new file mode 100644 index 000000000..73cb0a2db --- /dev/null +++ b/openai_website_product_media/static/description/index.html @@ -0,0 +1,615 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+ +
+
+
+

+ OpenAI eCommerce Product Media

+

+ convert the image + created on dalle sample as product media images +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ This module helps users to create unique product images by the help of + OpenAI's DALL-E model. With this module, users can input prompts such as product descriptions or features to + generate custom product images that represent their brand. The images can be saved as product media in Odoo, + making it easy to use them in marketing and advertising materials.

+
+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Available in Odoo 16.0 Community and Enterprise.

+
+
+ +
+
+ +
+
+

+ Convert the image sample from dalle to product image

+
+
+
+ +
+
+

+ Screenshots +

+
+
+

Field to Fill API Key

+

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

+ +
+
+

Save Images as Mediae

+

Convert the image sample from dalle to product media image +

+ + + + + +
+
+ +
+
+

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_website_product_media/views/dalle_image_suggestion_views.xml b/openai_website_product_media/views/dalle_image_suggestion_views.xml new file mode 100644 index 000000000..e364aedf1 --- /dev/null +++ b/openai_website_product_media/views/dalle_image_suggestion_views.xml @@ -0,0 +1,17 @@ + + + + + dalle.image.suggestion.view.form.inherit.openai.website.product.media + + dalle.image.suggestion + + +
+
+
+
+
\ No newline at end of file