A Diumenge, 14 de març de 2010, [email protected] va escriure:
> How do I update a field on the same page as a field that iks changed. I
>  have an onchange carrier_id method I want to update another displayed
>  field on the same page. It is updating the database fiild because I am
>  writing to it, but it doesn't updat6e the disploayed value for the field I
>  want to update. Bill

In the onchange function you must return something like this:

{
        'value': { 'field_to_update': new_value } 
}

You can also send messages to the user by returning:

{
        'value': {'field_to_update': new_value },
        'warning' {
                'title': _("Title of the message box"),
                'message': _("Content of the message box"),
        }
}

> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> --
> http://www.openobject.com/forum/viewtopic.php?p=52721#52721
> 
> -------------------- m2f --------------------
> 
> 
> _______________________________________________
> Tinyerp-users mailing list
> http://tiny.be/mailman2/listinfo/tinyerp-users
> 


-- 
Albert Cervera i Areny
http://www.NaN-tic.com
Mòbil: +34 669 40 40 18
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman2/listinfo/tinyerp-users

Reply via email to