diff --git a/pip_installer/README.rst b/pip_installer/README.rst new file mode 100755 index 000000000..1d07b3bfd --- /dev/null +++ b/pip_installer/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Pip Installer +============= +* Pip Installer Module for Odoo 16 + +Installation +============ + - www.odoo.com/documentation/17.0/setup/install.html + - Install our custom addon + +License +------- +Affero General Public License v3.0 (AGPL v3) +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer : (V16) Mruthul Raj + Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://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/pip_installer/__init__.py b/pip_installer/__init__.py new file mode 100755 index 000000000..2f0b5b67b --- /dev/null +++ b/pip_installer/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (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 wizard diff --git a/pip_installer/__manifest__.py b/pip_installer/__manifest__.py new file mode 100755 index 000000000..cbeec6d35 --- /dev/null +++ b/pip_installer/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (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': 'Pip Installer', + 'version': '16.0.1.0.1', + 'category': 'Extra Tools', + 'summary': 'Execute all terminal pip commands', + 'description': """This module enables to execute all terminal + pip commands from odoo interface itself.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'data': [ + 'security/ir.model.access.csv', + 'wizard/pip_install_views.xml', + 'wizard/import_message_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/pip_installer/doc/RELEASE_NOTES.md b/pip_installer/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..956f7fa8c --- /dev/null +++ b/pip_installer/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 31.07.2024 +#### Version 16.0.1.0.0 +#### ADD + +- Initial Commit for Pip Installer diff --git a/pip_installer/security/ir.model.access.csv b/pip_installer/security/ir.model.access.csv new file mode 100755 index 000000000..03554c6e6 --- /dev/null +++ b/pip_installer/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_pip_install_user,access_pip_install_user,model_pip_install,base.group_user,1,1,1,1 +access_import_message_user,access_import_message_user,model_import_message,base.group_user,1,1,1,1 diff --git a/pip_installer/static/description/assets/icons/check.png b/pip_installer/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/pip_installer/static/description/assets/icons/check.png differ diff --git a/pip_installer/static/description/assets/icons/cogs.png b/pip_installer/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/pip_installer/static/description/assets/icons/cogs.png differ diff --git a/pip_installer/static/description/assets/icons/consultation.png b/pip_installer/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/pip_installer/static/description/assets/icons/consultation.png differ diff --git a/pip_installer/static/description/assets/icons/ecom-black.png b/pip_installer/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/pip_installer/static/description/assets/icons/ecom-black.png differ diff --git a/pip_installer/static/description/assets/icons/education-black.png b/pip_installer/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/pip_installer/static/description/assets/icons/education-black.png differ diff --git a/pip_installer/static/description/assets/icons/hotel-black.png b/pip_installer/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/pip_installer/static/description/assets/icons/hotel-black.png differ diff --git a/pip_installer/static/description/assets/icons/license.png b/pip_installer/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/pip_installer/static/description/assets/icons/license.png differ diff --git a/pip_installer/static/description/assets/icons/lifebuoy.png b/pip_installer/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/pip_installer/static/description/assets/icons/lifebuoy.png differ diff --git a/pip_installer/static/description/assets/icons/logo.png b/pip_installer/static/description/assets/icons/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/pip_installer/static/description/assets/icons/logo.png differ diff --git a/pip_installer/static/description/assets/icons/manufacturing-black.png b/pip_installer/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/pip_installer/static/description/assets/icons/manufacturing-black.png differ diff --git a/pip_installer/static/description/assets/icons/pos-black.png b/pip_installer/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/pip_installer/static/description/assets/icons/pos-black.png differ diff --git a/pip_installer/static/description/assets/icons/puzzle.png b/pip_installer/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/pip_installer/static/description/assets/icons/puzzle.png differ diff --git a/pip_installer/static/description/assets/icons/restaurant-black.png b/pip_installer/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/pip_installer/static/description/assets/icons/restaurant-black.png differ diff --git a/pip_installer/static/description/assets/icons/service-black.png b/pip_installer/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/pip_installer/static/description/assets/icons/service-black.png differ diff --git a/pip_installer/static/description/assets/icons/trading-black.png b/pip_installer/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/pip_installer/static/description/assets/icons/trading-black.png differ diff --git a/pip_installer/static/description/assets/icons/training.png b/pip_installer/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/pip_installer/static/description/assets/icons/training.png differ diff --git a/pip_installer/static/description/assets/icons/update.png b/pip_installer/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/pip_installer/static/description/assets/icons/update.png differ diff --git a/pip_installer/static/description/assets/icons/user.png b/pip_installer/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/pip_installer/static/description/assets/icons/user.png differ diff --git a/pip_installer/static/description/assets/icons/wrench.png b/pip_installer/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/pip_installer/static/description/assets/icons/wrench.png differ diff --git a/pip_installer/static/description/assets/misc/categories.png b/pip_installer/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/pip_installer/static/description/assets/misc/categories.png differ diff --git a/pip_installer/static/description/assets/misc/check-box.png b/pip_installer/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/pip_installer/static/description/assets/misc/check-box.png differ diff --git a/pip_installer/static/description/assets/misc/compass.png b/pip_installer/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/pip_installer/static/description/assets/misc/compass.png differ diff --git a/pip_installer/static/description/assets/misc/corporate.png b/pip_installer/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/pip_installer/static/description/assets/misc/corporate.png differ diff --git a/pip_installer/static/description/assets/misc/customer-support.png b/pip_installer/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/pip_installer/static/description/assets/misc/customer-support.png differ diff --git a/pip_installer/static/description/assets/misc/cybrosys-logo.png b/pip_installer/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/pip_installer/static/description/assets/misc/cybrosys-logo.png differ diff --git a/pip_installer/static/description/assets/misc/features.png b/pip_installer/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/pip_installer/static/description/assets/misc/features.png differ diff --git a/pip_installer/static/description/assets/misc/logo.png b/pip_installer/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/pip_installer/static/description/assets/misc/logo.png differ diff --git a/pip_installer/static/description/assets/misc/pictures.png b/pip_installer/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/pip_installer/static/description/assets/misc/pictures.png differ diff --git a/pip_installer/static/description/assets/misc/pie-chart.png b/pip_installer/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/pip_installer/static/description/assets/misc/pie-chart.png differ diff --git a/pip_installer/static/description/assets/misc/right-arrow.png b/pip_installer/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/pip_installer/static/description/assets/misc/right-arrow.png differ diff --git a/pip_installer/static/description/assets/misc/star.png b/pip_installer/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/pip_installer/static/description/assets/misc/star.png differ diff --git a/pip_installer/static/description/assets/misc/support.png b/pip_installer/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/pip_installer/static/description/assets/misc/support.png differ diff --git a/pip_installer/static/description/assets/misc/whatsapp.png b/pip_installer/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/pip_installer/static/description/assets/misc/whatsapp.png differ diff --git a/pip_installer/static/description/assets/modules/1.png b/pip_installer/static/description/assets/modules/1.png new file mode 100755 index 000000000..d0f36b007 Binary files /dev/null and b/pip_installer/static/description/assets/modules/1.png differ diff --git a/pip_installer/static/description/assets/modules/l2.png b/pip_installer/static/description/assets/modules/l2.png new file mode 100755 index 000000000..f40a0756d Binary files /dev/null and b/pip_installer/static/description/assets/modules/l2.png differ diff --git a/pip_installer/static/description/assets/modules/l3.png b/pip_installer/static/description/assets/modules/l3.png new file mode 100755 index 000000000..5738a486e Binary files /dev/null and b/pip_installer/static/description/assets/modules/l3.png differ diff --git a/pip_installer/static/description/assets/modules/l4.png b/pip_installer/static/description/assets/modules/l4.png new file mode 100755 index 000000000..8d99e8c68 Binary files /dev/null and b/pip_installer/static/description/assets/modules/l4.png differ diff --git a/pip_installer/static/description/assets/modules/l5.png b/pip_installer/static/description/assets/modules/l5.png new file mode 100755 index 000000000..3415917c2 Binary files /dev/null and b/pip_installer/static/description/assets/modules/l5.png differ diff --git a/pip_installer/static/description/assets/modules/l6.png b/pip_installer/static/description/assets/modules/l6.png new file mode 100755 index 000000000..c7ea331ee Binary files /dev/null and b/pip_installer/static/description/assets/modules/l6.png differ diff --git a/pip_installer/static/description/assets/screenshots/1.png b/pip_installer/static/description/assets/screenshots/1.png new file mode 100755 index 000000000..97c76b09c Binary files /dev/null and b/pip_installer/static/description/assets/screenshots/1.png differ diff --git a/pip_installer/static/description/assets/screenshots/2.png b/pip_installer/static/description/assets/screenshots/2.png new file mode 100755 index 000000000..c6b4ed908 Binary files /dev/null and b/pip_installer/static/description/assets/screenshots/2.png differ diff --git a/pip_installer/static/description/assets/screenshots/3.png b/pip_installer/static/description/assets/screenshots/3.png new file mode 100755 index 000000000..709b8106c Binary files /dev/null and b/pip_installer/static/description/assets/screenshots/3.png differ diff --git a/pip_installer/static/description/assets/screenshots/4.png b/pip_installer/static/description/assets/screenshots/4.png new file mode 100755 index 000000000..874fa1096 Binary files /dev/null and b/pip_installer/static/description/assets/screenshots/4.png differ diff --git a/pip_installer/static/description/assets/screenshots/hero.gif b/pip_installer/static/description/assets/screenshots/hero.gif new file mode 100755 index 000000000..bc32f5561 Binary files /dev/null and b/pip_installer/static/description/assets/screenshots/hero.gif differ diff --git a/pip_installer/static/description/banner.png b/pip_installer/static/description/banner.png new file mode 100755 index 000000000..c81baa053 Binary files /dev/null and b/pip_installer/static/description/banner.png differ diff --git a/pip_installer/static/description/icon.png b/pip_installer/static/description/icon.png new file mode 100755 index 000000000..6bd36f025 Binary files /dev/null and b/pip_installer/static/description/icon.png differ diff --git a/pip_installer/static/description/index.html b/pip_installer/static/description/index.html new file mode 100755 index 000000000..768bbe136 --- /dev/null +++ b/pip_installer/static/description/index.html @@ -0,0 +1,637 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+

+ Pip Installer +

+

+ User can Execute the Terminal Pip Commands. +

+ +
+ +
+
+
+ +
+
+

+ Overview +

+
+ +
+

+ User can Install and Uninstall packages from Odoo interface. +

+ +
+
+ +
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Users can execute all terminal Pip Commands from the Odoo interface. +

+ +
+
+
+
+ +
+
+

+ User can Install and Uninstall packages from Odoo interface. +

+ +
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Navigate to Settings -> Pip Installer. +

+ +
+
+

+ In the Command field you can write the Command and execute the Command by clicking 'Execute'. +

+ +
+ +
+

+ Validation Error For Incorrect Commands

+

+ If the command is incorrect, It will result in a Validation Error.

+ +
+ +
+

+ If the command is executed correctly, the following wizard will be displayed:

+ +
+
+ +
+
+ +
+

+ 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

+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/pip_installer/wizard/__init__.py b/pip_installer/wizard/__init__.py new file mode 100755 index 000000000..2811b1ee0 --- /dev/null +++ b/pip_installer/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Ashok PK (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 import_message +from . import pip_install diff --git a/pip_installer/wizard/import_message.py b/pip_installer/wizard/import_message.py new file mode 100755 index 000000000..71917aacc --- /dev/null +++ b/pip_installer/wizard/import_message.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (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 ImportMessage(models.TransientModel): + """ Class for shows message while importing models """ + _name = 'import.message' + _description = 'Message Import' + + message = fields.Text( + string="Message", readonly=True, + help="Output message from the terminal.") + + def action_import_message(self): + """For returning the corresponding window""" + return {'type': 'ir.actions.act_window_close'} diff --git a/pip_installer/wizard/import_message_views.xml b/pip_installer/wizard/import_message_views.xml new file mode 100755 index 000000000..831da246c --- /dev/null +++ b/pip_installer/wizard/import_message_views.xml @@ -0,0 +1,19 @@ + + + + + import.message.view.form + import.message + +
+ + + +
+
+
+
+
+
diff --git a/pip_installer/wizard/pip_install.py b/pip_installer/wizard/pip_install.py new file mode 100755 index 000000000..a943d70f3 --- /dev/null +++ b/pip_installer/wizard/pip_install.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (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 +from odoo.exceptions import ValidationError +import subprocess + + +class PipInstall(models.TransientModel): + """Class for adding the fields and functions for wizard""" + _name = 'pip.install' + _description = 'Pip Installer' + + name = fields.Char(string='Command', help='Write the pip command to execute.') + + def action_done(self): + """Function for executing the pip commands in terminal""" + command = self.name + try: + if command.startswith("pip"): + process = subprocess.Popen(['yes'], stdout=subprocess.PIPE) + result = subprocess.run(command, shell=True, check=True, + stdin=process.stdout, + stdout=subprocess.PIPE, text=True) + message = self.env['import.message'].create({'message': result.stdout}) + if result.stdout != '': + return { + 'name': 'Successfully Executed', + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'import.message', + 'res_id': message.id, + 'target': 'new' + } + else: + raise ValidationError('Please enter a proper pip install command') + except subprocess.CalledProcessError: + raise ValidationError('Please enter a proper pipinstall command') + except TypeError: + raise ValidationError('Please enter a proper pip install command') diff --git a/pip_installer/wizard/pip_install_views.xml b/pip_installer/wizard/pip_install_views.xml new file mode 100755 index 000000000..6fa048114 --- /dev/null +++ b/pip_installer/wizard/pip_install_views.xml @@ -0,0 +1,34 @@ + + + + + pip.install.view.form + pip.install + +
+ + + + + +
+
+
+
+
+ + + + Install Python Packages + pip.install + + form + new + + +