Skip to content

Commit

Permalink
Merge PR #536 into 16.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 4b77b0b + 6c81596 commit 99c47bd
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/536.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 99c47bd

Please sign in to comment.