[FIX] account: fixed error when pushing on the send by mail button

bzr revid: qdp-launchpad@openerp.com-20120525152247-pyg0lmmx9derz9kb
This commit is contained in:
Quentin (OpenERP) 2012-05-25 17:22:47 +02:00
parent 65031e90ef
commit 04157c06f7
1 changed files with 1 additions and 1 deletions

View File

@ -1719,7 +1719,7 @@ class mail_message(osv.osv):
def _postprocess_sent_message(self, cr, uid, message, context=None):
if message.model == 'account.invoice':
self.pool.get('account.invoice').write(cr, uid, message.ids, {'sent':True}, context=context)
self.pool.get('account.invoice').write(cr, uid, [message.res_id], {'sent':True}, context=context)
return super(mail_message, self)._postprocess_sent_message(cr, uid, message=message, context=context)
mail_message()