Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
8435 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
3
tammik. 25
14573
2
helmik. 16
8687
2
huhtik. 24
4612
0
maalisk. 24
885
1
jouluk. 24
2181