Pyflakes fixes

This commit is contained in:
Albert Cervera i Areny 2023-10-11 10:53:59 +02:00
parent 9a408a232f
commit 887f4eda28
3 changed files with 0 additions and 6 deletions

View File

@ -466,7 +466,6 @@ class Animal(ModelSQL, ModelView, AnimalMixin):
It returns a dictionary with values to create stock.lot It returns a dictionary with values to create stock.lot
""" """
pool = Pool() pool = Pool()
Lot = pool.get('stock.lot')
Specie = pool.get('farm.specie') Specie = pool.get('farm.specie')
if not animal_vals: if not animal_vals:
@ -480,7 +479,6 @@ class Animal(ModelSQL, ModelView, AnimalMixin):
specie=specie.rec_name, specie=specie.rec_name,
)) ))
lot_tmp = Lot(product=product)
res = { res = {
'number': animal_vals['number'], 'number': animal_vals['number'],
'product': product.id, 'product': product.id,

View File

@ -440,7 +440,6 @@ class AnimalGroup(ModelSQL, ModelView, AnimalMixin):
It returns a dictionary with values to create stock.lot It returns a dictionary with values to create stock.lot
""" """
pool = Pool() pool = Pool()
Lot = pool.get('stock.lot')
Specie = pool.get('farm.specie') Specie = pool.get('farm.specie')
if not group_vals: if not group_vals:

View File

@ -134,12 +134,9 @@ class ReclassficationEvent(AbstractEvent):
Prepare values to create the new stock.lot for the reclassificated Prepare values to create the new stock.lot for the reclassificated
animal. It returns a dictionary with values to create stock.lot animal. It returns a dictionary with values to create stock.lot
""" """
pool = Pool()
Lot = pool.get('stock.lot')
if not self.animal: if not self.animal:
return {} return {}
product = self.reclassification_product product = self.reclassification_product
lot_tmp = Lot(product=product)
# TODO Improve the manage of animal/lot number, currently using # TODO Improve the manage of animal/lot number, currently using
# the animal number to create the new lot # the animal number to create the new lot
res = { res = {