Hi,
I set an automatic action to send an email when a sale order is created, it works correctly but for some orders I need send email only if specific fields are filled.
My current solution is to set email destination as None if field is empty in the model, but i don't like it
${ (object.partner_id.email if object.x_studio_myfield == 'YES' else None)|safe}
Is there a better solution?
Thanks