On 30/03/11 07:41 -0700, Artur_J wrote:
> Ok, thanks.
> This was also my first idea, but does this work across related models?
> 
> So i would need to do something like:
> 
> forename = fields.Char('Forename',  on_change=['forename',
> 'surname'],  required=True, select=1)
> surname = fields.Char('Surname',  on_change=['forename', 'surname'] ,
> required=True, select=1)
> 
> def on_change_forename(..)
>     ....
>     return { 'party.name': "..." } # ???? <- this is the crucial

    return {'name': "..."}

> question
> 
> def on_change_surname(...)
>    ....
>    return { 'party.name': "..." } # ????
> 
> and the view is already inherited from the party view.
> 

-- 
Cédric Krier

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

Attachment: pgp4KYIX9KZOX.pgp
Description: PGP signature

Reply via email to