Fix has stock record (when fetch related): None vs Instance
Thanks for @maikhoepfel
Merge branch 'f/fix_has_stockrecord'