Just noticed that even the original output makes it so that if the field in question is a one2many only the first entry of the one2many is put in the context (my patch does not fix this as this is an unrelated issue)
Just noticed that even the original output makes it so that if the field in question is a one2many only the first entry of the one2many is put in the context (my patch does not fix this as this is an unrelated issue)