diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2018-09-13 15:44:27 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim-odoo@users.noreply.github.com> | 2018-09-17 08:28:38 +0200 |
| commit | de1b97f493ade153b2faea16efc5b3d2afd09661 (patch) | |
| tree | 3a45ada1abc332d2c6ccce60a0dd46f3a8851bab /addons/web/static/src/js | |
| parent | ea0b3d600d3e7361758e83210b907c5dd5f2f7fe (diff) | |
[FIX] base: set_value
By default, the `set_value` method doesn't do anything, and is expected
to be overridden. However, `ir.default`, groups and
`ir.config_parameter` are set BEFORE `set_value` is actually called.
This is an issue when it is necessary to retrieve one of these values
before the save, for example in order to compare the value before and
after.
We move the setting of the various values directly in the `set_value`.
This way, it becomes possible to interact with the values before any
modification is performed. On the other hand, the existing logic remains
unchanged.
opw-1882068
Diffstat (limited to 'addons/web/static/src/js')
0 files changed, 0 insertions, 0 deletions
