Merge PR #409 into 15.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot 2023-04-19 15:46:03 +00:00
commit e8907d8817

View File

@ -5,41 +5,34 @@
<field name="name">Automated new draft need approval Notification Mail</field> <field name="name">Automated new draft need approval Notification Mail</field>
<field <field
name="email_from" name="email_from"
>${object.create_uid.company_id.email or 'noreply@localhost.com'}</field> >{{object.create_uid.company_id.email or 'noreply@localhost.com'}}</field>
<field <field
name="subject" name="subject"
>New version of ${object.display_name} needs your approval</field> >New version of {{object.display_name}} needs your approval</field>
<field name="model_id" ref="model_document_page_history" /> <field name="model_id" ref="model_document_page_history" />
<field name="auto_delete" eval="True" /> <field name="auto_delete" eval="True" />
<field name="lang">${object.create_uid.partner_id.lang}</field> <field name="lang">{{object.create_uid.partner_id.lang}}</field>
<field name="body_html"> <field name="body_html" type="html">
<![CDATA[ <p>Hello,</p>
<p>Hello,</p> <p><t t-out="object.create_uid.name" /> submited a new Change Request for <b
t-out="object.page_id.name"
<p>${object.create_uid.name} submited a new Change Request for <b>${object.page_id.name}</b> and it needs your approval.</p> /> and it needs your approval.</p>
<h1>
<h1><a href="${object.page_url}">${object.display_name}</a></h1> <a t-att-href="object.page_url" t-out="object.display_name" />
<p> </h1>
<b>Modified by:</b> ${object.create_uid.name}<br/> <p><b>Modified by:</b> <t t-out="object.create_uid.name" /></p>
<b>Date:</b> ${object.create_date}<br> <p><b>Date:</b> <t t-out="object.create_date" /></p>
</p> <t t-if="object.summary">
<h3>Summary</h3>
% if object.summary: <p t-out="object.summary" />
<h3>Summary</h3> </t>
<p>${object.summary}</p> <h3>Diff</h3>
% endif <div style="overflow-x:scroll; font-size:0.85em; margin-bottom:2em;">
<t t-out="object.diff" />
<h3>Diff</h3> </div>
<div style="overflow-x:scroll; font-size:0.85em; margin-bottom:2em;"> <p>Have a great day.</p>
${object.diff|safe} <br />
</div> <p>Odoo</p>
<p>Have a great day.</p>
--<br/>
<p>Odoo</p>
]]>
</field> </field>
</record> </record>
</odoo> </odoo>