also rename documents with their category/subcategory

This commit is contained in:
Frédéric Péters 2012-12-10 13:35:23 +01:00
parent 99480fb9fe
commit 74c6238ae4
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class LoadFromOcr(BrowserView):
int(date[0:4]), int(date[4:6]), int(date[6:]),
int(time[:2]),int(time[2:4]),int(time[4:6]))
if doctype in ('incoming_mails', 'outgoing_mails'):
if (category or subcategory):
ocr_title = u'%s %s du %s à %s' % (
(category or subcategory),
number,