-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'osbzr/master'
- Loading branch information
Showing
720 changed files
with
72,123 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
===================================== | ||
Automatic Developer Mode v10 | ||
===================================== | ||
I am a developer. I know our time is very precious. | ||
- Nilmar Shereef | ||
|
||
|
||
Odoo Developers, Keep smiling for the below reasons: | ||
* Automatically Trigger Developer Mode. | ||
* Separate Group for 'Odoo Developers'. | ||
* Showing Running DB On Left Top. | ||
* Upgrade Modules Easily. | ||
* Recently Upgraded Filter. | ||
|
||
Credits | ||
------- | ||
* `Nilmar Shereef < [email protected] >`__ | ||
|
||
|
||
Further information | ||
=================== | ||
HTML Description: `<static/description/index.html>`__ | ||
|
||
Tested on Odoo 10.0 ffba5c688ff74a0630f9f70be1d7760a43a7deba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
################################################################################### | ||
# | ||
# Cybrosys Technologies Pvt. Ltd. | ||
# Copyright (C) 2018-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||
# Author: Nilmar Shereef (<https://www.cybrosys.com>) | ||
# | ||
# 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 <https://www.gnu.org/licenses/>. | ||
# | ||
################################################################################### | ||
from . import controllers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- coding: utf-8 -*- | ||
################################################################################### | ||
# | ||
# Cybrosys Technologies Pvt. Ltd. | ||
# Copyright (C) 2018-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||
# Author: Nilmar Shereef (<https://www.cybrosys.com>) | ||
# | ||
# 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 <https://www.gnu.org/licenses/>. | ||
# | ||
################################################################################### | ||
{ | ||
'name': "Automatic Developer Mode", | ||
'summary': """Automatically Activate Developer Mode & Running DB Name on Left Top""", | ||
'version': '10.0.5.0.0', | ||
'author': 'Cybrosys Techno Solutions', | ||
'website': "https://www.cybrosys.com", | ||
'company': 'Cybrosys Techno Solutions', | ||
'category': 'Extra Tools', | ||
'depends': ['base', 'web', 'base_setup'], | ||
'data': [ | ||
'security/security_data.xml', | ||
'views/developer_mode_view.xml', | ||
'views/ir_rule_view.xml', | ||
'data/cybro_developer_data.xml', | ||
], | ||
'images': ['static/description/banner.jpg'], | ||
'license': 'AGPL-3', | ||
'installable': True, | ||
'auto_install': False, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# -*- coding: utf-8 -*- | ||
################################################################################### | ||
# | ||
# Cybrosys Technologies Pvt. Ltd. | ||
# Copyright (C) 2018-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||
# Author: Nilmar Shereef (<https://www.cybrosys.com>) | ||
# | ||
# 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 <https://www.gnu.org/licenses/>. | ||
# | ||
################################################################################### | ||
|
||
import main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# -*- coding: utf-8 -*- | ||
################################################################################### | ||
# | ||
# Cybrosys Technologies Pvt. Ltd. | ||
# Copyright (C) 2018-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). | ||
# Author: Nilmar Shereef (<https://www.cybrosys.com>) | ||
# | ||
# 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 <https://www.gnu.org/licenses/>. | ||
# | ||
################################################################################### | ||
import odoo | ||
from odoo import http, _ | ||
from odoo.http import route | ||
from odoo.http import request | ||
from odoo.addons.web.controllers.main import Home, ensure_db | ||
|
||
|
||
class AutoDeveloperMode(Home): | ||
|
||
@http.route('/web/login', type='http', auth="none") | ||
def web_login(self, redirect=None, **kw): | ||
""" Controller functions overrides for redirecting to developer mode if the logging user is admin or | ||
'Odoo Developer' group member """ | ||
ensure_db() | ||
request.params['login_success'] = False | ||
if request.httprequest.method == 'GET' and redirect and request.session.uid: | ||
return http.redirect_with_hash(redirect) | ||
|
||
if not request.uid: | ||
request.uid = odoo.SUPERUSER_ID | ||
|
||
values = request.params.copy() | ||
try: | ||
values['databases'] = http.db_list() | ||
except odoo.exceptions.AccessDenied: | ||
values['databases'] = None | ||
if request.httprequest.method == 'POST': | ||
old_uid = request.uid | ||
uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password']) | ||
if uid is not False: | ||
request.params['login_success'] = True | ||
if not redirect: | ||
odoo_technician = request.env.user.has_group('developer_mode.odoo_developer_group') | ||
if odoo_technician or request.uid == 1: | ||
redirect = '/web?debug=1' | ||
else: | ||
redirect = '/web' | ||
return http.redirect_with_hash(redirect) | ||
request.uid = old_uid | ||
values['error'] = _("Wrong login/password") | ||
return request.render('web.login', values) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="odooveloper_model" model="ir.model.data"> | ||
<field name="res_id" search="[('model','=','res.partner'),('name','=','Cybrodeveloper')]" model="ir.model.data"/> | ||
<field name="model">res.partner</field> | ||
<field name="name">cybro_partner_developer_mode</field> | ||
<field name="noupdate">True</field> | ||
</record> | ||
|
||
<record model="res.partner" id="cybro_partner_developer_mode"> | ||
<field name="name">Cybro Developer</field> | ||
<field name="comment"> | ||
****************************************************** | ||
|
||
Your Odoo ERP Consultant! | ||
|
||
****************************************************** | ||
|
||
Cybrosys provides tremendous scope of Odoo customization where all kinds of business needs can be satisfied and could further enhance later if required with ease. Talk to us! | ||
</field> | ||
<field name="country_id" ref="base.in"/> | ||
<field name="supplier" eval="True"/> | ||
<field name="customer" eval="True"/> | ||
<field name="street">Kinfra Techno Park </field> | ||
<field name="street2">Neospace</field> | ||
<field name="city">Kakkancherry</field> | ||
<field name="zip">673635</field> | ||
<field name="is_company">1</field> | ||
<field name="phone">+91 (0) 4943015006</field> | ||
<field name="mobile">+91 (0) 4943015007</field> | ||
<field name="email">[email protected]</field> | ||
<field name="website">https://www.cybrosys.com</field> | ||
<field name="image" type="base64" file="developer_mode/static/description/cybro.jpg"/> | ||
</record> | ||
</data> | ||
</odoo> | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="odoo_developer_group" model="res.groups"> | ||
<field name="name">Odoo Developer</field> | ||
<field name="implied_ids" eval="[(4, ref('base.group_system')),(4, ref('base.group_no_one'))]"/> | ||
<field name="users" eval="[(4, ref('base.user_root'))]"/> | ||
</record> | ||
</data> | ||
</odoo> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
<section class="oe_container"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Automatic Developer Mode</h2> | ||
<h3 class="oe_slogan">Developers, Keep up your smile!</h3> | ||
<h4 class="oe_slogan"><a href="https://www.cybrosys.com/">Author: Cybrosys Technologies</a></h4> | ||
|
||
</div> | ||
<div class="oe_row oe_spaced"> | ||
<h4><p style="margin-left: 41px;">Keep smiling for the below reasons:</p></h4> | ||
<ul> | ||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> Automatically Trigger Developer Mode.</li> | ||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> Separate Group for 'Odoo Developers'.</li> | ||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> Showing Running DB On Left Top.</li> | ||
<li style="list-style:none !important;"><span style="color:green;"> ☺</span> Upgrade Modules Easily.</li> | ||
</ul> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<img src="dev.jpg"> | ||
</div> | ||
</div> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32"> | ||
<p>This module makes you free from activating developer mode operations repeatedly. | ||
When you login, It will trigger the DEVELOPER MODE automatically.</p> | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container oe_dark"> | ||
<div class="oe_row oe_spaced"> | ||
<h2 class="oe_slogan">Configuration</h2> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32"> | ||
Important Notes: You have to enable 'Odoo Developer' group for respective users (Except Admin)in settings & | ||
YOU HAVE TO RE-LOGIN AFTER THE MODULE INSTALLATION. | ||
</p> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_row_img oe_centered"> | ||
<img class="oe_picture oe_screenshot" src="settings.png"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32"> | ||
As shown here, Simply automate the developer mode. It helps developer in several perspective. | ||
</p> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<img src="im_login.jpg"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container oe_dark"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Running DB on left Top</h2> | ||
<h3 class="oe_slogan">The developer can identify running DB easily.</h3> | ||
</div> | ||
<div class="oe_span12"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<img src="apps_view1.png"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Simplify Your Clicks</h2> | ||
<h3 class="oe_slogan">Easily upgrade any module without going the module form.</h3> | ||
</div> | ||
<div class="oe_span12"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<img src="apps_view2.png"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container oe_dark"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Recent Upgrades History</h2> | ||
<h3 class="oe_slogan">Recent upgraded filter view in Apps.</h3> | ||
</div> | ||
<div class="oe_span12"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<img src="recent_updates.png"> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container"> | ||
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2> | ||
<div class="oe_slogan" style="margin-top:10px !important;"> | ||
<div> | ||
<a class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" | ||
href="https://www.cybrosys.com/contact/"><i | ||
class="fa fa-phone"></i> Contact Us </a> <a | ||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" | ||
href="https://www.cybrosys.com/odoo-customization-and-installation/"><i | ||
class="fa fa-check-square"></i> Request Customization </a> | ||
<a | ||
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;border-radius: 0;" | ||
href="https://apps.odoo.com/apps/modules/browse?author=Cybrosys%20Techno%20Solutions"><i | ||
class="fa fa-suitcase"></i> Other Cybro Apps</a> | ||
</div> | ||
<br> | ||
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block"> | ||
</div> | ||
</section> | ||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.