Odoo Help

Welcome!

This community 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.

4

Fix the Error ==> "Canot be located in parent view"

By
Miftah
on 12/19/14, 6:25 AM 906 views

What the cause and how to fix this error :

"Canot be located in parent view"

Provide more information. No-one has a glass orb around here, so a single sentence does not help anyone to solve your problem.

Ludo - Neobis
on 12/19/14, 10:08 AM
3
Miftah
On 12/20/14, 5:11 AM

This is the code, I can't add new tab after Accounting :

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

<record model="ir.ui.view" id="product_form_view">
    <field name="name">product</field>
    <field name="model">product.product</field>
    <field name="type">form</field>
    <field name="inherit_id" ref="product.product_normal_form_view"/>
    <field name="arch" type="xml">
    
        <xpath expr="//page[@string='Accounting']" position="after">
            <page string="KPB" col="1">
                <group col="4">
                    <field name="color"/>
                </group>
            </page>
        </xpath>
        
    </field>
</record>

</data>
</openerp>

1

zbik

--zbik--
5941
| 6 4 7
Lodz, Poland
--zbik--


zbik
On 12/20/14, 6:09 AM

You probably need to add, in your module, in __openerp__.py

'depends': [ 'product' ],

I was added it before

Miftah
on 12/23/14, 9:56 PM
0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3918
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 12/22/14, 12:41 AM

Since the Accounting page is added in ACCOUNT module, but you tried to inherit PRODUCT module to add your form

<record model="ir.ui.view" id="product_form_view">
    <field name="name">product</field>
    <field name="model">product.product</field>
    <field name="type">form</field>
    <field name="inherit_id" ref="account.product_normal_form_view"/>
    <field name="arch" type="xml">
    
        <xpath expr="//page[@string='Accounting']" position="after">
            <page string="KPB" col="1">
                <group col="4">
                    <field name="color"/>
                </group>
            </page>
        </xpath>

    </field>
</record>

ok thanks, I will try

Miftah
on 12/23/14, 9:59 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 12/19/14, 6:25 AM
Seen: 906 times
Last updated: 3/16/15, 8:10 AM