Odoo Help

Welcome!

This community 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.

0

Customize Preference drop down is Not Working from Odoo Login

By
Odoo
on 4/6/16, 1:58 AM 537 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>
 </openerp>
0

Odoo

--Odoo --
1328
| 5 2 5
kerala, India
--Odoo --

Working as a Odoo Functional and Technical Expert

Odoo
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>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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