Discussion:
[tryton] Value of Selection Field
Steven Lightfoot
2018-02-09 10:39:45 UTC
Permalink
Quick question please?

How do I access the value of a selection box before the record is saved.

I want to select something and use the selected value to change information in another field before I save the record. When I break into my function after changing the selection I only see the old value not the new value. The only place I cam see the new value is on the vlist of the create method.

Hope this makes sense?

Regards

Steven.
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/7ee7ab62-be77-4501-88b9-7785dfe8f62b%40googlegroups.com.
Steven Lightfoot
2018-02-09 12:54:41 UTC
Permalink
Post by Steven Lightfoot
Quick question please?
How do I access the value of a selection box before the record is saved.
I want to select something and use the selected value to change information in another field before I save the record. When I break into my function after changing the selection I only see the old value not the new value. The only place I cam see the new value is on the vlist of the create method.
Hope this makes sense?
Regards
Steven.
Sorted - I was using on_change when I needed to use on_change_with
--
You received this message because you are subscribed to the Google Groups "tryton" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/ed534142-95f7-4675-b70b-b5e1a69179de%40googlegroups.com.
Loading...