summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-02-27 10:55:49 +0000
committerThibault Delavallée <tde@odoo.com>2020-02-27 13:16:12 +0000
commita6acb077e4c2f53d48b80397246ed5961bfa354c (patch)
tree033feee6326ba1e58d72a9bdfbf73d740c65ae83 /addons/web/static/src/js/views/basic/basic_controller.js
parent3c70eb3d04c80069c3e8890f127ee7f5d86507de (diff)
[FIX] event: fix attendees (seats) computation in transitional mode
When being in edit mode attendees count may be reset temporarily to 0. Indeed when user change the event_type linked to the event it triggers the computation of seats. Among those fields seats_expected is used to display the attendee count in event form view. In this commit we rewrite the computation in order to work in onchange mode. It correctly update record in cache instead of rebrowsing event in a compute and correctly support newid by checking _origin id. This behavior is probably present since a few versions but as it is not critical we target the last stable-saas. closes odoo/odoo#46444 X-original-commit: f858f0432abc97a805e24674990acac510b45e9d Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions