summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/basic_fields.js
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-05-31 10:06:37 +0200
committerLucas Perais (lpe) <lpe@odoo.com>2018-06-06 09:51:56 +0200
commit654ee788d998299679644bf9c5514baddb4bf0b9 (patch)
tree8a619ac3bc9929b226a73471149431445a2c400b /addons/web/static/src/js/fields/basic_fields.js
parent6ad1a36b6eba2fcfee79641bde56cf6c4180001f (diff)
[FIX] web: new record with o2m also with new records prevent name_get
Have a model A with a o2m to B. In the list have a field B > m2o > C Also have a sequence field (widget handle) on B Then Create a record A Arrange yourself to have two new records B popping right away (through an onchange) in the o2m. Their C field have to be empty Resequence those two B lines with the handle Before this commit, there was a traceback when trying to do an name_get on the C fields Since both of them are empty, there is no record in the localData Hence, no model. And also no records anyway, so no need to do a name_get After this commit, there is no traceback, the name_get is avoided when no data is to be fetched OPW 1853088 closes #24988
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions