summaryrefslogtreecommitdiff
path: root/addons/website_customer/controllers
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2018-02-20 11:01:22 +0100
committerAaron Bohy <aab@odoo.com>2018-02-23 10:01:39 +0100
commitad1cceb4fbd2f054af647833bd34e4e06012bb6c (patch)
tree2ff88a9dd911149e163d3026f5b36d96e0d11a20 /addons/website_customer/controllers
parent8a29e37ddaf29d2736394762469b410d84dd583b (diff)
[FIX] web: one2many and onchange corner case issue
Let's assume a one2many list view inside a form view, displaying a single char field A. There is an onchange on the form view returning a command 0 (CREATE) for the one2many. The command 0 only specifies a value for field A. The one2many list isn't editable, so when a sub-record is clicked, it is open in a form view (in a dialog). In this form view, an x2many field B is displayed in a sub list or kanban view. Before this rev., it crashed when the user tried to open the created one2many sub-record (returned by the onchange) in the form view, because of the presence of the x2many field B, which wasn't correctly processed by the BasicModel (its value was undefined, whereas it must be a valid, empty, dataPoint). Moreover, the limit of the x2many field B wasn't set, so a pager was displayed as soon as it contained at least one record. Fixes #22050
Diffstat (limited to 'addons/website_customer/controllers')
0 files changed, 0 insertions, 0 deletions