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

[FIX] Adding user language to context in mail.message message_format method #14589

Closed
wants to merge 1 commit into from
Closed

[FIX] Adding user language to context in mail.message message_format method #14589

wants to merge 1 commit into from

Conversation

Guenzn
Copy link
Contributor

@Guenzn Guenzn commented Dec 5, 2016

Description of the issue/feature this PR addresses:
Fix the missing localization of chatter message description.

Current behavior before PR:
Create a Lead, look at the chatter, the description is always shown in English (Lead Created)

Desired behavior after PR is merged:
If lang is missing in context the current logged in users language will be added, to localize the message description e.g. instead of "Lead Created" for german users “Interessent angelegt”.

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@mart-e
Copy link
Contributor

mart-e commented Dec 5, 2016

Hello,

I confirm the bug but I am not sure about the fix.
The issue is that the lang is missing from the context. Have you investigated why is that?

Also it seems you have not signed the CLA.

Regards

@Guenzn
Copy link
Contributor Author

Guenzn commented Dec 5, 2016 via email

@mart-e
Copy link
Contributor

mart-e commented Dec 6, 2016

Hello,

Thanks for the reply. I have investigated and the proper solution was to pass the context earlier.
Done at 91139b4

@mart-e mart-e closed this Dec 6, 2016
mart-e added a commit that referenced this pull request Dec 6, 2016
The tacked messages in the chatter were parially translated.
e.g. "Lead created"
The call did not gave the user context and the subtype message was not
translated.

Closes #14589
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants