[IMP]: Improvement in project dashboard and fix the bug of purchase dashboard.
bzr revid: rch@rch-desktop-20100409132246-kpixrekhyph0xs4x
This commit is contained in:
parent
866bc67d15
commit
092ee13ea2
|
@ -165,6 +165,8 @@ class task_by_days(osv.osv):
|
|||
pt.project_id
|
||||
from
|
||||
project_task as pt
|
||||
where
|
||||
(to_date(to_char(pt.create_date, 'YYYY-MM-dd'),'YYYY-MM-dd') > (CURRENT_DATE-15))
|
||||
group by
|
||||
to_char(pt.create_date, 'YYYY-MM-DD'),pt.state,pt.project_id
|
||||
)
|
||||
|
|
|
@ -126,7 +126,7 @@ class purchase_order_qty_amount(osv.osv):
|
|||
min(id) as id,
|
||||
to_char(create_date, 'MM') as month,
|
||||
sum(product_qty) as total_qty,
|
||||
sum(price_unit) as total_amount
|
||||
sum(price_unit*product_qty) as total_amount
|
||||
from
|
||||
purchase_order_line
|
||||
where
|
||||
|
|
Loading…
Reference in New Issue