Skip to content
Permalink
Browse files

[FIX] account: don't mess the invoice status

Since the invoice validation is well separated from the account entries creation (and made before), the chatter was showing too much status change upon an invoice validation.
This commit makes sure we never consider an invoice paid when its move hasn't been created yet.

closes #31100
  • Loading branch information...
qdp-odoo committed Feb 14, 2019
1 parent 01c159f commit 10551f25aba91bf1f59e142aff75ab8e914b5442
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/account/models/account_invoice.py
@@ -118,7 +118,7 @@ def _compute_residual(self):
self.residual_signed = abs(residual) * sign
self.residual = abs(residual)
digits_rounding_precision = self.currency_id.rounding
if float_is_zero(self.residual, precision_rounding=digits_rounding_precision):
if self.move_id and float_is_zero(self.residual, precision_rounding=digits_rounding_precision):
self.reconciled = True
else:
self.reconciled = False

0 comments on commit 10551f2

Please sign in to comment.
You can’t perform that action at this time.