Skip to content

Commit

Permalink
[BUG] preprocess cache invalidation seems to make updates impossible
Browse files Browse the repository at this point in the history
  • Loading branch information
IJOL committed Sep 25, 2024
1 parent 090b773 commit 72e0710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sale_triple_discount/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def triple_discount_preprocess(self):
this method is called multiple times.
Updating the cache provides consistency through re-computations."""
prev_values = dict()
self.invalidate_cache(fnames=self._discount_fields(), ids=self.ids)
# self.invalidate_cache(fnames=self._discount_fields(), ids=self.ids)
for line in self:
prev_values[line] = {
fname: line[fname] for fname in self._discount_fields()
Expand Down

0 comments on commit 72e0710

Please sign in to comment.