[FIX] Fixed logging of picking on creation.

bzr revid: noz@tinyerp.com-20100610093215-rvlukbhmquxxft5g
This commit is contained in:
noz
2010-06-10 15:02:15 +05:30
parent 6dd17f672d
commit d29cc52980
+3 -2
View File
@@ -477,10 +477,11 @@ class stock_picking(osv.osv):
'internal': _('Internal picking'),
'delivery': _('Delivery order')
}
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") + "' "+ _("created.")
self.log(cr, user, id, message)
return super(stock_picking, self).create(cr, user, vals, context)
self.log(cr, user, new_id, message)
return new_id
_columns = {
'name': fields.char('Reference', size=64, select=True),