lazy load of lot

This commit is contained in:
??ngel ??lvarez 2015-10-04 10:06:08 +02:00
parent 1a8f2f2ee7
commit b88cb12e17
1 changed files with 3 additions and 0 deletions

View File

@ -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: