[IMP] Purchase:Improvement in Purchase order in pad

bzr revid: aag@tinyerp.co.in-20101206123539-jfp416d9xbjdrhlq
This commit is contained in:
aag (OpenERP)
2010-12-06 18:05:39 +05:30
parent 279bd752e3
commit 6bd5b4fb38
2 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -189,7 +189,7 @@
<separator orientation="vertical"/>
<filter icon="terp-emblem-important" name="exception" string="Exception" domain="[('state','in',('except_invoice','except_picking'))]" separator="1" help="Purchase order which are in the exception state"/>
<separator orientation="vertical"/>
<filter icon="terp-gtk-go-back-rtl" string="To be Invoiced" domain="[('invoiced','=',1)]" separator="1" help="Purchase order to be invoiced"/>
<filter icon="terp-gtk-go-back-rtl" string="No Invoice" domain="[('invoice_id','=',False)]" separator="1" help="Purchase order with No Invoice" groups="base.group_extended"/>
<separator orientation="vertical"/>
<field name="name" select="1" string="Reference"/>
<field name="partner_id" select="1"/>
+8 -2
View File
@@ -1284,6 +1284,9 @@ class stock_picking(osv.osv):
@param ids: List of Picking Ids
@param context: A standard dictionary for contextual values
"""
if context is None:
context = {}
mob_obj = self.pool.get('ir.model.data')
for pick in self.browse(cr, uid, ids, context=context):
msg=''
if pick.auto_picking:
@@ -1303,9 +1306,12 @@ class stock_picking(osv.osv):
'done': _('is done.'),
'draft':_('is in draft state.'),
}
res = mob_obj.get_object_reference(cr, uid, 'stock', 'view_picking_in_form')
view_id = res and res[1] or False
context.update({'view_id': view_id})
message += state_list[pick.state]
self.log(cr, uid, pick.id, message)
return True
self.log(cr, uid, pick.id, message,context=context)
return context
stock_picking()