Rodney Enciso Arias vor 8 Jahren
Commit
ec957c39c4

+ 24 - 0
__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/>.
+#
+##############################################################################
+
+

BIN
__init__.pyc


+ 38 - 0
__openerp__.py

@@ -0,0 +1,38 @@
+# -*- 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
static/description/banner.jpg


BIN
static/description/cybro_logo.png


BIN
static/description/dev.jpg


BIN
static/description/icon.png


BIN
static/description/im_login.jpg


+ 58 - 0
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. NOTE THAT, YOU HAVE TO RE-LOGIN AFTER THE MODULE INSTALLATION!!</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 - 0
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>