Odoo Help

-1

Getting External ID error

By
Paramita
on 3/11/16, 1:27 PM 579 views
<?xml version="1.0" encoding="UTF-8" ?><openerp>    <data>        <record id="accountrelations_template_tree_view" model="ir.ui.view">            <field name="name">accountrelations.view.tree</field>            <field name="model">sale.accountrelations</field>            <field name="arch" type="xml">                <tree string="tree">                    <field name="relations"/>                </tree>            </field>        </record>        <record id="accountrelations_template_form_view" model="ir.ui.view">            <field name="name">associateaccounts.view.form</field>             <field name="model">sale.accountrelations</field>             <field name="arch" type="xml">                 <form string="form">                 <sheet>                    <group>                    <field name="relations"/>                    </group>                    </sheet>                 </form>             </field>        </record>         <!-- Action -->        <record id="accountrelations_action" model="ir.actions.act_window">            <field name="name">Account Relations</field>            <field name="res_model">sale.accountrelations</field>            <field name="type">ir.actions.act_window</field>            <field name="view_type">form</field>            <field name="view_mode">tree,form</field>        </record>         <!-- Menu position -->        <menuitem id="accountrelations_menu" action="accountrelations_action" parent="associateaccounts_menu"/>    </data></openerp>

Please ask a question, provide information and format your question so that it is readable.

Ermin Trevisan
on 3/12/16, 12:54 AM
2

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10490
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 3/12/16, 6:38 AM

Hello Paramita,

Everything looks good after looking at your code.
I have just doubt about parent="associateaccounts_menu" and I guess you might be facing the problem for this as External ID error.

If yes, then make sure the ID is correct and the xml file which contains this ID is loaded first in __openerp__ file.

Thanks,

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 3/11/16, 1:27 PM
Seen: 579 times
Last updated: 7/22/16, 9:38 AM