issue #20734: Tweak inventory detail relationship.