Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4783 มุมมอง

Hello everybody;

May anyone help me know how can i create a new control create in the tree of a field one2many ?

Thanks a lot in advance.

Best regards.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

<control>
    <create string="Add Item" context="default_my_field: 'value'"/>
<control>

so when you Add Item it will set a default value to newly create a line. In odoo use of control is very limited (for add a section and note). basically it's used for display sale order line as section or note as per control-click.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ย. 20
37
1
ก.ย. 19
8988
tree control attribute แก้ไขแล้ว
1
ก.ค. 19
10714
1
มี.ค. 19
4517
1
ก.ค. 19
5849