تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
8539 أدوات العرض

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يناير 25
14817
2
فبراير 16
8786
2
أبريل 24
4763
0
مارس 24
985
1
ديسمبر 24
2260