mirror of
https://gitlab.com/itsulu-odoo/itsulu-blog-publisher.git
synced 2026-05-30 23:41:23 +00:00
63 lines
1.7 KiB
XML
63 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="0">
|
|
|
|
<record id="email_template_blog_published" model="mail.template">
|
|
<field name="name">Blog Publisher — Post Published Notification</field>
|
|
<field name="model_id" ref="model_itsulu_blog_generation_log"/>
|
|
<field name="subject">[ITSulu Insights] Blog Post Published: ${object.blog_post_id.name}</field>
|
|
<field name="email_from">${user.email_formatted}</field>
|
|
<field name="auto_delete">True</field>
|
|
<field name="body_html"><![CDATA[
|
|
<div style="font-family: Arial, sans-serif; line-height: 1.6; max-width: 700px;">
|
|
|
|
<h2>Blog Post Published</h2>
|
|
|
|
<p><strong>Title:</strong> ${object.blog_post_id.name}</p>
|
|
<p><strong>Blog:</strong> ${object.blog_post_id.blog_id.name}</p>
|
|
<p><strong>URL:</strong> <a href="https://itsulu.com${object.blog_post_id.website_url}">https://itsulu.com${object.blog_post_id.website_url}</a></p>
|
|
|
|
<h3>Social Media Posts — Ready to Post</h3>
|
|
|
|
% set social_records = object.blog_post_id.itsulu_social_id
|
|
% if social_records:
|
|
% set social = social_records[0]
|
|
|
|
% if social.twitter_post_a:
|
|
<h4>Twitter Post A</h4>
|
|
<p>${social.twitter_post_a}</p>
|
|
% endif
|
|
|
|
% if social.twitter_post_b:
|
|
<h4>Twitter Post B</h4>
|
|
<p>${social.twitter_post_b}</p>
|
|
% endif
|
|
|
|
% if social.bluesky_post_a:
|
|
<h4>BlueSky Post A</h4>
|
|
<p>${social.bluesky_post_a}</p>
|
|
% endif
|
|
|
|
% if social.bluesky_post_b:
|
|
<h4>BlueSky Post B</h4>
|
|
<p>${social.bluesky_post_b}</p>
|
|
% endif
|
|
|
|
% if social.mastodon_post:
|
|
<h4>Mastodon</h4>
|
|
<p>${social.mastodon_post}</p>
|
|
% endif
|
|
|
|
% if social.linkedin_post:
|
|
<h4>LinkedIn</h4>
|
|
<p>${social.linkedin_post}</p>
|
|
% endif
|
|
|
|
% endif
|
|
|
|
</div>
|
|
]]></field>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|