Ignore:
Timestamp:
26 Nov 2014, 13:03:56 (10 years ago)
Author:
Henrik Bettermann
Message:

Add PDFDocumentSlipPage and related components.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12057 r12062  
    232232    fm.update()
    233233    if fm.viewlets:
    234         sc_translation = trans(_('Scanned Documents'), lang)
     234        sc_translation = trans(_('Connected Files'), lang)
    235235        data.append(Paragraph(sc_translation, HEADING_STYLE))
    236236        # Insert list of scanned documents
     
    350350        # Insert history
    351351        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))
    355360
    356361        # Insert content tables (optionally on second page)
Note: See TracChangeset for help on using the changeset viewer.