summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-07-19 13:03:35 +0200
committerThibault Delavallée <tde@openerp.com>2016-07-19 16:32:46 +0200
commitbcbf4316e669438e9b07c1da744667f689c123f7 (patch)
treeb2f6f28a0fd09bcb2daeb905798a51c3924251af /addons/website/static/src/js/website.editor.js
parent82ac891bc776792615aec0c28cdb58d86c695e9f (diff)
[FIX] models, mail, *: fix access action crash due to one / multi conversion
get_formview_action and get_formview_id are methods used notably in a redirection called from a mail controller used in notification emails. Those methods however are defined as cr, uid, id and are interpreted as api.one when called by a new-api style method. With modules being converted into the new API, those methods are called as api.one and the result is encapsulated into a list. To avoid having to take the first element of the returned list we decided to simplify the call chain and migrate the methods as multi methods, using ids instead of id. Various addons have been updated accordingly. A temporary support of ids being an int / long has been added to avoid conflict with calls using id (for example if javascript is not updated).
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
0 files changed, 0 insertions, 0 deletions