summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorNans Lefebvre <len@odoo.com>2019-07-16 14:15:27 +0000
committerNans Lefebvre <len@odoo.com>2019-07-16 14:16:46 +0000
commit8533c19a6020461081c952c74bd6e043d26c79c7 (patch)
tree1ee4dab4dd8b72ade0483c91d131c69cacb44836 /addons/web/static/src/js/views/basic/basic_controller.js
parent46d12675a7273d2a4e513644016e9a06e9d7ae64 (diff)
[FIX] payment_authorize: save payment token from form validated transaction
https://docs.python.org/3/library/stdtypes.html#truth By default, an object is considered true unless its class defines either a __bool__() method that returns False or a __len__() method that returns zero Since etree elements are iterator, they define a len function. However it turns out that customerProfileId has always no children. So bool(find(x)) is always False; the intended meaning was find(x) is None. opw 1999427 closes odoo/odoo#34922 Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions