Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
8470 Представления

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

Аватар
Отменить
Автор Лучший ответ

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
янв. 25
14609
2
февр. 16
8702
2
апр. 24
4648
0
мар. 24
898
1
дек. 24
2201