Hi, I am trying to add some notification emails using xml records. Everything works except for the “attachments” field. How can I fill the data here? I already tried eval and ref with my attachment record id, but it does not seem to work.
<record model="notification.email" id="quote_sale_email">
<field name="content" ref="report_sale_quote_html"/>
<field name="recipients" search="[('name', '=', 'party'), ('model', '=', 'sale.sale')]"/>
<field name="attachments" eval="(ref('report_sale_quote_pdf'))"/> Does not work
</record>
I also could not find any examples in the existing modules. Any help is appreciated, thanks.