Edit top right menu Odoo v8

Can Odoo v8's top right menu be edited?

I want to delete "My odoo.com account", "Help" and edit "about Odoo"

I used the "Stop Phoning Home Feature from OpenERP" module that does this, but it doesn't work with Odoo 8: https://bitbucket.org/BizzAppDev/oerp_no_phoning_home

Thank you

+3


source to share


2 answers


When I install "Stop Phoning Home Feature from OpenERP" the "Importer" module is used: it does not work



But when I put the contents of the archive (zip file) into the Odoo addons directory, I update the list of modules and then install the "stop phoning": module which works

+1


source


Hi RAFMAN,

If you want to remove the main menu item from the top right corner of the ode to take the next step,

  • Extend the UserMenu database template.
  • In this case, two cases,
    2.1 If you want to remove the base menu item, so the Replace

    base template and add your menu item. 2.2 If you want to add a new menu item to an existing base menu, give postion inner

    .

your answer question for example below,
2.1 . First of all, this is the qweb template definition to replace the UserMenu definition:
- First I create one file like inherit_base.xml and this file is placed in static / src / xml / inherit_base.xml file and this file is also added to 'qweb'

your file section __openerp__.py

...

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
  <!-- replace UserMenu dropdown-menu defined in oddo_v8/addons/web/static/src/xml/base.xml -->
  <t t-extend="UserMenu" >
    <t t-jquery="ul.dropdown-menu" t-operation="replace">
      <li><a href="#" data-menu="Your_Menu_Name">Your Menu Name</a></li>
       ....
    </t>
  </t>
</templates>

      



Or If you want to remove any specific menu item use

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
  <!-- replace UserMenu dropdown-menu defined in oddo_v8/addons/web/static/src/xml/base.xml -->
  <t t-extend="UserMenu" >
    <!-- Remove My Odoo.com account Menu Item -->
    <t t-jquery="UserMenu.account" t-operation="replace"></t>

    <!-- Remove About Odoo Menu Item -->
    <t t-jquery="UserMenu.about" t-operation="replace"></t>

    <!-- Remove Help Menu Item -->
    <t t-jquery="UserMenu.help" t-operation="replace"></t>
  </t>
</templates>

      

2.2 Same as above, with some differences. In this case, add the new menu item to the existing menu, and also add the action of that new menu item using another wise click on the new menu - so no action is taken. So add an action to anyone.

<?xml version="1.0" encoding="UTF-8"?>
    <templates id="template" xml:space="preserve">
      <!-- replace UserMenu dropdown-menu defined in oddo_v8/addons/web/static/src/xml/base.xml -->
      <t t-extend="UserMenu" >
        <t t-jquery="ul.dropdown-menu" t-operation="inner">
          <li><a href="#" data-menu="Your_Menu_Name">Your Menu Name</a></li>
           ....
        </t>
      </t>
    </templates>

      

0


source







All Articles