Fix for #1273 on 1.4 branch, cannot open vendor invoice, regression from...

... #1260