This field label is split over three lines:
I have tried:
<xpath expr="//field[@name='x_comments']" position="move"/>
This isn't doing anything.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
This field label is split over three lines:
I have tried:
<xpath expr="//field[@name='x_comments']" position="move"/>
This isn't doing anything.
Take a look for example at the Receipt Reminder in the Contact form: https://github.com/odoo/odoo/blob/17.0/addons/purchase/views/res_partner_views.xml#L11
I.e. inside a group node you'd have something like this:
<group name="purchase" position="inside">
<div name="receipt_reminder" colspan="2" class="o_checkbox_optional_field">
<label for="receipt_reminder_email"/>
<field name="receipt_reminder_email"/>
</div>
</group>
A xpath position="move" may assist you in achieving your goal - but, it on its own doesn't do anything but moving X to Y. The magic still would need to happen at Y - i.e. an appropriate DOM structure that renders the field accordingly.
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký