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

Hey,

i follow a odoo Moduldevelopment Tutorial, but on installation i go this error:


ParseError: "<type 'exceptions.ValueError'>: "External ID not found in the system: account.menu_tax_report" while evaluating
"[(4, ref('account.menu_tax_report'))]"" while parsing /home/afthab/Documents/Projects/odoo/odoo10/addons/account_group_auditory/security/account_user_group.xml:17, near
<record id="group_account_user_audit" model="res.groups">
            <field name="menu_access" eval="[(4, ref('account.menu_tax_report'))]"/>
        </record>


why is that so?

Here is my account_user_group.xml



<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data noupdate="0">

<record id="group_account_user_audit" model="res.groups">

<field name="name">Auditor (Read-Only)</field>

<field name="category_id" ref="base.module_category_accounting_and_finance"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_finance'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_action_account_moves_all'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_tax_report'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_finance_bank_and_cash'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_finance_entries'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_action_move_journal_line_form'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_journals_report'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_unrealized_gains_losses'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_general_ledger'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_account_partner_ledger'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_action_tax_code_tree'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="menu_access" eval="[(4, ref('account.menu_finance_reports'))]"/>

</record>

<record id="group_account_user_audit" model="res.groups">

<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>

</record>

</data>

</openerp>

Avatar
Discard
Best Answer

you should install the dependencies first, here the external id is not found. dependencies means the addon which holds menu_tax_report id.

also check whether yo have addded 'account' as dependency on manifest file. if not add

'depends' : ['account',]
Avatar
Discard