- Timestamp:
- 26 Nov 2014, 13:03:56 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12057 r12062 232 232 fm.update() 233 233 if fm.viewlets: 234 sc_translation = trans(_(' Scanned Documents'), lang)234 sc_translation = trans(_('Connected Files'), lang) 235 235 data.append(Paragraph(sc_translation, HEADING_STYLE)) 236 236 # Insert list of scanned documents … … 350 350 # Insert history 351 351 if show_history: 352 hist_translation = trans(_('Workflow History'), portal_language) 353 data.append(Paragraph(hist_translation, HEADING_STYLE)) 354 data.extend(creator.fromStringList(customer.history.messages)) 352 if getattr(view.context, 'history', None): 353 hist_translation = trans(_('Document Workflow History'), portal_language) 354 data.append(Paragraph(hist_translation, HEADING_STYLE)) 355 data.extend(creator.fromStringList(view.context.history.messages)) 356 else: 357 hist_translation = trans(_('Customer Workflow History'), portal_language) 358 data.append(Paragraph(hist_translation, HEADING_STYLE)) 359 data.extend(creator.fromStringList(customer.history.messages)) 355 360 356 361 # Insert content tables (optionally on second page)
Note: See TracChangeset for help on using the changeset viewer.