- Timestamp:
- 30 Nov 2014, 21:08:42 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12097 r12099 1117 1117 1118 1118 @property 1119 def selectable_ apptypes(self):1120 apptypes = getUtility(ICustomersUtils).SELECTABLE_APPTYPES_DICT1121 return sorted( apptypes.items())1119 def selectable_contypes(self): 1120 contypes = getUtility(ICustomersUtils).SELECTABLE_CONTYPES_DICT 1121 return sorted(contypes.items()) 1122 1122 1123 1123 @action(_('Create contract'), style='primary') … … 1130 1130 contract = createObject('waeup.%s' % apptype) 1131 1131 self.context.addContract(contract) 1132 apptype = getUtility(ICustomersUtils).SELECTABLE_ APPTYPES_DICT[apptype]1132 apptype = getUtility(ICustomersUtils).SELECTABLE_CONTYPES_DICT[apptype] 1133 1133 self.flash(_('${a} created.', 1134 1134 mapping = {'a': apptype}))
Note: See TracChangeset for help on using the changeset viewer.