I want to write the current URL in a email template, for example if I'm inside a sale order or a purchase order, <a href="http://www.uushairextensions.com"> hair extensions </a>I would expect the link that points to that document, how can I do that?
In your sale order just try to write the current url by saving to a field and fetch on email template that field as object.yoururlfieldmake the field a compute field
so the function should contain
from openerp import http
self.yourfiledname = str(http.request.httprequest).split("'").split("'")
just fetch the field value in your email template
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 10/31/16, 9:24 PM|
|Seen: 158 times|
|Last updated: 11/9/16, 10:49 PM|