Skip to content

Conversation

@grindtildeath
Copy link
Contributor

…tion

@OCA-git-bot
Copy link
Contributor

Hi @hparfr, @sebastienbeau,
some modules you are maintaining are being modified, check this out!

Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Minor remark only.

filter_domain = fields.Char(
string="Apply on records",
default="[]",
help="If present, this condition must be satisfied to trigger the exception.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
help="If present, this condition must be satisfied to trigger the exception.",
help="If present, this condition must be satisfied to trigger the exception, no matter the Exception type.",

Copy link
Contributor

@hparfr hparfr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Can you explain why / how to use in the usage.md.

I guess it's a kind of a pre-filter to skip the test of exception on some records. Is it ?

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@grindtildeath
Copy link
Contributor Author

@hparfr Yes it's a pre filter to segregate records from a same model where an exception could apply or not.

However, there are no configuration instructions or USAGE in the readme of this module, so I'm not sure it would make much sense to describe this filter when there isn't any other instructions on how to configure exceptions... 🤷

@hparfr
Copy link
Contributor

hparfr commented Jan 5, 2026

However, there are no configuration instructions or USAGE in the readme of this module, so I'm not sure it would make much sense to describe this filter when there isn't any other instructions on how to configure exceptions... 🤷

It's never too late add some doc. At least a small word the source code can be good enough.

The reason you want to add this filtering feature was not obvious to me because I don't see the benefit in my case (mainly detect by domain exceptions): the filtering is already done with the domain.

If I understand correctly, the prefilter has positive impact on perfs for detecting exception by python code and negative for detecting exceptions by domain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants