[MOD] Small changes in project issue and purchase dashboard
bzr revid: vir@tinyerp.com-20100407055942-6v8u0ocm8a1lpv9f
This commit is contained in:
committed by
Vir (Open ERP)
parent
859d60a716
commit
3a13731d07
@@ -30,8 +30,8 @@
|
||||
<action colspan="4" height="220" name="%(purchase_waiting)d" string="Purchase Order in Waiting" width="510"/>
|
||||
</child1>
|
||||
<child2>
|
||||
<action colspan="4" height="220" name="%(purchase.action_purchase_order_qty_amount_all)d" string="Total Qty and Amount by month" width="510"/>
|
||||
<action colspan="4" height="220" name="%(purchase.action_purchase_order_by_user_all)d" string="Total Orders by User per month" width="510"/>
|
||||
<action colspan="4" height="220" name="%(purchase.action_purchase_order_qty_amount_all)d" string="Total Qty and Amount by month" />
|
||||
<action colspan="4" height="220" name="%(purchase.action_purchase_order_by_user_all)d" string="Total Orders by User per month" />
|
||||
</child2>
|
||||
</hpaned>
|
||||
</form>
|
||||
|
||||
@@ -119,6 +119,7 @@ class task_by_days(osv.osv):
|
||||
_auto = False
|
||||
_columns = {
|
||||
'day': fields.char('Day', size=128, required=True),
|
||||
'state': fields.selection([('draft', 'Draft'),('open', 'In Progress'),('pending', 'Pending'), ('cancelled', 'Cancelled'), ('done', 'Done')], 'State', readonly=True, required=True),
|
||||
'total_task': fields.float('Total tasks', readonly=True)
|
||||
}
|
||||
_order = 'day desc'
|
||||
@@ -129,11 +130,12 @@ class task_by_days(osv.osv):
|
||||
select
|
||||
min(pt.id) as id,
|
||||
to_char(pt.create_date, 'YYYY-MM-DD') as day,
|
||||
count(*) as total_task
|
||||
count(*) as total_task,
|
||||
pt.state as state
|
||||
from
|
||||
project_task as pt
|
||||
group by
|
||||
to_char(pt.create_date, 'YYYY-MM-DD')
|
||||
to_char(pt.create_date, 'YYYY-MM-DD'),pt.state
|
||||
)
|
||||
""")
|
||||
task_by_days()
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Project vs remaining hours" type="bar">
|
||||
<field name="project"/>
|
||||
<field name="state" group="True"/>
|
||||
<field name="remaining_hours" operator="+"/>
|
||||
</graph>
|
||||
</field>
|
||||
@@ -109,6 +110,7 @@
|
||||
<tree string="Task By Days" >
|
||||
<field name="day"/>
|
||||
<field name="total_task"/>
|
||||
<field name="state"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
@@ -120,6 +122,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Task By Days" type="bar">
|
||||
<field name="day"/>
|
||||
<field name="state" group="True"/>
|
||||
<field name="total_task" operator="+"/>
|
||||
</graph>
|
||||
</field>
|
||||
|
||||
@@ -139,8 +139,8 @@
|
||||
<field name="type">graph</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Total Orders by User per month" type="bar">
|
||||
<field name="name"/>
|
||||
<field name="month" group="True"/>
|
||||
<field name="name" />
|
||||
<field name="month" group="True" />
|
||||
<field name="nbr" operator="+"/>
|
||||
</graph>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user