Quantcast
Channel: OpenERP Help - Individual question feed
Viewing all articles
Browse latest Browse all 6389

How to access the return values of on_change without saving?

$
0
0
After the execution of an on_change method the returned values are displayed in the view. But how can I get them for further processing?
def onchange_date(self, cr, uid, ids, date, context=None): vals={'field1': 123}; . . return {'value': vals}; In particular I need the values to be available in a button method. def save_action(self, cr, uid, ids, context): a = context.get('val1', False); . . return True; I've tried passing them over using a context in the xml view. But only the default values are passed. Not the return values of the onchange method.

Viewing all articles
Browse latest Browse all 6389

Trending Articles