diff --git a/stock_inventory_valuation_report/readme/CONTRIBUTORS.rst b/stock_inventory_valuation_report/readme/CONTRIBUTORS.rst index 0ef1f84..ccdaa15 100644 --- a/stock_inventory_valuation_report/readme/CONTRIBUTORS.rst +++ b/stock_inventory_valuation_report/readme/CONTRIBUTORS.rst @@ -1 +1,2 @@ * Pimolnat Suntian +* Abdou Nasser diff --git a/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py b/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py index c9152d8..031fb17 100644 --- a/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py +++ b/stock_inventory_valuation_report/reports/stock_inventory_valuation_report.py @@ -55,15 +55,15 @@ 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, + 'cost_currency_id': product.currency_id, 'standard_price': product.standard_price, '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