Odoo Help


Customize Preference drop down is Not Working from Odoo Login

on 4/6/16, 1:58 AM 969 views

I extend <t t-extend='UserMenu'> but no effect need a help...

This my openerp.py file

{'name': 'Custom Preference Menu','version': '1.0',
'category': 'Tools','sequence': 1,
'summary': 'Custom unused menus from User’s Preference Menu',
'description': '''Custom Preference Menu======================''',
'author': 'My Business Solutions Pvt. Ltd.','website': 'http://www.mycomp.co.in',
'depends': ['base'],'data': [],'demo_xml': [],'qweb': ['static/src/xml/template.xml'],
'installable': True,'application': True,'auto_install': False,}

  template.xml file--

<?xml version="1.0" encoding="utf-8"?>
<openerp><templates id='template' xml:space='preserve'>
<t t-extend='UserMenu'><t t-jquery='.dropdown-menu' t-operation='replace'>
<ul class='dropdown-menu'><li><a href='#' data-menu='settings'>Preferences</a>
</li><li><a href='#' data-menu='about'>About Odoo</a>
</li><!--<li><a href='#' data-menu='logout'>Log out</a></li>--></ul></t></t></templates>
On 4/6/16, 3:01 AM

.....Solution ..


<?xml version="1.0" encoding="UTF-8"?><templates id="template" xml:space="preserve">    <t t-extend="UserMenu.about">        <t t-jquery=".oe_activate_debug_mode" t-operation="replace">            <a class="oe_activate_debug_mode oe_right label label-primary hidden" href="?debug" groups="base.group_no_one">                Activate the developer mode</a>        </t>    </t><t t-extend='UserMenu'><t t-jquery='.dropdown-menu' t-operation='replace'><ul class='dropdown-menu' groups="base.group_no_one"><!--<li><a href='#' data-menu='settings'>Preferences</a></li>--><!--<li><a href='#' data-menu='about'>About Odoo</a></li>--><li><a href='#' data-menu='logout'>Log out</a></li></ul></t>   </t></templates>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/6/16, 1:58 AM
Seen: 969 times
Last updated: 4/6/16, 3:01 AM