Converted account report old to new api

Hello

I have converted postgres report old to new API.

thanks.
Check the new api of res_currency.compute(), it has changed!!!