@@ -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
|
||||
|
||||
Reference in New Issue
Block a user