Changeset 12573
- Timestamp:
- 9 Feb 2015, 11:05:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/contracts.py
r12500 r12573 28 28 from waeup.ikoba.interfaces import MessageFactory as _ 29 29 from waeup.ikoba.interfaces import ( 30 IIkobaUtils, IObjectHistory, VERIFIED, IIDSource) 30 IIkobaUtils, IObjectHistory, 31 VERIFIED, APPROVED, PROVISIONALLY, 32 IIDSource) 31 33 from waeup.ikoba.customers.interfaces import ( 32 34 IContractsContainer, ICustomerNavigation, … … 129 131 def is_editable(self): 130 132 try: 131 # Customer must be approved133 # Customer must have requested 132 134 cond1 = self.customer.state in getUtility( 133 135 ICustomersUtils).CONMANAGE_CUSTOMER_STATES … … 143 145 @property 144 146 def is_approvable(self): 145 if self.customer and not self.customer.state in getUtility(146 ICustomersUtils).CONMANAGE_CUSTOMER_STATES:147 if self.customer and not self.customer.state in ( 148 APPROVED, PROVISIONALLY): 147 149 return False, _("Customer has not yet been approved.") 148 150 for key, field in getFields(self.check_docs_interface).items():
Note: See TracChangeset for help on using the changeset viewer.