I know I can specify the default value for a field in a one2many widget with tree view customizing the create control like this
<control>
<create string="Add a red one" context="{'default_color': 'red'}" /> <create string="Add a blue one" context="{'default_color': 'blue'}" /> </control>Can I do the same using a value from a field in the "header", I tried this one but doesn't work
<control>
<create string="Add one with color from an header field"
context="{'default_color': color_field}"
/> </control>