Changeset 12760 for main/waeup.ikoba


Ignore:
Timestamp:
14 Mar 2015, 05:46:24 (10 years ago)
Author:
Henrik Bettermann
Message:

Customers must not remove contracts in state 'awaiting'.

File:
1 edited

Legend:

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

    r12757 r12760  
    3333    IPasswordValidator, IUserAccount,
    3434    STARTED, VERIFIED, REJECTED, EXPIRED, CREATED, REQUESTED,
    35     APPROVED, PROVISIONALLY)
     35    APPROVED, PROVISIONALLY, AWAITING)
    3636from waeup.ikoba.browser.layout import (
    3737    IkobaPage, IkobaEditFormPage, IkobaAddFormPage, IkobaDisplayFormPage,
     
    12161216            if not right_customer_state:
    12171217                return False
    1218             if contract.state in (APPROVED, REJECTED, EXPIRED):
     1218            if contract.state in (APPROVED, AWAITING, REJECTED, EXPIRED):
    12191219                return False
    12201220        return checkPermission('waeup.editContracts', self.context)
Note: See TracChangeset for help on using the changeset viewer.