mirror of
https://github.com/OCA/stock-logistics-reporting.git
synced 2025-02-16 17:13:21 +02:00
[11.0][FIX] AttributeError: object has no attribute 'qty_at_date'
This commit is contained in:
@@ -55,7 +55,7 @@ class StockInventoryValuationReport(models.TransientModel):
|
||||
for product in products:
|
||||
line = {
|
||||
'display_name': product.display_name,
|
||||
'qty_at_date': product.qty_at_date,
|
||||
'qty_at_date': product.qty_available,
|
||||
'uom_id': product.uom_id,
|
||||
'currency_id': product.currency_id,
|
||||
'cost_currency_id': product.cost_currency_id,
|
||||
@@ -63,7 +63,7 @@ class StockInventoryValuationReport(models.TransientModel):
|
||||
'stock_value': product.stock_value,
|
||||
'cost_method': product.cost_method,
|
||||
}
|
||||
if product.qty_at_date != 0:
|
||||
if product.qty_available != 0:
|
||||
self.results += ReportLine.new(line)
|
||||
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user