【问题标题】:how to fix this error "External ID not found in the system: sales_team.menu_sales"如何修复此错误“系统中未找到外部 ID:sales_team.menu_sales”
【发布时间】:2019-04-10 15:23:49
【问题描述】:

我想在会计模块的管理菜单下添加新的菜单项,那么我的有什么问题? 这是我的 xml 文件

    <record model="ir.ui.view" id="cashflow_form_view">
        <field name="name">cash.flow.forecast</field>
        <field name="model">cashflow.forecast</field>
        <field name="arch" type="xml">
            <form string="Cash Flow Forecast">
                <sheet>
                    <group>
                        <field name="from_date"/>
                        <field name="to_date"/>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record model="ir.actions.act_window" id="action_cashflow_forecast">
        <field name="name">Cash Flow Forecast</field>
        <field name="res_model">cashflow.forecast</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem id="menu_cashflow_forecast" name="Cash Flow Forecast" sequence="3"
              action="action_cashflow_forecast" parent="menu_finance_entries_management"/>

【问题讨论】:

    标签: odoo-12


    【解决方案1】:

    如果您使用来自另一个模块的任何 external_id(在您的情况下为 menu_finance_entries_management),那么您必须为该 id 指定模块名称,将 menu_finance_entries_management 替换为 account.menu_finance_entries_management。

    【讨论】:

    • 感谢 akshay 我之前尝试过 .. 但也没有用
    • 否,没有错误但菜单项没有出现
    • id ,name ,model_id:id ,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_cashflow_forecast,access.cashflow.forecast,model_cashflow_forecast, ,1 ,1 ,1 ,1
    • 但组没有出现在cashflow.forecast模型的访问权限选项卡中
    猜你喜欢
    • 2013-08-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-21
    • 2020-07-10
    • 2022-10-09
    • 2020-09-11
    相关资源
    最近更新 更多