Fix bug for PGSQL Migration 3.4->3.5
Fix bug on create invoice from contract
Merge pull request #1069 from FHenry/develop

Fix bug for PGSQL Migration 3.4->3.5