-
-
Notifications
You must be signed in to change notification settings - Fork 617
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] Prevent sending confirmation mails to contact without email
- Loading branch information
1 parent
c69021d
commit 963559c
Showing
4 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
############################################################################## | ||
# Copyright (c) 2023 braintec AG (https://braintec.com) | ||
# All Rights Reserved | ||
# | ||
# Licensed under the AGPL-3.0 (http://www.gnu.org/licenses/agpl.html) | ||
# See LICENSE file for full licensing details. | ||
############################################################################## | ||
|
||
from odoo import models | ||
|
||
|
||
class EventMail(models.Model): | ||
_inherit = "event.mail" | ||
|
||
def _create_missing_mail_registrations(self, registrations): | ||
"""Create mail registrations just for those partners with email. | ||
This way we also prevent long delays in the POS, at the time of the order validation. | ||
""" | ||
return super()._create_missing_mail_registrations(registrations.filtered('email')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -481,4 +481,8 @@ $pos-event-sale-primary-color: #6ec89b !default; | |
} | ||
} | ||
} | ||
|
||
div.button.next.validation { | ||
cursor: pointer; | ||
} | ||
} |