[Fix] purchase: Fix the log message

bzr revid: sbh@tinyerp.com-20101014100323-1mdy8apjiohpgu2k
This commit is contained in:
sbh (Open ERP) 2010-10-14 15:33:23 +05:30
parent e16ee15368
commit ce4b580b5c
1 changed files with 3 additions and 2 deletions

View File

@ -416,8 +416,9 @@ class purchase_order(osv.osv):
wf_service = netsvc.LocalService("workflow")
wf_service.trg_validate(uid, 'account.invoice', inv.id, 'invoice_cancel', cr)
self.write(cr,uid,ids,{'state':'cancel'})
message = _('Purchase order ') + " '" + purchase.name + "' "+ _("is cancelled")
self.log(cr, uid, id, message)
for (id,name) in self.name_get(cr, uid, ids):
message = _('Purchase order ') + " '" + purchase.name + "' "+ _("is cancelled")
self.log(cr, uid, id, message)
return True
def action_picking_create(self,cr, uid, ids, *args):