This commit is contained in:
Raimon Esteve 2019-06-05 23:59:01 +02:00
parent ee94ffb84b
commit 6bff02ec16
3 changed files with 6 additions and 7 deletions

View file

@ -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,

View file

@ -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']

View file

@ -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: