I'm trying to create a dynamic link to access activity's related document within an email template.
As an acitivity is related to document id and document model, I have made the current code to reach the desired document:
".. a href="/web#id=${object.res_id}&model=${object.res_model_id.model}&view_type=form" class="btn btn-primary" target="_blank">Related document
** edit: I didn't finish the code with tags () since it was taken as a link and not as text
At the moment I get to the desired document, but the menu for that view doesn't load.
I believe I'll have to add something like:
".. &menu_id=${'way to get menu id'}"
Any ideas how to get that menu id dynamically for each model?.
Thanks in advance,
Rodrigo