diff --git a/__init__.py b/__init__.py index 605ef2a..179c892 100644 --- a/__init__.py +++ b/__init__.py @@ -1,6 +1,5 @@ -#The COPYRIGHT file at the top level of this repository contains the full -#copyright notices and license terms. - +# The COPYRIGHT file at the top level of this repository contains the full +# copyright notices and license terms. from trytond.pool import Pool from .stock import * diff --git a/stock.py b/stock.py index f1d5351..3da278f 100644 --- a/stock.py +++ b/stock.py @@ -104,7 +104,7 @@ class Lot: date = context['stock_move_date'] elif context.get('stock_date_end'): date = context['stock_date_end'] - unused, op, operand = domain + _, op, operand = domain search_expired = (op == '=' and operand or op == '!=' and not operand) if search_expired: @@ -189,10 +189,10 @@ class Move: if fname not in cls.lot.depends: cls.lot.depends.append(fname) cls._error_messages.update({ - 'expired_lot_invalid_destination': 'You are trying to do the ' + 'expired_lot_invalid_destination': ('You are trying to do the ' 'Stock Move "%(move)s" but its Lot "%(lot)s" is expired and ' 'the Destination Location "%(to_location)s" doesn\'t accept ' - 'expired lots.', + 'expired lots.'), }) @fields.depends('to_location')