From bf4f2742784fc583c5f29894792ae548f5db39e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 17 Dec 2023 20:33:32 +0100 Subject: [PATCH] Check selection of dict schema when selection or help selection are modified It is the modification of stored field that must be checked and not the json version. Closes #12781 (grafted from 4f04e2409fad82de243439bac3128c1002d540ee) --HG-- branch : 7.0 --- trytond/trytond/model/dictschema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/trytond/model/dictschema.py b/trytond/trytond/model/dictschema.py index 1e1b45b867..bb52dff337 100644 --- a/trytond/trytond/model/dictschema.py +++ b/trytond/trytond/model/dictschema.py @@ -134,7 +134,7 @@ class DictSchemaMixin(object): @classmethod def check_selection(cls, schemas, field_names=None): if field_names and not (field_names & { - 'type_', 'selection_json', 'help_selection_json'}): + 'type_', 'selection', 'help_selection'}): return for schema in schemas: if schema.type_ not in {'selection', 'multiselection'}: