[IMP] Task-869 Improvement Log Message for account

bzr revid: ksa@tinyerp.co.in-20100603074349-dntnjmu7u98d3opy
This commit is contained in:
ksa (Open ERP)
2010-06-03 13:13:49 +05:30
parent 7e6b8699bf
commit 3eb13e257f
+5
View File
@@ -952,6 +952,11 @@ class account_invoice(osv.osv):
def _log_event(self, cr, uid, ids, factor=1.0, name='Open Invoice'):
#TODO: implement messages system
for invoice in self.browse(cr, uid, ids):
for (id,number) in self.name_get(cr, uid, ids):
inv_number = number.split('/')[-1]
message = _('Invoice ') + " '" + _('INV/')+ inv_number + "' "+ _("Opened,")+_('journal entries')+ "' " + invoice.move_id.name + "' "+_("Created")
self.log(cr, uid, id, message)
return True
def name_get(self, cr, uid, ids, context=None):