11 lines
372 B
Python
11 lines
372 B
Python
from odoo import models, api
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = 'res.partner'
|
|
|
|
@api.multi
|
|
def send_validation_email(self):
|
|
for partner in self:
|
|
if not partner.email_validated:
|
|
# Assuming you have a method called send_validation_email that sends the validation email.
|
|
partner.send_validation_email()
|