Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1231 มุมมอง
    <template id="l10n_cz_external_layout_bold" inherit_id="web.external_layout_bold" priority="100">
        <xpath expr="./div[2]" position="before">
            <div class="row pt-3" id="address_block">
                <div class="col-6" name="systee_company_address">
                </div>
                <div class="col-5 ms-auto" id="systee_address">
                </div>
            </div>
        </xpath>
        <xpath expr="//div[@name='systee_company_address']" position="inside">
            <xpath expr="//div[@name='company_address']" position="move"/>
        </xpath>
        <xpath expr="//div[@id='systee_address']" position="inside">
            <xpath expr="//div[@name='address']" position="move"/>
        </xpath>
    </template>

Hello, 

I don't know why but this example doesn't work because odoo failed on //div[@name="address"] this one is exist in template but I can't reach it in xpath. Is there some limit since this is rendered as "partial" template? 
Any one has some idea how to target this in xpath? 


Thank you.


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Did you facing any error while upgrading or installing the module, If yes, please post the error.Or if you don't facing any issues it means the code that you have written perfectly. 

Please verify the inherited template id that you have chosen the correct template.
And also please verify that the id ='systee_address' that you provided is correct.


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 25
2168
2
ก.ย. 24
3301
0
ก.ค. 24
1213
1
ก.ค. 24
2048
1
พ.ค. 25
3279