summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2017-09-29 14:01:51 +0200
committerAaron Bohy <aab@odoo.com>2017-09-30 09:04:29 +0200
commit8d1630a40adbac8f9cd70a8ef0e7b9b61b7a60e8 (patch)
tree43c5ea56e00120eceb75b09ccdedf0487096da7f /addons/web/static/src/js/fields
parente4672db97da1df7c297aafbea93b9ffa26da5e4e (diff)
[FIX] web: fix one2many default get
The one2many default get code used to meddle with basic_model's res_ids manually, which ended up desynchronizing the data and res_ids fields of the list representation of the one2many values. This commit solves the issue by using the proper mechanisms of the basic_model, that is creating a proper datapoint for those ids. Steps to reproduce the original issue: - Install sale_mamangement, mrp and purchase - Create a product - In the Inventory tab, in Routes, uncheck Buy - Check and then uncheck back any other route than Buy - Get a traceback because we are looking for a record with a given res_id in the list data but since they are desynchronized, data is empty at that point even though res_ids is not.
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions