[FIX] user from PO view and request

bzr revid: nel@tinyerp.com-20100414094523-j2kzb1r8kukhu9tg
This commit is contained in:
nel@tinyerp.com
2010-04-14 11:45:23 +02:00
parent f31a31a0d4
commit 9da45d3b15
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -116,7 +116,6 @@ class purchase_order_qty_amount(osv.osv):
('07','July'), ('08','August'), ('09','September'), ('10','October'), ('11','November'), ('12','December')],'Month',readonly=True),
'total_qty' : fields.float('Total Qty'),
'total_amount' : fields.float('Total Amount'),
'user_id':fields.many2one('res.users', 'Responsible', readonly=True),
}
def init(self, cr):
@@ -127,14 +126,13 @@ class purchase_order_qty_amount(osv.osv):
min(id) as id,
to_char(create_date, 'MM') as month,
sum(product_qty) as total_qty,
create_uid as user_id,
sum(price_unit*product_qty) as total_amount
from
purchase_order_line
where
to_char(create_date,'YYYY') = to_char(current_date,'YYYY')
group by
to_char(create_date, 'MM'), create_uid
to_char(create_date, 'MM')
)
""")
@@ -141,7 +141,6 @@
<field name="month"/>
<field name="total_qty" />
<field name="total_amount"/>
<field name="user_id"/>
</tree>
</field>
</record>