On 24 mai, 13:29, Jean Cavallo <jean.cava...@gmail.com> wrote: > Hi, > > You could try using a StateTransition which would perform > the control then return the current state value. > > class A(Wizard): > real_state = StateView(...) > check_state = StateTransition() > > def transition_check_state(self, session): > # perform checks using session.real_state > if errors: > self.raise_user_error(errors) > return 'real_state' > > That should do it. > > Jean CAVALLO
Thanks Jean for your help. I can't test this because I'm still using version 2.2, do you have a similar solution for 2.2 ? -- tryton@googlegroups.com mailing list