Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][IMP] spec_driven_model: Verificação no loop de registro dos hooks #2605

Open
wants to merge 1 commit into
base: 14.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions spec_driven_model/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@
spec_class = StackedModel._odoo_name_to_class(name, spec_module)
spec_class._module = "fiscal" # TODO use python_module ?
fields = env[spec_class._name].fields_get_keys()

if not any(
field.startswith(env[spec_class._name]._field_prefix) for field in fields
):
continue

Check warning on line 158 in spec_driven_model/hooks.py

View check run for this annotation

Codecov / codecov/patch

spec_driven_model/hooks.py#L158

Added line #L158 was not covered by tests

rec_name = next(
filter(
lambda x: (
Expand Down
Loading