Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1223 Представления
    <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
2161
2
сент. 24
3287
0
июл. 24
1212
1
июл. 24
2046
1
мая 25
3271