lazy load of lot
This commit is contained in:
parent
1a8f2f2ee7
commit
b88cb12e17
3
stock.py
3
stock.py
|
@ -185,6 +185,9 @@ class Move:
|
||||||
Bool(Eval('effective_date', False)),
|
Bool(Eval('effective_date', False)),
|
||||||
Eval('effective_date'),
|
Eval('effective_date'),
|
||||||
Eval('planned_date'))
|
Eval('planned_date'))
|
||||||
|
|
||||||
|
cls.lot.loading = 'lazy'
|
||||||
|
|
||||||
for fname in ('state', 'to_location_allow_expired', 'effective_date',
|
for fname in ('state', 'to_location_allow_expired', 'effective_date',
|
||||||
'planned_date'):
|
'planned_date'):
|
||||||
if fname not in cls.lot.depends:
|
if fname not in cls.lot.depends:
|
||||||
|
|
Loading…
Reference in New Issue