[Fix] Stock: Fix the problem of key error orgin for outgoing picking

bzr revid: sbh@tinyerp.com-20100618062439-91tah2gr61jqgdvq
This commit is contained in:
sbh (Open ERP) 2010-06-18 11:54:39 +05:30
parent 135e85fb83
commit d07e439331
1 changed files with 1 additions and 1 deletions

View File

@ -559,7 +559,7 @@ class stock_picking(osv.osv):
}
new_id = super(stock_picking, self).create(cr, user, vals, context)
if not vals.get('auto_picking', False):
message = type_list.get(vals.get('type', False), _('Picking')) + " '" + (vals['name'] or "n/a") + _(" with origin")+" '" + (vals['origin'] or "n/a") + "' "+ _("is created.")
message = type_list.get(vals.get('type', False), _('Picking')) + " '" + (vals['name'] or "n/a") + _(" with origin")+" '" + (vals.get('origin') or "n/a") + "' "+ _("is created.")
self.log(cr, user, new_id, message)
return new_id