I would like to allow user(s) to create the content of a report and allow field insertion (as in the mail templates).
for now I have a html field in my module and the content is added to my report. but additions like:
${object.company_id.name} or <span t-field="doc.company_id.name"/>
are added as is. I tried both t-esc and t-raw on the html field.
Is there a way to have the field reference replaced with it's value?
an exemple of what I would like to achieve:
===== HTML rendered content:
Lorem ipsum ${object.project_id.company_id.name}.
dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.
In enim ${object.module.subject} justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi.
=====
===== Desired Result:
Lorem ipsum Azure Interior.
dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu.
In enim Azure Interior justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi.
=====