diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2020-06-03 08:29:50 +0000 |
|---|---|---|
| committer | Nasreddin (bon) <bon@odoo.com> | 2020-06-05 11:28:30 +0000 |
| commit | feb07b02e4739f5d27adce56e15991e705a3f09a (patch) | |
| tree | 19b3a363a5328d621b9866ce29c4506dbb58d6eb /addons/website_form/static/src/xml | |
| parent | 95b74f40e3eb6f5d1c41033ac3c878b7e926c8c8 (diff) | |
[FIX] base: Fix condition on selection field always evaluating to True
Part/Fix of commit #e579642
Issue
The condition `default_type not in self._fields['type'].selection`
always evaluate to True as the selection is list of (key, value)
tuples.
Solution
Replace the tuples by a list of possible values.
opw-2256905
closes odoo/odoo#52501
X-original-commit: 1b21c674c6de3ef96d7938c3e99b36d7cb2f2b6e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
Diffstat (limited to 'addons/website_form/static/src/xml')
0 files changed, 0 insertions, 0 deletions
