Browse Source

New Addon For Developers

pull/10/merge
SHEREEF PT 8 years ago
parent
commit
09d6b5f969
  1. 24
      developer_mode/__init__.py
  2. 37
      developer_mode/__manifest__.py
  3. BIN
      developer_mode/static/description/banner.jpg
  4. BIN
      developer_mode/static/description/cybro_logo.png
  5. BIN
      developer_mode/static/description/dev.jpg
  6. BIN
      developer_mode/static/description/icon.png
  7. BIN
      developer_mode/static/description/im_login.jpg
  8. 58
      developer_mode/static/description/index.html
  9. 14
      developer_mode/views/web_view.xml

24
developer_mode/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################

37
developer_mode/__manifest__.py

@ -0,0 +1,37 @@
# -*- coding: utf-8 -*-
##############################################################################
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2009-TODAY Cybrosys Technologies(<http://www.cybrosys.com>).
# Author: Nilmar Shereef(<http://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
#
# It is forbidden to publish, distribute, sublicense, or sell copies
# of the Software or modified copies of the Software.
#
# 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# GENERAL PUBLIC LICENSE (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': "Automatic Developer Mode",
'summary': """Automatically Activate Developer Mode""",
'version': '0.3',
'author': 'Cybrosys Techno Solutions',
'website': "http://www.yourcompany.com",
'company': 'Cybrosys Techno Solutions',
'category': 'Tools',
'depends': ['base', 'web', 'base_setup'],
'data': [
'views/web_view.xml',
],
'images': ['static/description/banner.jpg'],
'installable': True,
'auto_install': False,
}

BIN
developer_mode/static/description/banner.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

BIN
developer_mode/static/description/cybro_logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
developer_mode/static/description/dev.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
developer_mode/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
developer_mode/static/description/im_login.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

58
developer_mode/static/description/index.html

@ -0,0 +1,58 @@
<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">... to make a developer's life easier...</h3>
</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 make you free from activate developer mode operations over and over(It is very boring when we switching many users).
When you login, It will trigger the DEVELOPER MODE Automatically.</p>
</p>
</div>
</div>
</section>
<section class="oe_container">
<div class="oe_row oe_spaced">
<div class="oe_span6">
<p class="oe_mt32">
<p>As shown here, Simply automate the developer mode. It help developer in several perspective.</p>
</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">
<h2 class="oe_slogan" style="margin-top:20px;" >Need Any Help?</h2>
<div class="oe_slogan" style="margin-top:10px !important;">
<a class="btn btn-primary btn-lg mt8"
style="color: #FFFFFF !important;" href="http://www.cybrosys.com"><i
class="fa fa-envelope"></i> Email </a> <a
class="btn btn-primary btn-lg mt8" style="color: #FFFFFF !important;"
href="http://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;"
href="http://www.cybrosys.com/odoo-customization-and-installation/"><i
class="fa fa-check-square"></i> Request Customization </a>
</div>
<img src="cybro_logo.png" style="width: 190px; margin-bottom: 20px;" class="center-block">
</section>

14
developer_mode/views/web_view.xml

@ -0,0 +1,14 @@
<openerp>
<data>
<record model="ir.ui.view" id="developer_mode_active_form">
<field name="name">DeveloperMode</field>
<field name="model"></field>
<field name="inherit_id" ref="web.login"/>
<field name="arch" type="xml">
<xpath expr="//input[@name='redirect']" position='attributes'>
<attribute name="t-att-value">'%s%sdebug=1' % (redirect or '/web', redirect and '?' in redirect and '&amp;' or '?')</attribute>
</xpath>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save