Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
3655 Vues

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
Ignorer
Meilleure réponse

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
Ignorer
Auteur

thank you

Publications associées Réponses Vues Activité
0
sept. 18
4106
1
janv. 23
2919
3
août 20
5447
5
juin 20
7136
0
févr. 18
3047