[IMP] purchase:added log message for purchase order line

bzr revid: mtr@mtr-20100615060640-5mxmv2jzmrhypvwe
This commit is contained in:
mtr 2010-06-15 11:36:40 +05:30
parent 3ede9fb751
commit d3912c2789
1 changed files with 3 additions and 0 deletions

View File

@ -708,6 +708,9 @@ class purchase_order_line(osv.osv):
return res
def action_confirm(self, cr, uid, ids, context={}):
self.write(cr, uid, ids, {'state': 'confirmed'}, context)
for (id,name) in self.name_get(cr, uid, ids):
message = _('Purchase order line') + " '" + name + "' "+ _("is confirmed")
self.log(cr, uid, id, message)
return True
purchase_order_line()