Removed commented code from delete method

This commit is contained in:
Sergi Carol 2017-03-24 12:38:55 +01:00
parent 598082545e
commit 93adaf9ca4
1 changed files with 2 additions and 2 deletions

View File

@ -482,8 +482,8 @@ class Animal(ModelSQL, ModelView, AnimalMixin):
Lot = pool.get('stock.lot')
lots = [a.lot for a in animals if a.lot is not None]
# if lots:
# Lot.write(lots, {'animal': None})
if lots:
Lot.write(lots, {'animal': None})
result = super(Animal, cls).delete(animals)
if lots:
Lot.delete(lots)