mirror of
https://github.com/NaN-tic/trytond-stock_number_of_packages.git
synced 2023-12-14 07:52:52 +01:00
pyflakes
This commit is contained in:
parent
ee94ffb84b
commit
6bff02ec16
|
@ -1,10 +1,9 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from decimal import Decimal
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.pyson import Eval
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
from trytond.modules.stock_number_of_packages.move import StockMixin
|
||||
|
||||
__all__ = ['Template', 'Product']
|
||||
|
@ -59,10 +58,10 @@ class Product(StockMixin, metaclass=PoolMeta):
|
|||
|
||||
@classmethod
|
||||
def _quantity_context(cls, name):
|
||||
context = super(Product, cls)._quantity_context(name)
|
||||
if name.endswith('number_of_packages'):
|
||||
context['number_of_packages'] = True
|
||||
return context
|
||||
return super(Product, cls)._quantity_context(name)
|
||||
return context
|
||||
|
||||
@classmethod
|
||||
def _get_quantity(cls, records, name, location_ids,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
__all__ = ['ShipmentIn', 'ShipmentOut', 'ShipmentOutReturn']
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[tryton]
|
||||
version=5.1.0
|
||||
version=5.3.0
|
||||
depends:
|
||||
product_pack
|
||||
stock
|
||||
stock_inventory_expected_quantity
|
||||
extras_depend:
|
||||
stock_lot
|
||||
stock_lot
|
||||
stock_inventory_product_category
|
||||
stock_lot_quantity
|
||||
xml:
|
||||
|
|
Loading…
Reference in a new issue