Skip to content

Commit

Permalink
account: add missing depends
Browse files Browse the repository at this point in the history
Before this commit,_compute_payment_reference had no depends,
which caused it to not compute the structured
payment reference in some situations.
  • Loading branch information
sbidoul authored and rousseldenis committed Jul 2, 2024
1 parent fd7a08d commit 146c83b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/account/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ def _auto_init(self):
# COMPUTE METHODS
# -------------------------------------------------------------------------

@api.depends('state')
def _compute_payment_reference(self):
for move in self.filtered(lambda m: (
m.state == 'posted'
Expand Down

0 comments on commit 146c83b

Please sign in to comment.