[T1984] FIX : Prevent automatic letter publishing on translation removal - #2117
Merged
Danielgergely merged 2 commits intoJul 30, 2026
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Ylulu71D
marked this pull request as ready for review
July 23, 2026 15:00
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Confidence Score: 5/5Safe to merge with low risk. The change is localized to one action, removes the previous forced B2S publishing path, preserves S2B commkit handling, and clears both legacy and current translator fields. No files require special attention.
What T-Rex did
Important Files Changed
Sequence DiagramsequenceDiagram
participant User as Odoo user / Translation Platform
participant Letter as correspondence.action_remove_local_translate
participant Odoo as Odoo correspondence record
participant GMC as CommKit creation
User->>Letter: Remove from translation
Letter->>Letter: ensure_one()
Letter->>Odoo: write state and clear translation metadata
alt Supporter To Beneficiary
Letter->>GMC: create_commkit()
else Beneficiary To Supporter
Letter-->>User: return True without forced publishing
end
Reviews (2): Last reviewed commit: "[T1984] FIX : Clear new_translator_id" | Re-trigger Greptile |
Danielgergely
approved these changes
Jul 30, 2026
Danielgergely
left a comment
Member
There was a problem hiding this comment.
- Before: the B2S branch (Published to Global Partner + process_letter(force_publish=True)) actually raises AttributeError: 'super' object has no attribute 'process_letter' on the v18 branch — old code was broken, not just over-sending.
- After: B2S → Received in the system, metadata cleared, no gmc.message/comm job. S2B → Received in the system + commkit still created (preserved).
Confirms the requirement: removed B2S letters are parked, not auto-sent.
Danielgergely
deleted the
T1984-FIX-Prevent-automatic-letter-publishing-on-translation-removal-v18
branch
July 30, 2026 05:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Update
action_remove_local_translateto safely remove B2S letters from the translation platform upon activation of the existing "Remove from translation" button, revert its state to"Received in the system", and clean up translation metadata without triggering automated publishing or email workflows.Technical Aspects
Record Enforcement & State Reset:
self.ensure_one().write():stateto"Received in the system".translatorandtranslation_status(reset toFalse).Retained The Existing Directional Handling for S2B
MISC