Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
3698 Vistas

when I add a new field before res.partner street , I never get a label why?

I need a field before street with a label. How can I do that:


<field name="arch" type="xml">

<field name="street" position="before">

<field name="gio_shortcut" string="Kürzel"/>

</field>

</field>


Why I never get an label ?

Avatar
Descartar
Mejor respuesta

Try this,


<field name="arch" type="xml">
<xpath expr="/form/sheet/group/group/label[@for='street']" position="before">   
  <field name="gio_shortcut" string="Kürzel"/> 
</xpath

</field>

Avatar
Descartar
Autor

thank you

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 18
4150
1
ene 23
3028
3
ago 20
5545
5
jun 20
7268
0
feb 18
3126