Ignore:
Timestamp:
19 Jan 2015, 06:50:16 (10 years ago)
Author:
Henrik Bettermann
Message:

Modify slips.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
3 edited

Legend:

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

    r12486 r12490  
    15321532    def label(self):
    15331533        portal_language = getUtility(IIkobaUtils).PORTAL_LANGUAGE
    1534         return '%s of %s\nTitle: %s' % (
    1535             self.context.translated_class_name,
    1536             self.context.customer.display_fullname,
    1537             self.context.title)
     1534        return self.context.title
    15381535
    15391536    def render(self):
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/utils.py

    r12432 r12490  
    370370        # Insert customer data table
    371371        if customer is not None:
    372             bd_translation = trans(_('Base Data'), portal_language)
    373             data.append(Paragraph(bd_translation, HEADING_STYLE))
     372            #bd_translation = trans(_('Customer'), portal_language)
     373            #data.append(Paragraph(bd_translation, HEADING_STYLE))
    374374            data.append(render_customer_data(
    375375                customerview, view.context, omit_fields, lang=portal_language,
     
    378378        # Insert widgets
    379379        if view.form_fields:
    380             data.append(Paragraph(view.title, HEADING_STYLE))
     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))
    381384            separators = getattr(self, 'SEPARATORS_DICT', {})
    382385            table = creator.getWidgetsTable(
     
    392395        if show_history:
    393396            if getattr(view.context, 'history', None):
    394                 hist_translation = trans(_('${a} Workflow History',
    395                                            mapping = {'a':view.context.translated_class_name}),
    396                                         portal_language)
     397                hist_translation = trans(_('Transaction History'),
     398                    portal_language)
    397399                data.append(Paragraph(hist_translation, HEADING_STYLE))
    398                 data.extend(creator.fromStringList(view.context.history.messages))
     400                data.extend(
     401                    creator.fromStringList(view.context.history.messages))
    399402            else:
    400                 hist_translation = trans(_('Customer Workflow History'), portal_language)
     403                hist_translation = trans(_('Registration History'),
     404                    portal_language)
    401405                data.append(Paragraph(hist_translation, HEADING_STYLE))
    402406                data.extend(creator.fromStringList(customer.history.messages))
  • main/waeup.ikoba/trunk/src/waeup/ikoba/products/tests/test_batching.py

    r12487 r12490  
    5959    layer = FunctionalLayer
    6060
    61     _contract_category = u'license'
    62 
    6361    def setUp(self):
    6462        super(ProductImportExportSetup, self).setUp()
     
    8583        product = Product()
    8684        product.product_id = u'LIC'
    87         product.contract_category = self._contract_category
     85        product.contract_category = u'license'
    8886        options = ProductOption()
    8987        options.title = u'Base Fee'
Note: See TracChangeset for help on using the changeset viewer.