← Back to Pull requests

[18.0][FIX] partner_email_check: Fix translation warning #2129

Closed
Kimkhoi3010 closed this pull request without merging on Mar 08, 2026 13:01 UTC
View on GitHub
Kimkhoi3010 Kimkhoi3010 commented on Sep 04, 2025 04:00 UTC
Author

This purpose of this PR is to fixes warning raised when loading module partner_email_check.

As you can see, @iggups already mentioned this in issue #2128.

Diff: 4 lines (+2 / -2) across 1 files Reviewer: legalsylvain Review duration: 266941m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.13) × (1 − Review Confidence (0.79)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.13 · 4 lines diff across 1 files
0.13
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.69 · 3 substantive comment(s)
0.69
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
79%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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.096
Real PR Conversation Timeline
5 items
legalsylvain legalsylvain requested changes on Sep 04, 2025 07:04 UTC
Changes Requested Reviewer

I think such text should not be translated.

removing the translation should fix the problem.

See other OCA exemple :

./reporting-engine/report_py3o/models/ir_actions_report.py:    logger.debug("Cannot import py3o.formats")
./reporting-engine/report_py3o/models/py3o_report.py:    logger.debug("Cannot import py3o.template")
./reporting-engine/report_py3o/models/py3o_report.py:    logger.debug("Cannot import py3o.formats")
./reporting-engine/report_py3o/models/py3o_report.py:    logger.debug("Cannot import PyPDF2")
./reporting-engine/report_py3o/models/_py3o_parser_context.py:    logger.debug("Cannot import py3o.template")
./reporting-engine/report_py3o_fusion_server/models/py3o_report.py:    logger.debug("Cannot import py3o.template")

legalsylvain legalsylvain commented on code on Sep 04, 2025 07:06 UTC
Code Review
partner_email_check/models/res_partner.py:1
@@ -15,7 +17,7 @@
         validate_email,
     )
 except ImportError:
-    _logger.debug(_("Cannot import 'email_validator'."))
+    _logger.debug(_lt("Cannot import 'email_validator'."))

    _logger.debug("Cannot import 'email-validator'.")

Kimkhoi3010 Kimkhoi3010 commented on code on Sep 04, 2025 07:11 UTC
Code Review
partner_email_check/models/res_partner.py:1
@@ -15,7 +17,7 @@
         validate_email,
     )
 except ImportError:
-    _logger.debug(_("Cannot import 'email_validator'."))
+    _logger.debug(_lt("Cannot import 'email_validator'."))

Hi @legalsylvain, I have updated the PR.
Thanks for your time.

github-actions[bot] github-actions[bot] commented on Feb 01, 2026 13:03 UTC
Bot

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

Reviewers
Assignees
Kimkhoi3010 Kimkhoi3010
Labels
risk: low confidence: 79% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 12.6% (LOW) · Higher = larger blast radius
12.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 79% · Lower = rushed or shallow review
79%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 2.6% · Safe to merge
2.6%