[FIX] read_group: someone added a field, thought it was fun to destroy
authorThibault Delavallée <tde@openerp.com>
Fri, 11 Apr 2014 12:47:32 +0000 (14:47 +0200)
committerThibault Delavallée <tde@openerp.com>
Fri, 11 Apr 2014 12:47:32 +0000 (14:47 +0200)
the method call.

bzr revid: tde@openerp.com-20140411124732-e22dzjmav0tuhag5

addons/mass_mailing/models/mass_mailing.py

index f7c6a1d..24870ac 100644 (file)
@@ -622,7 +622,7 @@ class MassMailing(osv.Model):
         })
         return super(MassMailing, self).copy_data(cr, uid, id, default, context=context)
 
-    def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False):
+    def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None, orderby=False, lazy=True):
         """ Override read_group to always display all states. """
         if groupby and groupby[0] == "state":
             # Default result structure