[FIX] pep8
[FIX] account_partner_required: constraint also depends on debit and credit