浏览代码

commit inicial

Rodney Enciso Arias 8 年之前
当前提交
ec957c39c4
共有 10 个文件被更改,包括 134 次插入0 次删除
  1. 24 0
      __init__.py
  2. 二进制
      __init__.pyc
  3. 38 0
      __openerp__.py
  4. 二进制
      static/description/banner.jpg
  5. 二进制
      static/description/cybro_logo.png
  6. 二进制
      static/description/dev.jpg
  7. 二进制
      static/description/icon.png
  8. 二进制
      static/description/im_login.jpg
  9. 58 0
      static/description/index.html
  10. 14 0
      views/web_view.xml

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

二进制
__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,
+}

二进制
static/description/banner.jpg


二进制
static/description/cybro_logo.png


二进制
static/description/dev.jpg


二进制
static/description/icon.png


二进制
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>