Odoo Help


Qweb Xpath of child node

on 2/1/16, 1:12 AM 772 views

Hi all,

Here i want insert a <li> item inside existing <ul>.

I tried this,


<ul id="top_menu">

  <xpath expr="//ul[@id='top_menu']/li[1]" position="after">
I got my new item "100" at last item of <ul>. but i need it in after 1 item.

Thanks in advance..

You could also use "//ul" position="inside"

on 2/1/16, 1:50 AM

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 2/1/16, 4:12 AM

I've tested your code, and it works fine with me. As expected ....

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/1/16, 1:12 AM
Seen: 772 times
Last updated: 2/1/16, 4:12 AM