-
-
Notifications
You must be signed in to change notification settings - Fork 863
[IMP] sql_export_mail: allow partners as email recipients #1104
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
base: 17.0
Are you sure you want to change the base?
[IMP] sql_export_mail: allow partners as email recipients #1104
Conversation
|
Hi @legalsylvain, |
Larsq1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sql_export_mail/__manifest__.py
Outdated
| { | ||
| "name": "SQL Export Mail", | ||
| "version": "17.0.1.0.0", | ||
| "version": "17.0.1.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be 17.0.1.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please, dont change this key in the manifest. it will be done, when merging.
Larsq1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
sql_export_mail/models/sql_export.py
Outdated
| if not user.email: | ||
| raise UserError(_("The user does not have any e-mail address.")) | ||
| raise UserError( | ||
| self.env._("The user does not have any e-mail address.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| self.env._("The user does not have any e-mail address.") | |
| _("The user does not have any e-mail address.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and in all other places
1a2e6f3 to
85766a8
Compare
Backported from Odoo 18 version into 17.0 branch. - Add mail_partner_ids field to send SQL export reports to partners - Include partner emails in mail template alongside user emails
85766a8 to
35167df
Compare
What does this PR do?
Add a backported feature for sending SQL export reports to partners in addition to users. This enables more flexible notification workflows by allowing partners to receive automated reports via email.
Migration Notes
This feature is backported from v18/16 to v17 so it already existed.
Testing
All pre-commit hooks passed including:
Unit tests:
Manual testing performed with partner email notifications.