12 changed files with 249 additions and 98 deletions
			
			
		@ -0,0 +1,22 @@ | 
				
			|||||
 | 
					Automatic Developer Mode v9 | 
				
			||||
 | 
					=========================== | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					This module aims to reduce the repeated works of a Odoo Developer. | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Features | 
				
			||||
 | 
					======== | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					* Automatically Trigger Developer Mode. | 
				
			||||
 | 
					* Showing Running DB On Left Top. | 
				
			||||
 | 
					* Select a range of date limit(days) in integer form | 
				
			||||
 | 
					* Update Modules Easily. | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					  .. note:: | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					      # If you installed any other tool, This module may not work properly. | 
				
			||||
 | 
					      # There is a dev mode property missing issue with website module. | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Credits | 
				
			||||
 | 
					======= | 
				
			||||
 | 
					Nilmar Shereef @ cybrosys, shereef@cybrosys.in | 
				
			||||
@ -1,38 +0,0 @@ | 
				
			|||||
# -*- 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.2', | 
					 | 
				
			||||
    '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, | 
					 | 
				
			||||
} | 
					 | 
				
			||||
@ -0,0 +1,41 @@ | 
				
			|||||
 | 
					<?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">Cybrodeveloper</field> | 
				
			||||
 | 
					            <field name="image" type="base64" file="developer_tweaks/data/images/odooveloper.png"/> | 
				
			||||
 | 
					            <field name="website">www.cybrosys.com</field> | 
				
			||||
 | 
					            <field name="comment"> | 
				
			||||
 | 
					****************************************************** | 
				
			||||
 | 
					                 | 
				
			||||
 | 
					                Your freelance partner! | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					****************************************************** | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					Custom development for Odoo is what we do. Talk to us!  | 
				
			||||
 | 
					</field> | 
				
			||||
 | 
					            <field name="country_id" ref="base.pt"/> | 
				
			||||
 | 
					            <field name="supplier" eval="True"/> | 
				
			||||
 | 
					            <field name="customer" eval="False"/> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					         | 
				
			||||
 | 
					    </data> | 
				
			||||
 | 
					     | 
				
			||||
 | 
					</odoo> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					
 | 
				
			||||
@ -0,0 +1,10 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="utf-8"?> | 
				
			||||
 | 
					<openerp> | 
				
			||||
 | 
					    <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> | 
				
			||||
 | 
					</openerp> | 
				
			||||
| 
		 After Width: | Height: | Size: 152 KiB  | 
@ -1,58 +0,0 @@ | 
				
			|||||
<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> | 
					 | 
				
			||||
 | 
					 | 
				
			||||
 | 
					 | 
				
			||||
 | 
					 | 
				
			||||
 | 
					 | 
				
			||||
 | 
					 | 
				
			||||
 | 
					 | 
				
			||||
| 
		 After Width: | Height: | Size: 50 KiB  | 
