also index date_envoi
This commit is contained in:
parent
b7484beb02
commit
d5ef8dd5fe
|
@ -15,7 +15,7 @@ from themis.fields.vocabs import ContactsSource
|
|||
def mailDateIndexer(obj):
|
||||
if obj.portal_type not in ('courrier_entrant', 'courrier_sortant'):
|
||||
return None
|
||||
for attr in ('date_reelle_courrier', 'date_reception'):
|
||||
for attr in ('date_reelle_courrier', 'date_reception', 'date_envoi'):
|
||||
if not hasattr(obj, attr):
|
||||
continue
|
||||
if getattr(obj, attr):
|
||||
|
|
Reference in New Issue