Skip to Content
Menu
This question has been flagged
2 Replies
3776 Views

Is it possible to create conditional email templates?

For example:
a user on the phone number: Create a question to ask about the phone number.
The user has a telephone number: There is no such question in the email.

Is it possible? How can I do it?

Avatar
Discard

% if object.partner_id.phone:

<strong>can you please add you phone number? </strong>

% endif

Author Best Answer

Thanks, but it doesn't work for me.

When writing in the template write me the code

% if object.partner_id.phone:

<strong>can you please add you phone number? </strong>

% endif

I think the system does not interpret "% if"

That could be happening?
Avatar
Discard