Skip to content

Commit

Permalink
[MIG] spec_driven_model: no more deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalyi committed Dec 28, 2024
1 parent 3858088 commit 254895b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec_driven_model/models/spec_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 254895b

Please sign in to comment.