Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
19367 Widoki

Hello everybody,

I want to insert the  user signature in email template.

To acheive that I've used the same code as account invoice :

<p>Signature:</p>
% if object.user_id and object.user_id.signature:
${object.user_id.signature | safe}
% endif       

Finally I didin't get any result.

Can you help me?

Best regards

     

Awatar
Odrzuć
Najlepsza odpowiedź

For future reference and if anyone should need this. For V10

% if user and user.signature:
${user.signature | safe}
% endif
Awatar
Odrzuć
Najlepsza odpowiedź

You have to add signature for User that will you will find at User-> Select User-> Preferences -> Messaging and Social -> Signature

Based on condition "if object.user_id and object.user_id.signature" if you find user and inside user you will find signature then it will display inside 'Email template'.

Hope this will work!

Awatar
Odrzuć
Autor

The signature for user Administrator it already setted by default