Skip to Content
Menu
This question has been flagged
1 Reply
3596 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>
Avatar
Discard
Author Best Answer




.....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>
Avatar
Discard