diff options
| author | Lucas Lefevre <lul@odoo.com> | 2019-09-12 11:31:04 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2019-09-13 10:05:43 +0000 |
| commit | 290341b4555a96ac0bc698054e2944ccc7d43518 (patch) | |
| tree | 5f3d1b5b8372bb7ccf379771d25c567019d1214a /doc/reference/javascript_reference.rst | |
| parent | 0eec4d22a2768836891e682ffc172de5a5a23b39 (diff) | |
[FIX] website_slides: still another fix of computed fields
This commit fixes 2 issues coming from the recent ORM changes: records are
new records in onchange and compute methods must assign a value for all records.
In an onchange method, self.ids is a list of integer (real records)
whereas self.id is a NewId (virtual record)
Here a result dict was built using the reals ids as keys but later NewIds
are used as keys. Solution is to use record._origin to access the real record.
Moreover, the two dicts `result` and `type_stats` are the same. Assigning one
into the other is useless.
Task 2067872 (eLearning internal testing)
PR #36756
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
