Skip to content

Conversation

julien-banken
Copy link
Contributor

There are instances where an email notification may not have an associated author. In the mail notification template, we forgot to check that the author exists before calling the _is_internal on it. When the author is False, the function generating the mail crashes as the _is_internal function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before invoking any methods defined in the res.users model. This solution prevents errors and ensures the email template functions correctly.

see: #190390

Task-4128966


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

There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966
@robodoo
Copy link
Contributor

robodoo commented Jan 21, 2025

Pull request status dashboard

@C3POdoo C3POdoo requested review from a team January 21, 2025 15:17
@tde-banana-odoo
Copy link
Contributor

@robodoo r+

@C3POdoo C3POdoo added the RD research & development, internal work label Jan 21, 2025
@robodoo robodoo closed this in 954d710 Jan 21, 2025
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 22, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966

closes odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 23, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966

closes odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 26, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966

closes odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
gamarino pushed a commit to numaes/numa-public-odoo that referenced this pull request Jan 27, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/#190390

Task-4128966

closes odoo/odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 29, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966

closes odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
adhoc-cicd-bot pushed a commit to adhoc-cicd/odoo-odoo that referenced this pull request Jan 29, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966

closes odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
@fw-bot fw-bot deleted the 18.0-mail-fix-error-when-sending-mail-notifications-with-no-author-jbn branch February 4, 2025 18:09
StephaneMangin pushed a commit to camptocamp/odoo that referenced this pull request Feb 6, 2025
There are instances where an email notification may not have an associated
author. In the mail notification template, we forgot to check that the
author exists before calling the `_is_internal` on it. When the author is
`False`, the function generating the mail crashes as the `_is_internal`
function is undefined on a boolean variable.

To address this issue, we will ensure the existence of the author before
invoking any methods defined in the `res.users` model. This solution
prevents errors and ensures the email template functions correctly.

see: odoo/odoo/odoo#190390

Task-4128966

closes odoo#194569

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RD research & development, internal work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants