Skip to content

Commit

Permalink
Fix stock_release_channel_auto_release backward port to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
TDu committed Feb 9, 2023
1 parent 1ff75e0 commit 88e163b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stock_release_channel_auto_release/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Stock Release Channel Auto Release",
"summary": """
Add an automatic release mode to the release channel""",
"version": "16.0.1.0.0",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/wms",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def write(self, vals):
res = super().write(vals)
release_mode = vals.get("release_mode")
if release_mode == "auto":
self.invalidate_recordset(["is_auto_release_allowed"])
self.invalidate_cache(["is_auto_release_allowed"])
self.auto_release_all()
return res

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def setUpClass(cls):
cls._update_qty_in_location(cls.loc_bin1, cls.product2, 1000.0)

# invalidate cache for computed fields bases on qty in stock
cls.env.invalidate_all()
cls.env["product.product"].invalidate_cache()

@contextmanager
def assert_release_job_enqueued(self, channel):
Expand Down

0 comments on commit 88e163b

Please sign in to comment.