Skip to Content
Menu
This question has been flagged
1 Reply
7900 Views

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>
Avatar
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
2
Nov 18
4168
1
Apr 21
10356
2
May 18
7110
1
Jul 23
1327
0
May 23
1492