Skip to content
Snippets Groups Projects
Commit 1b21c674 authored by Nasreddin (bon)'s avatar Nasreddin (bon)
Browse files

[FIX] base: Fix condition on selection field always evaluating to True


Part/Fix of commit #e5796429

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#52316

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent 9c510ac2
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment