mail_template_data.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data noupdate="1">
  4. <record id="mail_template_base_install_request" model="mail.template">
  5. <field name="name">Mail: Install Request</field>
  6. <field name="model_id" ref="base_install_request.model_base_module_install_request"/>
  7. <field name="subject">Module Activation Request for "{{ object.module_id.shortdesc }}"</field>
  8. <field name="email_from">{{ object.user_id.email_formatted or user.email_formatted }}</field>
  9. <field name="partner_to" >{{ ctx['partner'].id}}</field>
  10. <field name="body_html" type="html">
  11. <div style="margin: 0px; padding: 0px;">
  12. <p style="margin: 0px; padding: 0px; font-size: 13px;">
  13. Hello,
  14. <br/><br/>
  15. <span style="font-weight: bold;" t-out="object.user_id.name"/> has requested to activate the <span style="font-weight: bold;" t-out="object.module_id.shortdesc"/> module. This module is included in your subscription. It has <span style="color: #875A7B; font-weight: bold;">no extra cost</span>, but an administrator role is required to activate it.
  16. <br/><br/>
  17. <blockquote>
  18. <t t-out="object.body_html"/>
  19. </blockquote>
  20. <br/><br/>
  21. <a style="background-color:#875A7B; padding:8px 16px 8px 16px; text-decoration:none; color:#fff; border-radius:5px" t-attf-href="/web?#action=base_install_request.action_base_module_install_review&amp;active_id={{ object.module_id.id }}&amp;menu_id={{ ctx['menu_id'] }}">Review Request</a>
  22. <br/><br/>
  23. Thanks,
  24. <t t-if="not is_html_empty(object.user_id.signature)">
  25. <br/><br/>
  26. <t t-out="object.user_id.signature or ''">--<br/>Mitchell Admin</t>
  27. </t>
  28. <br/><br/>
  29. </p>
  30. </div>
  31. </field>
  32. <field name="lang">{{ ctx['partner'].lang or user.lang }}</field>
  33. <field name="auto_delete" eval="True"/>
  34. </record>
  35. </data>
  36. </odoo>