Use always the immutable value from the cache

This prevents issues like #14433 from being missed.
This commit is contained in:
Cédric Krier
2025-12-19 09:39:32 +01:00
parent d9b73072df
commit aefd12642a
29 changed files with 63 additions and 90 deletions
+1 -1
View File
@@ -369,7 +369,7 @@ class Location(DeactivableMixin, tree(), ModelSQL, ModelView):
warehouse = warehouses[0].id
else:
warehouse = None
cls._default_warehouse_cache.set(None, warehouse)
warehouse = cls._default_warehouse_cache.set(None, warehouse)
return warehouse
@property