Skip to Content
Menu
This question has been flagged
2 Replies
2037 Views

I need to change the name of the "Maintenance equipment" menu in the maintenance module to "Maintenance Areas", I tried doing these things and they don't work for me.  it's in odoo 15

model="ir.ui.menu" id="maintenance.menu_maintenance_teams">
name="name">Maintenance areas

or

     id="maintenance.menu_maintenance_teams"
name="Maintenance areas"
parent="maintenance.menu_maintenance_configuration"
action="maintenance.maintenance_team_action_settings"
groups="maintenance.group_equipment_manager"
sequence="1"/>
Avatar
Discard
Author

Hello, thanks for answering Jainesh and Cybrosys, I realized that if I change the name to "Maintenance areas" but in the English language, I need to change it to Spanish and in the translation file I still get the translation as "Maintenance Teams " 

#. module: df_maintenance
#: model:ir.model,name:df_maintenance.model_maintenance_team
msgid "Maintenance Teams"
msgstr "Equipos de mantenimiento"

Best Answer

Hello Pavel,

Please find code in comment.

I hope it will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard

For changing name of an existing menu item, you can do it like this,

<record model="ir.ui.menu" id="maintenance.menu_maintenance_teams">
<field name="name">Maintenance areas</field>
</record>

In model manifest File added in depend module
'depends': ['maintenance'],

Best Answer

Hi,

The following code will work on Odoo v15.

    <record model="ir.ui.menu" id="maintenance.menu_maintenance_teams">


        <field name="name">Maintenance areas</field>


    </record>


Make sure that you have given maintenance  in the depends of your custom module manifest.


Regards

Avatar
Discard