From 96b53126a2def32dbed0c04d5eaede21822bc5c0 Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Mon, 30 Mar 2015 11:45:04 +0200 Subject: [PATCH] [IMP] purchase: Purchase report uses the state of lines instead of purchases So canceled lines of not-canceled orders are correctly represented in the analysis. --- addons/purchase/report/purchase_report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/purchase/report/purchase_report.py b/addons/purchase/report/purchase_report.py index 4cf3f647340..05beea47441 100644 --- a/addons/purchase/report/purchase_report.py +++ b/addons/purchase/report/purchase_report.py @@ -69,7 +69,7 @@ class purchase_report(osv.osv): select min(l.id) as id, s.date_order as date, - s.state, + l.state, s.date_approve, s.minimum_planned_date as expected_date, s.dest_address_id, @@ -116,7 +116,7 @@ class purchase_report(osv.osv): l.product_id, t.categ_id, s.date_order, - s.state, + l.state, spt.warehouse_id, u.uom_type, u.category_id,