diff --git a/account_usability/account.py b/account_usability/account.py index 8f46082..2bf33d0 100644 --- a/account_usability/account.py +++ b/account_usability/account.py @@ -418,9 +418,9 @@ class AccountMoveLine(models.Model): if float_compare( amount_company_currency, 0, precision_digits=precision) == -1: - self.debit = amount_company_currency * -1 + self.credit = amount_company_currency * -1 else: - self.credit = amount_company_currency + self.debit = amount_company_currency def show_account_move_form(self): self.ensure_one()