- Timestamp:
- 10 Jul 2022, 11:47:16 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r17017 r17018 1067 1067 manage_applications = True 1068 1068 pnav = 3 1069 display_actions = [[_('Save'), _('Finally Submit')], 1070 [_('Add online payment ticket'), 1071 _('Add balance payment ticket'), 1072 _('Remove selected tickets')]] 1069 1070 @property 1071 def display_actions(self): 1072 actions = [[_('Save'), _('Finally Submit')], 1073 [_('Add online payment ticket'), 1074 _('Add balance payment ticket'), 1075 _('Remove selected tickets')]] 1076 applicants_utils = getUtility(IApplicantsUtils) 1077 if self.context.state not in applicants_utils.BALANCE_PAYMENT_STATES: 1078 actions[1].pop(1) 1079 return actions 1073 1080 1074 1081 @property … … 1288 1295 submit_state = PAID 1289 1296 mandate_days = 31 1290 balance_payments_states = () # not used in base packe1291 1297 1292 1298 @property … … 1327 1333 actions = [[_('Save'), _('Finally Submit')], 1328 1334 [_('Remove selected tickets')]] 1329 if self.context.state in self.balance_payments_states: 1335 applicants_utils = getUtility(IApplicantsUtils) 1336 if self.context.state in applicants_utils.BALANCE_PAYMENT_STATES: 1330 1337 actions[1].append(_('Add balance payment ticket')) 1331 1338 return actions
Note: See TracChangeset for help on using the changeset viewer.