Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1212 Zobrazení
    <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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvn 25
2160
2
zář 24
3286
0
čvc 24
1212
1
čvc 24
2046
1
kvě 25
3269