Debit and credit entries are made wrongly when any payment or Receipt entries is done Eg: For payemnt transaction in Double Entry system i) For Bank account amount should be in credit side and for purpose account the Amount should be in Debit side
For Receipt transaction in Double Entry system i) For Bank account amount should be in Debit side and for purpose account the Amount should be in Credit side
But this happens Vise-vesa in OpenERP
May be you should check the accounting journal set up configuration:)