Changeset 12491 for main/waeup.ikoba/trunk/src/waeup/ikoba
- Timestamp:
- 19 Jan 2015, 08:02:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py
r12490 r12491 370 370 # Insert customer data table 371 371 if customer is not None: 372 #bd_translation = trans(_('Customer'), portal_language) 373 #data.append(Paragraph(bd_translation, HEADING_STYLE)) 372 if view.__name__ == 'contract_slip.pdf': 373 bd_translation = trans(_('Contractor'), portal_language) 374 data.append(Paragraph(bd_translation, HEADING_STYLE)) 375 if view.__name__ == 'document_slip.pdf': 376 bd_translation = trans(_('Document Owner'), portal_language) 377 data.append(Paragraph(bd_translation, HEADING_STYLE)) 374 378 data.append(render_customer_data( 375 379 customerview, view.context, omit_fields, lang=portal_language, … … 378 382 # Insert widgets 379 383 if view.form_fields: 380 data_header = trans(_('${a} Data', 381 mapping = {'a':view.context.translated_class_name}), 382 portal_language) 383 data.append(Paragraph(data_header, HEADING_STYLE)) 384 if view.__name__ == 'contract_slip.pdf': 385 data_header = trans(_('Contract Data'), portal_language) 386 data.append(Paragraph(data_header, HEADING_STYLE)) 384 387 separators = getattr(self, 'SEPARATORS_DICT', {}) 385 388 table = creator.getWidgetsTable(
Note: See TracChangeset for help on using the changeset viewer.