我想在会计模块的管理菜单下添加新菜单项,所以我的问题是什么? 这是我的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"/>
答案 0 :(得分:0)
如果您正在使用其他模块的任何external_id(在您的情况下为menu_finance_entries_management),则必须指定该ID的模块名称,并用account.menu_finance_entries_management替换menu_finance_entries_management。