OpenERP onchange result format specification?

In accordance with the "Views and Events" section of the OpenERP documentation, the "On Change" event handler should return:

return {‘domain’: d, ‘value’: value, ‘warning’: warning}

more specific:

dictionary with any combination of the following keys:

domain

The mapping {field: domain}.

The returned domains should be set in the fields instead of the standard ones.

Value

Display {field: value}

values ​​will be set in the corresponding fields and may cause new changes onchanges or attrs

a warning

Dictionary with a title and a message of keys.

Both are required. Indicate that the error message should be displayed to the user.

But I saw through the code using some other values ​​as context and type .

OpenERP?

+4

All Articles