Ignore:
Timestamp:
20 Oct 2016, 12:50:20 (8 years ago)
Author:
Henrik Bettermann
Message:

Return mangled values directly.

File:
1 edited

Legend:

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

    r13135 r14220  
    227227
    228228        if name == 'history':
    229             value = value.messages
     229            return value.messages
    230230        if name.endswith('_object'):
    231231            mangled_value = getattr(value, 'document_id', None)
     
    236236                return mangled_value
    237237        if name == 'product_options' and value is not None:
    238             value = [eval(entry.to_string()) for entry in value]
     238            return [eval(entry.to_string()) for entry in value]
    239239        return super(
    240240            ContractExporterBase, self).mangle_value(
Note: See TracChangeset for help on using the changeset viewer.