콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
18816 화면

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

     

아바타
취소
베스트 답변

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

% if user and user.signature:
${user.signature | safe}
% endif
아바타
취소
베스트 답변

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!

아바타
취소
작성자

The signature for user Administrator it already setted by default