Skip to content

Commit

Permalink
Merge PR #3565 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by rvalyi
  • Loading branch information
OCA-git-bot committed Jan 6, 2025
2 parents c0c83ff + 94966bd commit 3eb0104
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 3eb0104

Please sign in to comment.