changeset f499958e6057 in modules/stock_lot:default
details: https://hg.tryton.org/modules/stock_lot?cmd=changeset;node=f499958e6057
description:
Add model, record and records attribute on Wizard
issue9421
review309861012
diffstat:
stock.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (14 lines):
diff -r e1572e0f2858 -r f499958e6057 stock.py
--- a/stock.py Sat Jun 06 10:30:12 2020 +0100
+++ b/stock.py Tue Jul 07 23:56:10 2020 +0200
@@ -253,9 +253,7 @@
def default_quantity(self, fields):
pool = Pool()
Product = pool.get('product.product')
- Inventory = pool.get('stock.inventory')
- context = Transaction().context
- inventory = Inventory(context['active_id'])
+ inventory = self.record
if isinstance(self.search.search, Product):
product = self.search.search
if product.lot_is_required(