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

i m beginner in odoo and I have form like below and i want to add a label of the two groups

<form string="New Expedition">
<sheet>
<group>
<group>
<field name="sender_name"/>
<field name="sender_lastname"/>
<field name="sender_phone"/>
<field name="sender_identity"/>
<field name="sender_city"/>
<field name="sender_address"/>
</group>
<group>
<field name="receiver_name"/>
<field name="receiver_lastname"/>
<field name="receiver_phone"/>
<field name="receiver_identity"/>
<field name="receiver_city"/>
<field name="receiver_address"/>
</group>
</group>
<footer>
<button name="submit" type="object" string="Submit" class="oe_right oe_button_box"/>
</footer>
</sheet>
</form>
頭像
捨棄
最佳答案

Hi,

Give it like this,

<group string="ABCD">
<field name="sender_name"/>
<field name="sender_lastname"/>
<field name="sender_phone"/>
<field name="sender_identity"/>
<field name="sender_city"/>
<field name="sender_address"/>
</group>
<group string="LMNOP">
<field name="receiver_name"/>
<field name="receiver_lastname"/>
<field name="receiver_phone"/>
<field name="receiver_identity"/>
<field name="receiver_city"/>
<field name="receiver_address"/>
</group>

If you are a beginner, have a look at this playlist, which will be helpful for you: Odoo Development Tutorials

Thanks

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
11月 18
5330
1
4月 21
11782
2
5月 18
8376
0
8月 25
3
1
7月 25
2685