I would like to make a many2one field invisible when called by 'add an item' in the One2many view, for exemple :
parent view :
Name = 'this is One2many field'
value 1 =
value 2 : add an item
child view :
Parent Name = 'this is Many2one field'
value 1 = ....
and when i click on 'add an item' i'd like to get the folowing view :
child view :
value 1 = ...
I tried setting attrs="{'invisible':[('parent_id', '!=', False)]}"
in the child view but this is always true because the parent fields are not created yet. Any idea ?