Add model, record and records attribute on Wizard

issue9421
review309861012
This commit is contained in:
Cédric Krier
2020-07-07 23:56:10 +02:00
parent 3cec1d8489
commit acea1eb7d5
+1 -3
View File
@@ -253,9 +253,7 @@ class InventoryCount(metaclass=PoolMeta):
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(