Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1211 Prikazi
    <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
Opusti
Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
2
jun. 25
2159
2
sep. 24
3286
0
jul. 24
1211
1
jul. 24
2045
1
maj 25
3268