Changeset 16766


Ignore:
Timestamp:
31 Jan 2022, 22:17:52 (3 years ago)
Author:
Henrik Bettermann
Message:

Type of order must not be changed after payment was made.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/applicants/browser.py

    r16759 r16766  
    504504    @property
    505505    def form_fields(self):
     506        state = IWorkflowState(self.context).getState()
    506507        if self.target is not None and self.target == 'tscf':
    507508            form_fields = grok.AutoFields(ITranscriptApplicant)
     
    511512                form_fields = form_fields.omit(field)
    512513                form_fields = form_fields.omit('locked')
     514            if state == PAID:
     515                form_fields['order'].for_display = True
    513516            return form_fields
    514517        if self.target is not None and self.target == 'tscs':
     
    519522                form_fields = form_fields.omit(field)
    520523                form_fields = form_fields.omit('locked')
     524            if state == PAID:
     525                form_fields['order'].for_display = True
    521526            return form_fields
    522527        if self.target == 'ictwk':
     
    524529            for field in REGISTRATION_OMIT_EDIT_FIELDS:
    525530                form_fields = form_fields.omit(field)
    526             state = IWorkflowState(self.context).getState()
    527531            if state != STARTED:
    528532                form_fields['registration_cats'].for_display = True
Note: See TracChangeset for help on using the changeset viewer.