Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Can a field label be shown on a single line instead of being split over several?

Avatar
odoo
Avatar
Discard
1 Answer
0
Avatar
odoo
Best Answer

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.

Avatar
Discard