Pyflakes fixes.

This commit is contained in:
Albert Cervera i Areny 2020-12-05 01:11:41 +01:00
parent b5c54515a2
commit 4a4ddd878e
1 changed files with 5 additions and 7 deletions

12
bom.py
View File

@ -1,16 +1,13 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.model import ModelView, ModelSQL, DeactivableMixin, fields, Unique
from trytond.wizard import Wizard, StateView, Button
from trytond.transaction import Transaction
from trytond.pyson import Eval
from trytond.pool import PoolMeta, Pool
from trytond.model import fields
from trytond.pool import PoolMeta
from trytond.i18n import gettext
from trytond.exceptions import UserError
__all__ = ['BOMInput']
class BOMInput(metaclass=PoolMeta):
__name__ = 'production.bom.input'
use_lot = fields.Boolean('Use Lot')
@ -27,4 +24,5 @@ class BOMInput(metaclass=PoolMeta):
('use_lot', '=', True)
])
if len(inputs) > 1:
raise UserError(gettext('production_output_lot.unique_use_lot_in_bom'))
raise UserError(
gettext('production_output_lot.unique_use_lot_in_bom'))