Ir al contenido
Menú
Se marcó esta pregunta
233 Vistas

I am currently working on server action sending email 

model: sales order
the default code:
     if records:

                action = records.with_context(hide_default_template=True).action_quotation_send()



is it possible  create exception that the targetted domain (contact) is to exclude those contact that has "Email Preference" = "Opt-Out or prevent from receiving an email?


heres my custom field in the res.partner
record.partner_id.x_studio_email_preference == '"Opt-Out"':

Avatar
Descartar