[19.0] account_cutoff_start_end_dates: Move the constraint on uniqueness for cutoff date at line level #384
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.79) × (1 − Review Confidence (0.70)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.79 · 5533 lines diff across 50 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.45 · 3 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.400
Mass File Touch
mass_file_touch
0.080
Real PR Conversation Timeline
7 items
I think that we could improve this from a performance point of view.
What about doing 1 search (or maybe a readgroup if we have multiple company) before the loop then assigning your source journals?
(code should be modified and not taken as it is)
self.env["account.journal"].search(
[
("type", "in", ["sale","purchase"]),
("company_id", "in", self.company_id.ids),
]
)
Thanks for suggestion :)
done using read group !
Approved
Code LGTM 👍
Approved
LG
Changes Requested
Please drop the port of https://github.com/OCA/account-closing/pull/343 from the migration PR. I don't approve that commit.
Edit: This is not the module migration PR. This one is based on:
There is a typo in this PR description
@petrus-v do you have a moment to address the review of @jbaudoux ?
AnizR
petrus-v
port #343 account_cutoff_start_end_dates part.
based on #382 depends on #382