diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 9ee01e8f251..034b412a35d 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -1222,7 +1222,7 @@ class AccountMoveLine(models.Model): """ Prepare the values used to create() an account.analytic.line upon validation of an account.move.line having an analytic account. This method is intended to be extended in other modules. """ - amount = (self.credit or 0.0) - (self.debit or 0.0) + amount = (self.debit or 0.0) - (self.credit or 0.0) return { 'name': self.name, 'date': self.date,