跳至內容
選單
此問題已被標幟
1 回覆
3635 瀏覽次數

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 ?

頭像
捨棄
最佳答案

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>

頭像
捨棄
作者

thank you

相關帖文 回覆 瀏覽次數 活動
0
9月 18
4083
1
1月 23
2907
3
8月 20
5434
5
6月 20
7119
0
2月 18
3032