diff --git a/remove_studio_field/README.rst b/remove_studio_field/README.rst new file mode 100755 index 000000000..9c627d4fc --- /dev/null +++ b/remove_studio_field/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/licence-OPL--1-red.svg + :target: https://www.odoo.com/documentation/18.0/legal/licenses.html#odoo-apps + :alt: License: OPL-1 + +Remove Studio Fields +==================== +This module helps to remove the fields added using the Studio Module. + +Configuration +============= +Add the users to the new security group 'Remove Studio Fields' to give access to +the new menu item. + +License +------- +Odoo Proprietary License v1.0 (OPL-1) +(https://www.odoo.com/documentation/17.0/legal/licenses.html#odoo-apps) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: Mruthul Raj @cybrosys, 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 `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/remove_studio_field/__init__.py b/remove_studio_field/__init__.py new file mode 100644 index 000000000..ac9ad5fb8 --- /dev/null +++ b/remove_studio_field/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (Contact : odoo@cybrosys.com) +# +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +############################################################################### +from . import wizard diff --git a/remove_studio_field/__manifest__.py b/remove_studio_field/__manifest__.py new file mode 100644 index 000000000..9a4394935 --- /dev/null +++ b/remove_studio_field/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (Contact : odoo@cybrosys.com) +# +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +############################################################################### +{ + 'name': 'Remove Studio Fields', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'The module helps to remove fields added from Studio', + 'description': """ + We can add fields in models and add them in the views of the corresponding + model using the Odoo Studio. In some cases, the type of fields that we + will create will be Basic. This module simplify the deletion of those + fields, and Custom fields created using Odoo Studio. + """, + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['base', 'web', 'web_studio'], + 'data': [ + 'security/remove_studio_field_groups.xml', + 'security/ir.model.access.csv', + 'wizard/remove_studio_field_views.xml' + ], + 'images': ['static/description/banner.jpg'], + 'license': 'OPL-1', + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/remove_studio_field/doc/RELEASE_NOTES.md b/remove_studio_field/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..dcc2af94c --- /dev/null +++ b/remove_studio_field/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 19.02.2024 +#### Version 178.0.1.0.0 +#### ADD + +- Initial commit for Remove Studio Fields diff --git a/remove_studio_field/security/ir.model.access.csv b/remove_studio_field/security/ir.model.access.csv new file mode 100644 index 000000000..08cdb69ab --- /dev/null +++ b/remove_studio_field/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_remove_studio_field_admin,access.remove.studio.field.admin,model_remove_studio_field,remove_studio_field.remove_studio_field_group_admin,1,1,1,1 \ No newline at end of file diff --git a/remove_studio_field/security/remove_studio_field_groups.xml b/remove_studio_field/security/remove_studio_field_groups.xml new file mode 100644 index 000000000..4e3739358 --- /dev/null +++ b/remove_studio_field/security/remove_studio_field_groups.xml @@ -0,0 +1,14 @@ + + + + + Remove Studio Fields + Helps to manage access to the wizard for removing fields added through Studio + + + + Administrator + Access to the Remove Studio Fields wizard menu + + + \ No newline at end of file diff --git a/remove_studio_field/static/description/assets/cybro-icon.png b/remove_studio_field/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/remove_studio_field/static/description/assets/cybro-icon.png differ diff --git a/remove_studio_field/static/description/assets/cybro-odoo.png b/remove_studio_field/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/remove_studio_field/static/description/assets/cybro-odoo.png differ diff --git a/remove_studio_field/static/description/assets/h2.png b/remove_studio_field/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/remove_studio_field/static/description/assets/h2.png differ diff --git a/remove_studio_field/static/description/assets/icons/arrows-repeat.svg b/remove_studio_field/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/banner-1.png b/remove_studio_field/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/banner-1.png differ diff --git a/remove_studio_field/static/description/assets/icons/banner-2.svg b/remove_studio_field/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/banner-bg.png b/remove_studio_field/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/banner-bg.png differ diff --git a/remove_studio_field/static/description/assets/icons/banner-bg.svg b/remove_studio_field/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/banner-call.svg b/remove_studio_field/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/remove_studio_field/static/description/assets/icons/banner-mail.svg b/remove_studio_field/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/remove_studio_field/static/description/assets/icons/banner-pattern.svg b/remove_studio_field/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/banner-promo.svg b/remove_studio_field/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/brand-pair.svg b/remove_studio_field/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/check.png b/remove_studio_field/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/check.png differ diff --git a/remove_studio_field/static/description/assets/icons/chevron.png b/remove_studio_field/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/chevron.png differ diff --git a/remove_studio_field/static/description/assets/icons/close-icon.svg b/remove_studio_field/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/remove_studio_field/static/description/assets/icons/cogs.png b/remove_studio_field/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/cogs.png differ diff --git a/remove_studio_field/static/description/assets/icons/collabarate-icon.svg b/remove_studio_field/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/remove_studio_field/static/description/assets/icons/consultation.png b/remove_studio_field/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/consultation.png differ diff --git a/remove_studio_field/static/description/assets/icons/cybro-logo.png b/remove_studio_field/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/cybro-logo.png differ diff --git a/remove_studio_field/static/description/assets/icons/down.svg b/remove_studio_field/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/remove_studio_field/static/description/assets/icons/ecom-black.png b/remove_studio_field/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/ecom-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/education-black.png b/remove_studio_field/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/education-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/faq.png b/remove_studio_field/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/faq.png differ diff --git a/remove_studio_field/static/description/assets/icons/feature-icon.svg b/remove_studio_field/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/feature.png b/remove_studio_field/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/feature.png differ diff --git a/remove_studio_field/static/description/assets/icons/gear.svg b/remove_studio_field/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/hero.gif b/remove_studio_field/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/hero.gif differ diff --git a/remove_studio_field/static/description/assets/icons/hire-odoo.svg b/remove_studio_field/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/hotel-black.png b/remove_studio_field/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/hotel-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/license.png b/remove_studio_field/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/license.png differ diff --git a/remove_studio_field/static/description/assets/icons/life-ring-icon.svg b/remove_studio_field/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/lifebuoy.png b/remove_studio_field/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/lifebuoy.png differ diff --git a/remove_studio_field/static/description/assets/icons/mail.svg b/remove_studio_field/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/remove_studio_field/static/description/assets/icons/manufacturing-black.png b/remove_studio_field/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/manufacturing-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/notes.png b/remove_studio_field/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/notes.png differ diff --git a/remove_studio_field/static/description/assets/icons/notification icon.svg b/remove_studio_field/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/odoo-consultancy.svg b/remove_studio_field/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/remove_studio_field/static/description/assets/icons/odoo-licencing.svg b/remove_studio_field/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/remove_studio_field/static/description/assets/icons/odoo-logo.png b/remove_studio_field/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/odoo-logo.png differ diff --git a/remove_studio_field/static/description/assets/icons/patter.svg b/remove_studio_field/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/pattern1.png b/remove_studio_field/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/pattern1.png differ diff --git a/remove_studio_field/static/description/assets/icons/pos-black.png b/remove_studio_field/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/pos-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/puzzle-piece-icon.svg b/remove_studio_field/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/puzzle.png b/remove_studio_field/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/puzzle.png differ diff --git a/remove_studio_field/static/description/assets/icons/replace-icon.svg b/remove_studio_field/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/restaurant-black.png b/remove_studio_field/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/restaurant-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/screenshot-main.png b/remove_studio_field/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/screenshot-main.png differ diff --git a/remove_studio_field/static/description/assets/icons/screenshot.png b/remove_studio_field/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/screenshot.png differ diff --git a/remove_studio_field/static/description/assets/icons/service-black.png b/remove_studio_field/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/service-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/skype-fill.svg b/remove_studio_field/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/skype.png b/remove_studio_field/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/skype.png differ diff --git a/remove_studio_field/static/description/assets/icons/skype.svg b/remove_studio_field/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/remove_studio_field/static/description/assets/icons/star-1.svg b/remove_studio_field/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/star-2.svg b/remove_studio_field/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/support.png b/remove_studio_field/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/support.png differ diff --git a/remove_studio_field/static/description/assets/icons/test-1 - Copy.png b/remove_studio_field/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/test-1 - Copy.png differ diff --git a/remove_studio_field/static/description/assets/icons/test-1.png b/remove_studio_field/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/test-1.png differ diff --git a/remove_studio_field/static/description/assets/icons/test-2.png b/remove_studio_field/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/test-2.png differ diff --git a/remove_studio_field/static/description/assets/icons/trading-black.png b/remove_studio_field/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/trading-black.png differ diff --git a/remove_studio_field/static/description/assets/icons/training.png b/remove_studio_field/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/training.png differ diff --git a/remove_studio_field/static/description/assets/icons/translate.svg b/remove_studio_field/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/update.png b/remove_studio_field/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/update.png differ diff --git a/remove_studio_field/static/description/assets/icons/user.png b/remove_studio_field/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/user.png differ diff --git a/remove_studio_field/static/description/assets/icons/video.png b/remove_studio_field/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/video.png differ diff --git a/remove_studio_field/static/description/assets/icons/whatsapp.png b/remove_studio_field/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/whatsapp.png differ diff --git a/remove_studio_field/static/description/assets/icons/wrench-icon.svg b/remove_studio_field/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/remove_studio_field/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/remove_studio_field/static/description/assets/icons/wrench.png b/remove_studio_field/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/remove_studio_field/static/description/assets/icons/wrench.png differ diff --git a/remove_studio_field/static/description/assets/modules/1.gif b/remove_studio_field/static/description/assets/modules/1.gif new file mode 100644 index 000000000..ae3a880a2 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/1.gif differ diff --git a/remove_studio_field/static/description/assets/modules/1.jpg b/remove_studio_field/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..3cb15fe01 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/1.jpg differ diff --git a/remove_studio_field/static/description/assets/modules/2.gif b/remove_studio_field/static/description/assets/modules/2.gif new file mode 100644 index 000000000..d19e2b352 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/2.gif differ diff --git a/remove_studio_field/static/description/assets/modules/2.jpg b/remove_studio_field/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..662cadcc3 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/2.jpg differ diff --git a/remove_studio_field/static/description/assets/modules/3.png b/remove_studio_field/static/description/assets/modules/3.png new file mode 100644 index 000000000..7c67e2eec Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/3.png differ diff --git a/remove_studio_field/static/description/assets/modules/4.jpg b/remove_studio_field/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..f85e160cd Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/4.jpg differ diff --git a/remove_studio_field/static/description/assets/modules/4.png b/remove_studio_field/static/description/assets/modules/4.png new file mode 100644 index 000000000..696582fa8 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/4.png differ diff --git a/remove_studio_field/static/description/assets/modules/5.jpg b/remove_studio_field/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..4bd9278e3 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/5.jpg differ diff --git a/remove_studio_field/static/description/assets/modules/5.png b/remove_studio_field/static/description/assets/modules/5.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/5.png differ diff --git a/remove_studio_field/static/description/assets/modules/6.jpg b/remove_studio_field/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..580ea075d Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/6.jpg differ diff --git a/remove_studio_field/static/description/assets/modules/6.png b/remove_studio_field/static/description/assets/modules/6.png new file mode 100644 index 000000000..c55756590 Binary files /dev/null and b/remove_studio_field/static/description/assets/modules/6.png differ diff --git a/remove_studio_field/static/description/assets/screenshots/1.png b/remove_studio_field/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..48ef7b88a Binary files /dev/null and b/remove_studio_field/static/description/assets/screenshots/1.png differ diff --git a/remove_studio_field/static/description/assets/screenshots/ftp.png b/remove_studio_field/static/description/assets/screenshots/ftp.png new file mode 100644 index 000000000..a31452ed0 Binary files /dev/null and b/remove_studio_field/static/description/assets/screenshots/ftp.png differ diff --git a/remove_studio_field/static/description/assets/screenshots/google6.png b/remove_studio_field/static/description/assets/screenshots/google6.png new file mode 100644 index 000000000..655c54a01 Binary files /dev/null and b/remove_studio_field/static/description/assets/screenshots/google6.png differ diff --git a/remove_studio_field/static/description/assets/screenshots/hero.gif b/remove_studio_field/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..decb6bc50 Binary files /dev/null and b/remove_studio_field/static/description/assets/screenshots/hero.gif differ diff --git a/remove_studio_field/static/description/assets/screenshots/local.png b/remove_studio_field/static/description/assets/screenshots/local.png new file mode 100644 index 000000000..e964c5fef Binary files /dev/null and b/remove_studio_field/static/description/assets/screenshots/local.png differ diff --git a/remove_studio_field/static/description/assets/screenshots/sftp.png b/remove_studio_field/static/description/assets/screenshots/sftp.png new file mode 100644 index 000000000..bf6655d78 Binary files /dev/null and b/remove_studio_field/static/description/assets/screenshots/sftp.png differ diff --git a/remove_studio_field/static/description/assets/y18.jpg b/remove_studio_field/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/remove_studio_field/static/description/assets/y18.jpg differ diff --git a/remove_studio_field/static/description/banner.jpg b/remove_studio_field/static/description/banner.jpg new file mode 100644 index 000000000..4d9372d90 Binary files /dev/null and b/remove_studio_field/static/description/banner.jpg differ diff --git a/remove_studio_field/static/description/icon.png b/remove_studio_field/static/description/icon.png new file mode 100644 index 000000000..a4a3462b0 Binary files /dev/null and b/remove_studio_field/static/description/icon.png differ diff --git a/remove_studio_field/static/description/index.html b/remove_studio_field/static/description/index.html new file mode 100644 index 000000000..7473c893b --- /dev/null +++ b/remove_studio_field/static/description/index.html @@ -0,0 +1,1059 @@ + + + + + + Remove Studio Fields + + + + + + + + + + +
+
+ + + +
+
+ Enterprise +
+ + + + +
+
+ +
+
+
+
+

+ This module helps to remove the fields which are added using the Odoo Studio. + The fields have to be removed from the views before deleting them. If any of the fields + selected + for deletion is present in any view, the XML IDs of the views will be displayed. The + name can be + used to search the view and remove the field from the corresponding view. +

+

Remove Studio Fields +

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

Key + Highlights

+
+
+
+
+ +
+
+ Delete Fields +
+

+ Delete fields which are created using studio.

+
+
+
+
+
+ +
+
+ Warning +
+

+ Error warning if the filed cant be deleted. +

+
+
+
+
+
+ +
+
+ Secure +
+

+ Only users with access can delete fields or see the delete menu. +

+
+
+
+
+ +
+
+
+ Remove Studio Fields +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Remove Field + +

+
+
+

+ Go to Setting --> Users --> + Set Remove Studio Fields as Administrator. +

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

+ Remove Studio Fields + + Menu. +

+
+
+

+ Enable debug mode.Technical -> Database Structure -> Remove Studio + Fields to access the new wizard. +

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

+ Select Studio Fields for + + Deleting. +

+
+
+

+ Select the fields which is needed to be deleted and click on Remove + Fields button.
+ Note* Once you delete a field, you will lose the data stored with that + field. So, ensure that you don't need the data anymore. Else, backup or + store the data before deleting the fields. +

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

+ Check the + + + Views. +

+
+
+

+ If we delete the fields which are added in any view, we cannot access + those views. So, we have to remove the fields from the view before + deleting. This module makes this step easier. It checks the views first + and return the list of fields and the views in which the fields are + used. Then, we can either open the corresponding view through Studio, + select the field in the view, and click on the button 'REMOVE FROM + VIEW', or we can navigate to Settings/ Technical/ User Interface/ Views, + search for the view and edit the XML code to remove the field from the + view. +

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

+ + + + Notification +

+
+
+

+ If we don't have the fields in any views or if we already removed the + fields from the views, then a notification will be displayed after + deleting the fields. +

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

+ New Menu: Remove Studio Fields to Access the New Wizard.

+
+ +
+
+
+
+
+
+ +
+

+ Select and Remove Fields Using the New Wizard.

+
+
+
+
+
+
+
+ +
+

+ Alerts & Notifications.

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

+ No,This only works with Odoo Enterprise. +

+
+
+ +
+ +
+

+ The datas stored will also get deleted so kindly take a + backup before deleting. +

+
+
+ +
+ +
+

+ No,It only works with fields created using studio. +

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

+ Latest Release 18.0.1.0.0 +

+ + 19th Feb, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + + + + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/remove_studio_field/wizard/__init__.py b/remove_studio_field/wizard/__init__.py new file mode 100755 index 000000000..58fc5c4a0 --- /dev/null +++ b/remove_studio_field/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (Contact : odoo@cybrosys.com) +# +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +############################################################################### +from . import remove_studio_field diff --git a/remove_studio_field/wizard/remove_studio_field.py b/remove_studio_field/wizard/remove_studio_field.py new file mode 100755 index 000000000..1e76eb793 --- /dev/null +++ b/remove_studio_field/wizard/remove_studio_field.py @@ -0,0 +1,120 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Mruthul Raj (Contact : odoo@cybrosys.com) +# +# This program is under the terms of the Odoo Proprietary License v1.0 +# (OPL-1) +# It is forbidden to publish, distribute, sublicense, or sell copies of the +# Software or modified copies of the Software. +# +# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +# DEALINGS IN THE SOFTWARE. +# +############################################################################### +""" +The module helps to remove fields added from Odoo UI or Studio. +""" +import logging + +from odoo import fields, models, _ +from odoo.exceptions import UserError, ValidationError + +_logger = logging.getLogger(__name__) + + +class RemoveStudioField(models.TransientModel): + """ + Wizard to select studio fields(x_studio_) and remove them. + Methods: + action_remove_studio_field(): + Delete the selected studio fields. + """ + _name = 'remove.studio.field' + _description = 'Remove Studio Fields' + + field_ids = fields.Many2many( + 'ir.model.fields', string='Studio Fields', required=True, + domain="[('name', 'like', 'x_studio_')]", + help='You can select the fields which are added through Odoo Studio.') + + def action_remove_studio_field(self): + """ Search for the selected fields(x_studio_) in views. If any of the + field is used in any view an error is thrown with the fields and + corresponding views. If the selected fields are not used in any views, + remove them. + Raises: UserError: If any of the selected fields is/are still present + in any view. + Raises: UserError: if there is any error while unlinking the fields. + Returns: + dict: dictionary to show the success notification. + """ + # Makes the given fields clean on all records - remove pending write of + # this field and pop the pending updates of the fields out from the + # cache before unlinking the fields + for record in self.field_ids: + field = self.pool[record.model]._fields.get(record.name, False) + if field: + self.env.cache.clear_dirty_field(field) + error_popup_message = '' + for field in self.field_ids: + self.env[field.model]._pop_field(field.name) + domain = [('arch_db', 'like', field.name), + ('model', '=', field.model)] + views = self.env['ir.ui.view'].search(domain) + field_views = [] + for view in views: + try: + view._check_xml() + except ValidationError as error: + _logger.info(error) + field_views.append(view.name) + if field_views: + error_popup_message = '\n'.join( + [error_popup_message, _('Field: %s', field.display_name), + _('Views: %s') % ', '.join( + str(view) for view in field_views) + ]) + # If the fields are present in any views, display them, so that those + # can be removed from the mentioned views + if error_popup_message: + # if Studio module is installed, we will perform a module upgrade + studio = self.env['ir.module.module'].sudo().search( + [('name', '=', 'web_studio')], limit=1) + if studio and studio.state == 'installed': + studio.button_immediate_upgrade() + raise UserError('\n'.join([ + _("Cannot delete the fields that are still present in views:"), + error_popup_message + ])) + # Set the state of the selected fields as Custom Field(manual) and then + # unlink those fields + query = f""" + UPDATE ir_model_fields set state = 'manual' + WHERE id in {str(tuple(self.field_ids.ids)).replace(',)', ')')}; + DELETE FROM ir_model_fields + WHERE id in {str(tuple(self.field_ids.ids)).replace(',)', ')')}; + """ + try: + self.env.cr.execute(query) + except Exception as error: + raise UserError(f'An error occurred! {error}') from error + return { + 'type': 'ir.actions.client', + 'tag': 'display_notification', + 'params': { + 'title': _('Success'), + 'message': _('The selected fields are deleted.'), + 'sticky': False, + 'type': 'success', + 'next': {'type': 'ir.actions.act_window_close'}, + } + } diff --git a/remove_studio_field/wizard/remove_studio_field_views.xml b/remove_studio_field/wizard/remove_studio_field_views.xml new file mode 100755 index 000000000..19412e54b --- /dev/null +++ b/remove_studio_field/wizard/remove_studio_field_views.xml @@ -0,0 +1,45 @@ + + + + + remove.studio.field.view.form + remove.studio.field + +
+ + + + + + +
+
+
+
+
+
+ + + Remove Studio Fields + remove.studio.field + ir.actions.act_window + form + new + + + +