You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

技术咨询:如何修改accounting->Reports->PDF Reports中的Partner Ledger菜单项名称?

How to Rename the Partner Ledger Menu Item in Odoo

Hey there! Let's walk through two reliable ways to rename the Partner Ledger menu item located under Accounting > Reports > PDF Reports > Partner Ledger in your Odoo instance. I'll start with the recommended maintainable approach, then cover a quick tweak for testing or temporary changes.

This method ensures your changes won't get overwritten when you update Odoo or the Accounting module. Here's how to do it:

  • First, either use an existing custom module or create a new basic one (if you don't have one already).
  • In your module's views directory, create a new XML file (e.g., custom_menu_renames.xml).
  • Add the following code, replacing Your Desired Menu Name with the new name you want:
    <odoo>
        <!-- Inherit and rename the Partner Ledger menu -->
        <record id="custom_rename_partner_ledger_menu" model="ir.ui.menu">
            <field name="name">Your Desired Menu Name</field>
            <field name="inherit_id" ref="account.menu_action_report_partner_ledger"/>
        </record>
    </odoo>
    
    Note: If the ref value doesn't work, activate Developer Mode, navigate to the Partner Ledger menu, and check its External ID to use here.
  • Update your module's __manifest__.py file to include this XML in the data list:
    'data': [
        # ... other existing files
        'views/custom_menu_renames.xml',
    ],
    
  • Upgrade your custom module from the Apps menu, then refresh your browser to see the updated menu name.

Method 2: Quick Developer Mode Tweak (Temporary/Testing)

If you need a fast change and don't mind losing it during module updates, use this:

  • Activate Developer Mode: Go to Settings > Developer Tools > Activate Developer Mode.
  • Navigate to Settings > Technical > User Interface > Menus.
  • Use the search bar to find the "Partner Ledger" menu record.
  • Click the Edit button, modify the Name field to your preferred text, then save.
  • Refresh your page—your new menu name will be visible immediately.

Important Note

Always prefer the custom module method for production environments. Direct database changes (like the second method) are overwritten when you update Odoo or the Accounting app.

内容的提问来源于stack exchange,提问作者Mohammad AL-Hamalawy

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 06:57:40