[FIX] user from PO view and request
bzr revid: nel@tinyerp.com-20100414094523-j2kzb1r8kukhu9tg
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user