İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
80 Görünümler

This field label is split over three lines:


I have tried:

<xpath expr="//field[@name='x_comments']" position="move"/> 

This isn't doing anything.

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç