[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:
parent
e2c9699cfc
commit
96b53126a2
|
@ -69,7 +69,7 @@ class purchase_report(osv.osv):
|
||||||
select
|
select
|
||||||
min(l.id) as id,
|
min(l.id) as id,
|
||||||
s.date_order as date,
|
s.date_order as date,
|
||||||
s.state,
|
l.state,
|
||||||
s.date_approve,
|
s.date_approve,
|
||||||
s.minimum_planned_date as expected_date,
|
s.minimum_planned_date as expected_date,
|
||||||
s.dest_address_id,
|
s.dest_address_id,
|
||||||
|
@ -116,7 +116,7 @@ class purchase_report(osv.osv):
|
||||||
l.product_id,
|
l.product_id,
|
||||||
t.categ_id,
|
t.categ_id,
|
||||||
s.date_order,
|
s.date_order,
|
||||||
s.state,
|
l.state,
|
||||||
spt.warehouse_id,
|
spt.warehouse_id,
|
||||||
u.uom_type,
|
u.uom_type,
|
||||||
u.category_id,
|
u.category_id,
|
||||||
|
|
Loading…
Reference in New Issue