@ -0,0 +1,118 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="utf-8"?> | 
				
			||||
 | 
					<openerp> | 
				
			||||
 | 
					    <data> | 
				
			||||
 | 
					        <record id="view_module_filter" model="ir.ui.view"> | 
				
			||||
 | 
					            <field name="name">ir.module.module.list.select</field> | 
				
			||||
 | 
					            <field name="inherit_id" ref="base.view_module_filter"/> | 
				
			||||
 | 
					            <field name="model">ir.module.module</field> | 
				
			||||
 | 
					            <field name="arch" type="xml"> | 
				
			||||
 | 
					                <xpath expr="//filter[@name='installed']" position="before"> | 
				
			||||
 | 
					                    <filter string="Recently updated"  | 
				
			||||
 | 
					                        domain="[('state','=','installed')]" | 
				
			||||
 | 
					                         groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					                </xpath> | 
				
			||||
 | 
					                <xpath expr="//filter[last()]" position="after"> | 
				
			||||
 | 
					                    <filter string="Latest update" | 
				
			||||
 | 
					                         groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					                </xpath> | 
				
			||||
 | 
					            </field> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <record id="developer_tweaks_module_form" model="ir.ui.view"> | 
				
			||||
 | 
					            <field name="name">ir.module.module.form</field> | 
				
			||||
 | 
					            <field name="inherit_id" ref="base.module_form"/> | 
				
			||||
 | 
					            <field name="model">ir.module.module</field> | 
				
			||||
 | 
					            <field name="arch" type="xml"> | 
				
			||||
 | 
					                <xpath expr="//field[@name='dependencies_id']/tree/field[last()]" position="after"> | 
				
			||||
 | 
					                    <button name="dt_button_install" | 
				
			||||
 | 
					                            string="Install"  | 
				
			||||
 | 
					                            type="object" | 
				
			||||
 | 
					                            icon="STOCK_ADD" | 
				
			||||
 | 
					                            states="uninstalled" | 
				
			||||
 | 
					                            groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					                    <button name="dt_button_immediate_upgrade" | 
				
			||||
 | 
					                            string="Update"  | 
				
			||||
 | 
					                            type="object" | 
				
			||||
 | 
					                            icon="STOCK_REFRESH" | 
				
			||||
 | 
					                            states="installed" | 
				
			||||
 | 
					                            groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					                    <button name="dt_button_uninstall" | 
				
			||||
 | 
					                            string="Uninstall"  | 
				
			||||
 | 
					                            type="object" | 
				
			||||
 | 
					                            icon="STOCK_STOP" | 
				
			||||
 | 
					                            states="installed" | 
				
			||||
 | 
					                            groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					                </xpath> | 
				
			||||
 | 
					            </field> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <record id="developer_tweaks_module_module_tree" model="ir.ui.view"> | 
				
			||||
 | 
					            <field name="name">ir.module.module.tree</field> | 
				
			||||
 | 
					            <field name="inherit_id" ref="base.module_tree"/> | 
				
			||||
 | 
					            <field name="model">ir.module.module</field> | 
				
			||||
 | 
					            <field name="arch" type="xml"> | 
				
			||||
 | 
					                 | 
				
			||||
 | 
					                <xpath expr="//field[last()]" position="after"> | 
				
			||||
 | 
					                    <button name="button_install" | 
				
			||||
 | 
					                            string="Install"  | 
				
			||||
 | 
					                            type="object" | 
				
			||||
 | 
					                            icon="STOCK_ADD" | 
				
			||||
 | 
					                            states="uninstalled" | 
				
			||||
 | 
					                            groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					                    <button name="button_immediate_upgrade" | 
				
			||||
 | 
					                            string="Update"  | 
				
			||||
 | 
					                            type="object" | 
				
			||||
 | 
					                            icon="STOCK_REFRESH" | 
				
			||||
 | 
					                            states="installed" | 
				
			||||
 | 
					                            groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					                    <button name="button_uninstall" | 
				
			||||
 | 
					                            string="Uninstall"  | 
				
			||||
 | 
					                            type="object" | 
				
			||||
 | 
					                            icon="STOCK_STOP" | 
				
			||||
 | 
					                            states="installed" | 
				
			||||
 | 
					                            groups="developer_mode.odoo_developer_group"/> | 
				
			||||
 | 
					                </xpath> | 
				
			||||
 | 
					            </field> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <record model="ir.ui.view" id="developer_tweaks_module_view_kanban"> | 
				
			||||
 | 
					            <field name="name">Modules Kanban</field> | 
				
			||||
 | 
					            <field name="inherit_id" ref="base.module_view_kanban"/> | 
				
			||||
 | 
					            <field name="model">ir.module.module</field> | 
				
			||||
 | 
					            <field name="arch" type="xml"> | 
				
			||||
 | 
					                <xpath expr="//button[@class='btn btn-default pull-right btn-sm disabled']" position="replace"/> | 
				
			||||
 | 
					                <xpath expr="//button[@name='button_immediate_install']" position="after"> | 
				
			||||
 | 
					                    <button type="object" name="button_immediate_upgrade" states="installed" groups="developer_mode.odoo_developer_group">Update</button> | 
				
			||||
 | 
					                </xpath> | 
				
			||||
 | 
					            </field> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <record id="base.open_module_tree" model="ir.actions.act_window"> | 
				
			||||
 | 
					            <field name="name">Local Modules</field> | 
				
			||||
 | 
					            <field name="res_model">ir.module.module</field> | 
				
			||||
 | 
					            <field name="view_type">form</field> | 
				
			||||
 | 
					            <field name="view_mode">kanban,tree,form</field> | 
				
			||||
 | 
					            <field name="context">{'search_default_app':1}</field> | 
				
			||||
 | 
					            <field name="search_view_id" ref="base.view_module_filter"/> | 
				
			||||
 | 
					            <field name="view_id" ref="base.module_view_kanban"/> | 
				
			||||
 | 
					            <field name="help" type="html"> | 
				
			||||
 | 
					              <p><b>No module found!</b></p> | 
				
			||||
 | 
					              <p>You should try others search criteria.</p> | 
				
			||||
 | 
					            </field> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					
 | 
				
			||||
 | 
					        <template id="contact" inherit_id="web.menu_secondary"> | 
				
			||||
 | 
					            <xpath expr="//a[@class='oe_logo']" position="before"> | 
				
			||||
 | 
					                <t t-if="True" groups="developer_mode.odoo_developer_group"> | 
				
			||||
 | 
					                    <div style="height:20px;text-align:center;background-color:green;color:#ffffff;"> | 
				
			||||
 | 
					                        <t t-esc="request.session.db"/> | 
				
			||||
 | 
					                    </div> | 
				
			||||
 | 
					                </t> | 
				
			||||
 | 
					            </xpath> | 
				
			||||
 | 
					        </template> | 
				
			||||
 | 
					    </data> | 
				
			||||
 | 
					</openerp> | 
				
			||||
@ -0,0 +1,14 @@ | 
				
			|||||
 | 
					<?xml version="1.0" encoding="utf-8"?> | 
				
			||||
 | 
					<openerp> | 
				
			||||
 | 
					    <data> | 
				
			||||
 | 
					        <record id="view_rule_tree" model="ir.ui.view"> | 
				
			||||
 | 
					            <field name="model">ir.rule</field> | 
				
			||||
 | 
					            <field name="inherit_id" ref="base.view_rule_tree"/> | 
				
			||||
 | 
					            <field name="arch" type="xml"> | 
				
			||||
 | 
					                <xpath expr="//field[@name='global']" position="replace"> | 
				
			||||
 | 
					                    <field name="groups"/> | 
				
			||||
 | 
					                </xpath> | 
				
			||||
 | 
					            </field> | 
				
			||||
 | 
					        </record> | 
				
			||||
 | 
					    </data> | 
				
			||||
 | 
					</openerp> | 
				
			||||
					Loading…
					
					
				
		Reference in new issue