Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
105 Vizualizări

This field label is split over three lines:


I have tried:

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

This isn't doing anything.

Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează