diff --git a/developer_mode/README.rst b/developer_mode/README.rst new file mode 100644 index 000000000..ffc532263 --- /dev/null +++ b/developer_mode/README.rst @@ -0,0 +1,21 @@ +================================ + Automatic Developer Mode v13 +================================ + +Odoo Developers, Keep smiling for the below reasons: + + * Automatically Trigger Developer Mode. + * Separate Group for 'Odoo Developers'. + * Upgrade Modules Easily. + * Recently Upgraded Filter. + +Credits +------- +* `Nilmar Shereef < odoo@cybsosys.com >` +* `Saritha < odoo@cybsosys.com >` + + +Further information +=================== +HTML Description: ``__ + diff --git a/developer_mode/__init__.py b/developer_mode/__init__.py new file mode 100644 index 000000000..5f37fcb4a --- /dev/null +++ b/developer_mode/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies (). +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import controllers diff --git a/developer_mode/__manifest__.py b/developer_mode/__manifest__.py new file mode 100644 index 000000000..748d50973 --- /dev/null +++ b/developer_mode/__manifest__.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies (). +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +{ + 'name': "Automatic Developer Mode", + 'summary': """Automatically Activate Developer Mode""", + 'description': """Automatically Activate Developer Mode""", + 'version': '13.0.1.0.0', + 'author': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'category': 'Extra Tools', + 'depends': ['base', 'web', 'base_setup'], + 'data': [ + 'security/security_data.xml', + 'views/developer_mode_view.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, +} diff --git a/developer_mode/controllers/__init__.py b/developer_mode/controllers/__init__.py new file mode 100644 index 000000000..25f227bc7 --- /dev/null +++ b/developer_mode/controllers/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies (). +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +from . import main diff --git a/developer_mode/controllers/main.py b/developer_mode/controllers/main.py new file mode 100644 index 000000000..700ee6805 --- /dev/null +++ b/developer_mode/controllers/main.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies (). +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +################################################################################### + +import odoo +from odoo import http, _ +from odoo.http import request +from odoo.addons.web.controllers.main import Home, ensure_db + + +class AutoDeveloperMode(Home): + + def _login_redirect(self, uid, redirect=None): + if redirect: + return redirect + else: + odoo_technician = request.env.user.has_group('developer_mode.odoo_developer_group') + if odoo_technician: + return '/web?debug=1' + else: + return '/web' diff --git a/developer_mode/doc/RELEASE_NOTES.md b/developer_mode/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..eee0582ba --- /dev/null +++ b/developer_mode/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.04.2020 +#### Version 13.0.1.0.0 +#### ADD +- Initial Commit diff --git a/developer_mode/security/security_data.xml b/developer_mode/security/security_data.xml new file mode 100644 index 000000000..ee75040a7 --- /dev/null +++ b/developer_mode/security/security_data.xml @@ -0,0 +1,12 @@ + + + + + + Odoo Developer + + + + + + diff --git a/developer_mode/static/description/banner.png b/developer_mode/static/description/banner.png new file mode 100644 index 000000000..1e0997e66 Binary files /dev/null and b/developer_mode/static/description/banner.png differ diff --git a/developer_mode/static/description/cybro.jpg b/developer_mode/static/description/cybro.jpg new file mode 100644 index 000000000..28b019bab Binary files /dev/null and b/developer_mode/static/description/cybro.jpg differ diff --git a/developer_mode/static/description/cybro_logo.png b/developer_mode/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/developer_mode/static/description/cybro_logo.png differ diff --git a/developer_mode/static/description/cybrosys-developer-mode-1.png b/developer_mode/static/description/cybrosys-developer-mode-1.png new file mode 100644 index 000000000..0162caa24 Binary files /dev/null and b/developer_mode/static/description/cybrosys-developer-mode-1.png differ diff --git a/developer_mode/static/description/cybrosys-developer-mode-2.jpg b/developer_mode/static/description/cybrosys-developer-mode-2.jpg new file mode 100644 index 000000000..2f4017465 Binary files /dev/null and b/developer_mode/static/description/cybrosys-developer-mode-2.jpg differ diff --git a/developer_mode/static/description/cybrosys-developer-mode-3.png b/developer_mode/static/description/cybrosys-developer-mode-3.png new file mode 100644 index 000000000..78e0a709d Binary files /dev/null and b/developer_mode/static/description/cybrosys-developer-mode-3.png differ diff --git a/developer_mode/static/description/cybrosys-developer-mode-4.png b/developer_mode/static/description/cybrosys-developer-mode-4.png new file mode 100644 index 000000000..4a4049cbf Binary files /dev/null and b/developer_mode/static/description/cybrosys-developer-mode-4.png differ diff --git a/developer_mode/static/description/cybrosys-developer-mode-5.png b/developer_mode/static/description/cybrosys-developer-mode-5.png new file mode 100644 index 000000000..1c105e07b Binary files /dev/null and b/developer_mode/static/description/cybrosys-developer-mode-5.png differ diff --git a/developer_mode/static/description/dev.jpg b/developer_mode/static/description/dev.jpg new file mode 100644 index 000000000..3cef12199 Binary files /dev/null and b/developer_mode/static/description/dev.jpg differ diff --git a/developer_mode/static/description/icon.png b/developer_mode/static/description/icon.png new file mode 100644 index 000000000..d628144d8 Binary files /dev/null and b/developer_mode/static/description/icon.png differ diff --git a/developer_mode/static/description/index.html b/developer_mode/static/description/index.html new file mode 100644 index 000000000..fbce0a5eb --- /dev/null +++ b/developer_mode/static/description/index.html @@ -0,0 +1,344 @@ +
+
+

+ Automatic Developer Mode +

+

+ Developers, Keep up your smile! +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies +
+
+
+
+
+
+

+ Overview +

+

+ This module makes you free from activating developer mode operations repeatedly. + When you login, It will trigger the DEVELOPER MODE automatically. + It also helps in identification of running DB and make upgradation of modules easier. +

+

+ Configuration +

+

+ You have to enable 'Odoo Developer' group for respective users (Except Admin)in settings & + YOU HAVE TO RE-LOGIN AFTER THE MODULE INSTALLATION. +

+
+
+
+
+

+ Features +

+

+ + Automatically Trigger Developer Mode. +

+

+ + Separate Group for 'Odoo Developers'. +

+

+ + Upgrade Modules Easily. +

+
+
+ +
+
+

+ Screenshots +

+

+ + As shown here, Simply automate the developer mode. It helps developer in several perspective. +

+
+ +
+

+ + Easily upgrade any module without going the module form. +

+
+ +
+
+
+ +
+
+ cybrosys technologies +
+
+
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
diff --git a/developer_mode/views/developer_mode_view.xml b/developer_mode/views/developer_mode_view.xml new file mode 100644 index 000000000..0e814b2af --- /dev/null +++ b/developer_mode/views/developer_mode_view.xml @@ -0,0 +1,20 @@ + + + + + + Modules Kanban + + ir.module.module + + + + + + + + + + +