-
Hi there guys. I remember there was a way to do this but I can't remember where I saw it... The point is I have a So, how to get the position of the Particularly, I want to find this |
Beta Was this translation helpful? Give feedback.
Answered by
yajo
Sep 7, 2023
Replies: 1 comment 1 reply
-
Ha! Found it! Well, for the sake of the next one coming to this (including my future self), this was the solution: <template id="report_delivery_document" inherit_id="stock.report_delivery_document">
<xpath expr="//table[@name='stock_move_table']/tbody//td[
1 + count(
//table[@name='stock_move_table']
//th[@name='th_sm_ordered']
/preceding-sibling::*
)
]" position="inside">
<!-- Yay! 🎉 -->
</xpath>
</template> Inspiration: https://stackoverflow.com/a/227080/1468388 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
yajo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ha! Found it!
Well, for the sake of the next one coming to this (including my future self), this was the solution:
Inspiration: https://stackoverflow.com/a/227080/1468388