Default values for One2Many field

You can not use ids as default value for One2Many because by nature the content of One2Many is new records. So you must return a list of dictionaries which contains the default value for each new line.

But I think you should reconsider using default value for such case because it can have side effect when creating parent record from different place. You can use a instance button or restrict the default value for a specific action window using a context.

1 Like