Pyflakes fixes

This commit is contained in:
Albert Cervera i Areny 2023-10-11 10:38:52 +02:00
parent 7116fe34ef
commit bb9076f9ae
2 changed files with 1 additions and 4 deletions

View file

@ -44,12 +44,10 @@ class Product(metaclass=PoolMeta):
is_purchase = False
is_stock = False
try:
Purchase = pool.get('purchase.purchase')
is_purchase = True
except KeyError:
pass
try:
Location = pool.get('stock.location')
is_stock = True
except KeyError:
pass

View file

@ -1,8 +1,7 @@
# This file is part product_cost_invisible module for Tryton.
# The COPYRIGHT file at the top level of this repository contains
# the full copyright notices and license terms.
from trytond.pool import PoolMeta, Pool
from trytond.transaction import Transaction
from trytond.pool import PoolMeta
from trytond.modules.product_cost_invisible.product import PYSON_STATEMENT