On 20/08/13 16:18 -0700, Demoy Blake wrote:
> Hi I am performing transaction from  within a wizard and wish to use a 
> readonly text field to display progress.
> how can I change the text in the field 'state' below from within the 
> 'transition_' method.
> 
> ## below is my First unsuccessful attempt
> def transition_open_(self):
>         self.start.state='processing'
>         # more stuff here

You can set default value of a state by defining a default method:

    def default_open_(self, fields):
        return {
            'state': 'processing',
            }

Set value within transition will just store the value on server side.

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: cedric.kr...@b2ck.com
Website: http://www.b2ck.com/

Attachment: pgp8BGh2vAESP.pgp
Description: PGP signature

Reply via email to