[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.
This commit is contained in:
Guewen Baconnier 2015-03-30 11:45:04 +02:00 committed by Josse Colpaert
parent e2c9699cfc
commit 96b53126a2
1 changed files with 2 additions and 2 deletions

View File

@ -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,