Use NamedTemporaryFile instead of file and of deprecated mktemp. That way we ensure 2 files created at the exact same time will have a unique name
Fix incompatibility with Windows using tempfile.
[FIX] Fix account_budget name unicode error

Fix bug https://bugs.launchpad.net/openobject-addons/+bug/1292245:
    Invoice budget's warning when crossovered budget lines are not related
    to any account will cause a UnicodeEncodeError if the account has
    unicode-only characters such as é.

Make sure that the budget name is a unicode to avoid UnicodeEncodeError
which happens when budget name contains UTF-8 characters.

Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
[IMP] account: support for partial reconciliation in aged partner balance

When computing the aged partner balance, the partial reconciliation was not
handled correctly. The reconciled amount should be removed from the original
remaining amount instead of displaying two entries in the journal.
eg: if invocie of 1000 in period 1 and payment of 300 in period 2, should only
display +700 in period 1 instead of two entries
Merge pull request #124 from odoo-dev/7.0-aged-partner-partial-mat

[IMP] account: support for partial reconciliation in aged partner balance
    
When computing the aged partner balance, the partial reconciliation was not handled correctly. The reconciled amount should be removed from the original remaining amount instead of displaying two entries in the journal.
eg: if invocie of 1000 in period 1 and payment of 300 in period 2, should only display +700 in period 1 instead of two entries
Merge pull request #14 from savoirfairelinux/7.0-crossovered_unicode_1292245

[FIX] Fix account_budget name unicode error (7.0 lp:1292245)
Merge pull request #55 from yvaucher/7.0-fix-1319095

report_webkit: use safer and non-deprecated methods to handle temporary files