Pyflakes fixes
This commit is contained in:
parent
9a408a232f
commit
887f4eda28
|
@ -466,7 +466,6 @@ class Animal(ModelSQL, ModelView, AnimalMixin):
|
|||
It returns a dictionary with values to create stock.lot
|
||||
"""
|
||||
pool = Pool()
|
||||
Lot = pool.get('stock.lot')
|
||||
Specie = pool.get('farm.specie')
|
||||
|
||||
if not animal_vals:
|
||||
|
@ -480,7 +479,6 @@ class Animal(ModelSQL, ModelView, AnimalMixin):
|
|||
specie=specie.rec_name,
|
||||
))
|
||||
|
||||
lot_tmp = Lot(product=product)
|
||||
res = {
|
||||
'number': animal_vals['number'],
|
||||
'product': product.id,
|
||||
|
|
|
@ -440,7 +440,6 @@ class AnimalGroup(ModelSQL, ModelView, AnimalMixin):
|
|||
It returns a dictionary with values to create stock.lot
|
||||
"""
|
||||
pool = Pool()
|
||||
Lot = pool.get('stock.lot')
|
||||
Specie = pool.get('farm.specie')
|
||||
|
||||
if not group_vals:
|
||||
|
|
|
@ -134,12 +134,9 @@ class ReclassficationEvent(AbstractEvent):
|
|||
Prepare values to create the new stock.lot for the reclassificated
|
||||
animal. It returns a dictionary with values to create stock.lot
|
||||
"""
|
||||
pool = Pool()
|
||||
Lot = pool.get('stock.lot')
|
||||
if not self.animal:
|
||||
return {}
|
||||
product = self.reclassification_product
|
||||
lot_tmp = Lot(product=product)
|
||||
# TODO Improve the manage of animal/lot number, currently using
|
||||
# the animal number to create the new lot
|
||||
res = {
|
||||
|
|
Loading…
Reference in New Issue