Changeset 8292 for main


Ignore:
Timestamp:
27 Apr 2012, 06:29:54 (13 years ago)
Author:
Henrik Bettermann
Message:

Do not show tranzaction code after valid payment.

File:
1 edited

Legend:

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

    r8263 r8292  
    152152    """
    153153    grok.context(ICustomApplicantOnlinePayment)
    154     form_fields = grok.AutoFields(ICustomApplicantOnlinePayment)
     154    form_fields = grok.AutoFields(ICustomApplicantOnlinePayment).omit('ac')
    155155    form_fields['creation_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
    156156    form_fields['payment_date'].custom_widget = FriendlyDatetimeDisplayWidget('le')
     
    158158    @property
    159159    def note(self):
     160        if self.context.p_state == 'paid':
     161            return None
    160162        tcode = self.context.p_id
    161163        tcode = tcode[len(tcode)-8:len(tcode)]
Note: See TracChangeset for help on using the changeset viewer.