diff options
| author | Adrien Dieudonne <adr@odoo.com> | 2017-04-19 10:49:07 +0200 |
|---|---|---|
| committer | Adrien Dieudonne <adr@odoo.com> | 2017-04-20 13:08:14 +0200 |
| commit | ef3200f9409aab0a247e234154f18e77087ece05 (patch) | |
| tree | 35401aed2d247146f70dc68afe111ae799c42c54 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | e18c63e007196c1502b25c79d65fdb3bf309c3b2 (diff) | |
[FIX] web: BasicModel: id in evalContext
The evalContext contains the current data of a record
(the value of the fields that have been fetched,
i.e. the ones referenced in the view).
However, 'id' is a particular field that should always
be in the evalContext, even if not in the view
(as we always know its value).
Before this rev., 'id' was in the evalContext if
the record already existed, but not on new records, so it crashed
on new records if 'id' was used in the context defined on a field's node.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
