Skip to content

Commit

Permalink
Merge PR #535 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by huguesdk
  • Loading branch information
github-grap-bot committed Nov 1, 2024
2 parents c894f16 + 54c7269 commit 8bc7bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion shift/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class ResPartner(models.Model):
store=True,
)

@api.depends("cooperative_status_ids")
@api.depends("cooperative_status_ids.can_shop")
def _compute_can_shop(self):
"""
Shopping authorisation may vary on the can_shop status of the
Expand Down
2 changes: 2 additions & 0 deletions shift/readme/newsfragments/535.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Correctly recompute ``can_shop`` on partner when the value changes in the
``cooperative_status``.

0 comments on commit 8bc7bfd

Please sign in to comment.