-1

i want to add new menuitem under management menu in accounting module, so what is the wrong with mine?? this is my xml file

    <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"/>
asya
  • 1
  • 1

1 Answers1

0

If you are using any external_id(menu_finance_entries_management in your case) from another module then you have to specify module name for that id replace menu_finance_entries_management with account.menu_finance_entries_management.

Akshay
  • 639
  • 3
  • 8