Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
1237 Visninger
    <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.


Avatar
Kassér
Bedste svar

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
jun. 25
2169
2
sep. 24
3304
0
jul. 24
1214
1
jul. 24
2048
1
maj 25
3283