From b88cb12e1789a953a6331fa8e872e3308b6a558a Mon Sep 17 00:00:00 2001 From: ??ngel ??lvarez Date: Sun, 4 Oct 2015 10:06:08 +0200 Subject: [PATCH] lazy load of lot --- stock.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stock.py b/stock.py index 2cc66ea..031d919 100644 --- a/stock.py +++ b/stock.py @@ -185,6 +185,9 @@ class Move: Bool(Eval('effective_date', False)), Eval('effective_date'), Eval('planned_date')) + + cls.lot.loading = 'lazy' + for fname in ('state', 'to_location_allow_expired', 'effective_date', 'planned_date'): if fname not in cls.lot.depends: