Skip to Content
Menu
This question has been flagged
1 Reply
7456 Views

I'm trying to inherit website_crm_partner_assign.index like this:

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

        <template id="custom_partner_website" inherit_id="website_crm_partner_assign.index" name="Custom partner website">
            <xpath expr="//div[@id='ref_content']" position="before">
                
                <div>Test</div>
                
            </xpath>
        </template>

    </data>
</odoo>


I did add this xml file inside the manifest and I also added website_crm_partner_assign as a dependency.  But for some reason I'm not able install the module because it says that "//div[@id='ref_content']" cannot be located in the parent view. WHY?


Here is the line with this div:

https://github.com/odoo/odoo/blob/d1caa5c6afe80ee421fded7b4c82bf5cf9690c14/addons/website_crm_partner_assign/views/website_crm_partner_assign_templates.xml#L61


Which is exactly the same as in my database.


What is the problem. I'm out of ideas.

Using Odoo 13

Avatar
Discard
Author Best Answer

I don't know what is that bug, but I had to do 2 things:

1) Comment  out the xpath and update the module
2) Via Odoo interface edit the view and uncomment the xpath


And it magicaly wor

Avatar
Discard
Related Posts Replies Views Activity
2
Jan 24
13089
2
Feb 16
7876
2
Apr 24
2488
0
Mar 24
211
1
Jul 23
1241