Skip to Content
Menu
This question has been flagged
1 Atsakyti
4778 Rodiniai

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.

Portretas
Atmesti
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.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
rugs. 20
37
1
rugs. 19
8983
1
liep. 19
10708
1
kov. 19
4507
1
liep. 19
5841