15 lines
529 B
Python
15 lines
529 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo.addons.portal.controllers import portal
|
|
from odoo.http import request
|
|
|
|
|
|
class CustomerPortal(portal.CustomerPortal):
|
|
|
|
def on_account_update(self, values, partner):
|
|
super().on_account_update(values, partner)
|
|
# Do not show "Validation Email sent" if the current user changed their email address
|
|
if values["email"] != partner.email:
|
|
request.session['validation_email_sent'] = False
|