Skip to content

Conversation

@oco-odoo
Copy link
Contributor

When generating the mail alias for a journal, we check whether the name of the company is already in it, and add it if it's not. The problem is before this commit, we didn't sanitize the name of the company to do that check, so a company name with spaces or accents would never be detected as part of the alias, and could end up being in it twice.

This caused issues in the Winbooks import of one customer, who ended up with duplicate aliases because of that, since the journal code was not properly added to the generated alias while it should, and a duplicate of the company name was put instead.

opw-4196597

…s when generating it

When generating the mail alias for a journal, we check whether the name of the company is already in it, and add it if it's not. The problem is before this commit, we didn't sanitize the name of the company to do that check, so a company name with spaces or accents would never be detected as part of the alias, and could end up being in it twice.

This caused issues in the Winbooks import of one customer, who ended up with duplicate aliases because of that, since the journal code was not properly added to the generated alias while it should, and a duplicate of the company name was put instead.

opw-4196597
@oco-odoo oco-odoo requested a review from smetl November 29, 2024 12:36
@robodoo
Copy link
Contributor

robodoo commented Nov 29, 2024

Pull request status dashboard

Copy link
Contributor

@smetl smetl left a comment

Choose a reason for hiding this comment

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

@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Nov 29, 2024
@robodoo
Copy link
Contributor

robodoo commented Nov 29, 2024

@oco-odoo @smetl 'ci/runbot' failed on this reviewed PR.

robodoo pushed a commit that referenced this pull request Nov 29, 2024
…s when generating it

When generating the mail alias for a journal, we check whether the name of the company is already in it, and add it if it's not. The problem is before this commit, we didn't sanitize the name of the company to do that check, so a company name with spaces or accents would never be detected as part of the alias, and could end up being in it twice.

This caused issues in the Winbooks import of one customer, who ended up with duplicate aliases because of that, since the journal code was not properly added to the generated alias while it should, and a duplicate of the company name was put instead.

opw-4196597

closes #189149

Signed-off-by: Laurent Smet (las) <las@odoo.com>
@robodoo robodoo closed this Nov 29, 2024
@fw-bot fw-bot deleted the 17.0-fix-journal-mail-alias-sanitize-oco branch December 13, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants