From 254895bc7dd3d505030288e265e804e1d312d1a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Valyi?= Date: Sat, 28 Dec 2024 20:59:52 +0000 Subject: [PATCH] [MIG] spec_driven_model: no more deprecated method --- spec_driven_model/models/spec_mixin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec_driven_model/models/spec_mixin.py b/spec_driven_model/models/spec_mixin.py index 533d4ffa5f0d..8839bf6a4a8e 100644 --- a/spec_driven_model/models/spec_mixin.py +++ b/spec_driven_model/models/spec_mixin.py @@ -82,14 +82,13 @@ def _register_hook(self): if spec_class is None: continue spec_class._module = "fiscal" # TODO use python_module ? - fields = self.env[spec_class._name].fields_get_keys() rec_name = next( filter( lambda x: ( x.startswith(self.env[spec_class._name]._field_prefix) and "_choice" not in x ), - fields, + self.env[spec_class._name]._fields, ) ) model_type = type(