diff options
| author | Nans Lefebvre <len@odoo.com> | 2019-07-16 14:15:27 +0000 |
|---|---|---|
| committer | Nans Lefebvre <len@odoo.com> | 2019-07-29 08:10:42 +0000 |
| commit | 47587de19b616120e14b1f40c8ff5b846a132364 (patch) | |
| tree | 407e6f5e31a37520b7ab3a3a94b5d49502a5fc6a /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 66136110392b86c5b52fca7243b60f4f9fb9f789 (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>
closes odoo/odoo#35246
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
