- Timestamp:
- 30 Dec 2014, 17:47:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py
r12345 r12346 685 685 return 686 686 687 @action(_('Cancel'), validator=NullValidator) 688 def cancel(self, **data): 689 self.redirect(self.url(self.context)) 690 687 691 688 692 class CustomerChangePasswordPage(IkobaEditFormPage): … … 711 715 self.flash(' '.join(errors), type="warning") 712 716 return 717 718 @action(_('Cancel'), validator=NullValidator) 719 def cancel(self, **data): 720 self.redirect(self.url(self.context)) 721 713 722 714 723 class CustomerBasePDFFormPage(IkobaDisplayFormPage): … … 1226 1235 pnav = 4 1227 1236 1228 form_fields = grok.AutoFields(IContract ).select('product_object')1237 form_fields = grok.AutoFields(IContractEdit).select('product_object') 1229 1238 1230 1239 def update(self): … … 1293 1302 def save(self, **data): 1294 1303 msave(self, **data) 1304 return 1305 1306 @action(_('Final Submit'), warning=WARNING) 1307 def finalsubmit(self, **data): 1308 msave(self, **data) 1309 IWorkflowInfo(self.context).fireTransition('submit') 1310 self.flash(_('Form has been submitted.')) 1311 self.redirect(self.url(self.context)) 1295 1312 return 1296 1313
Note: See TracChangeset for help on using the changeset viewer.