fix: update receipt status and state during action_recompute_state execution

This commit is contained in:
Suherdy Yacob 2026-05-08 17:05:31 +07:00
parent 9c8a1dc96c
commit 48d5fb9662

View File

@ -274,6 +274,8 @@ class HrExpenseSheet(models.Model):
def action_recompute_state(self):
""" Public wrapper to allow triggering recompute from a button. """
self.expense_line_ids._update_receipt_received_status()
self._compute_receipt_status()
self._compute_state()
self._compute_from_account_move_ids()