'O2M relating to an existing record (update) force a LINK_TO as well'

def test_link(self):

    id1 = self.env['export.one2many.child'].create({'str': 'Bf', 'value': 109}).id
    id2 = self.env['export.one2many.child'].create({'str': 'Me', 'value': 262}).id
    result = self.import_(['const', 'value/.id'], [['42', str(id1)], ['', str(id2)]])
    self.assertFalse(result['messages'])
    self.assertEqual(len(result['ids']), 1)
    [b] = self.browse()
    self.assertEqual(b.const, 42)
    self.assertEqual(values(b.value), [109, 262])
    self.assertEqual(values(b.value, field='parent_id'), [b, b])
