Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8425 Vistas

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
Descartar
Autor Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
ene 25
14558
2
feb 16
8681
2
abr 24
4594
0
mar 24
876
1
dic 24
2175