~tempo-openerp/openobject-addons/fix-1016690

Viewing all changes in revision 6857.

  • Committer: Olivier Dony
  • Date: 2012-06-22 15:25:36 UTC
  • mfrom: (6856.1.1 6.1)
  • Revision ID: odo@openerp.com-20120622152536-42b2s28lvdv3odyr
[MERGE] mail: avoid obscure failure when processing batches of emails with attachments
  
  This issue was caused by the way browse_records are cached,
  in combination with the deletion of messages just after sending
  them. When processing a second message, the attachment.datas
  function fields gets computed for all messages that are being
  browsed, including the first message that was already deleted,
  causing an exception. The value of the function field had 
  already been computed for the first message, but had been
  discarded by the message.refresh() call.
  Hopefully this kind of issue will disappear once we implement
  the new ORM API.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: