refactor: remove redundant manual balance check in account payment move creation
This commit is contained in:
parent
ba8a9a4928
commit
04e6bc1496
@ -92,8 +92,7 @@ class AccountPayment(models.Model):
|
|||||||
}
|
}
|
||||||
payment.env['account.move.line'].with_context(skip_expense_lock=True, check_move_validity=False).create(line_vals)
|
payment.env['account.move.line'].with_context(skip_expense_lock=True, check_move_validity=False).create(line_vals)
|
||||||
|
|
||||||
# Force re-balance check
|
# Odoo 17 handles balance checks automatically; no need to call _check_balanced() manually
|
||||||
payment.move_id._check_balanced()
|
|
||||||
|
|
||||||
def _synchronize_from_moves(self, changed_fields):
|
def _synchronize_from_moves(self, changed_fields):
|
||||||
# 1. Standard sync with jumper support
|
# 1. Standard sync with jumper support
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user