Skip to Content
Menú
This question has been flagged
1 Respondre
4666 Vistes

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.

Avatar
Descartar
Best Answer

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.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
0
de set. 20
37
1
de set. 19
8799
1
de jul. 19
10527
1
de març 19
4374
1
de jul. 19
5758