mirror of
https://github.com/NaN-tic/trytond-stock_number_of_packages.git
synced 2023-12-14 07:52:52 +01:00
Add lot compute expected number of package in on_change_with
This commit is contained in:
parent
3d646e5913
commit
d5ff85b0ee
|
@ -128,7 +128,7 @@ class InventoryLine(StockPackagedMixin, metaclass=PoolMeta):
|
|||
return 0
|
||||
|
||||
@fields.depends('inventory', '_parent_inventory.date',
|
||||
'_parent_inventory.location', 'product', 'package',
|
||||
'_parent_inventory.location', 'product', 'lot', 'package',
|
||||
methods=['_compute_expected_number_of_packages'])
|
||||
def on_change_with_expected_number_of_packages(self):
|
||||
if not self.inventory or not self.product:
|
||||
|
|
Loading…
Reference in a new issue