Fix for #1273 on 1.4 branch, cannot open vendor invoice, regression from #1260
Merge pull request #507 from freelock/1.4

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