Skip to content

[IMP] html_builder, *: fix default recipient email based on company email #4504

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

Open
wants to merge 2 commits into
base: master-mysterious-egg
Choose a base branch
from

Conversation

panv-odoo
Copy link

@panv-odoo panv-odoo commented Apr 28, 2025

*: website
Before this PR, the default recipient email address in the website form options did not update based on the company's email. Instead, it always displayed a placeholder or default email.

This PR resolves the issue by allowing the website form to dynamically use the company email as the default email_to. If the company email is not available, it will gracefully fall back to the default address.

Additionally, this PR also enables the Tours used to test this functionality.

@robodoo
Copy link

robodoo commented Apr 28, 2025

This PR targets the un-managed branch odoo-dev/odoo:master-mysterious-egg, it needs to be retargeted before it can be merged.

@panv-odoo panv-odoo force-pushed the master-mysterious-egg-tours-adaptation-panv-3 branch 2 times, most recently from 098de8a to 7caffcf Compare April 29, 2025 09:09
@panv-odoo panv-odoo changed the title [FIX] html_builder: fix default recipient email based on company email [IMP] html_builder, *: fix default recipient email based on company email Apr 29, 2025
@ged-odoo ged-odoo force-pushed the master-mysterious-egg branch from e24556e to 897f4ab Compare April 29, 2025 18:30
Prior to this commit, the default recipient email address used in the
website form options was not being updated based on the company email.
Instead, it was showing a placeholder/default email address.

This commit fixes this issue by allowing the website form to use the
default `email_to` from the company email. If the company email is not
present, it will use the default email address.
Enabled following tours:
- website_form_contactus_edition_no_email
- website_form_contactus_submit
@panv-odoo panv-odoo force-pushed the master-mysterious-egg-tours-adaptation-panv-3 branch from 7caffcf to bbee83a Compare April 30, 2025 05:19
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.

2 participants