38 lines
2.0 KiB
XML
38 lines
2.0 KiB
XML
<odoo>
|
|
<data noupdate="1">
|
|
<!--Email template -->
|
|
<record id="email_template_order_special" model="mail.template">
|
|
<field name="name">Шаблон почты</field>
|
|
<field name="model_id" ref="sale.model_sale_order" />
|
|
<field name="email_from">${(object.company_id.email |safe}</field>
|
|
<field name="email_to" >${object.partner_id.email}</field>
|
|
<field name="subject">Заказ ${object.name or 'n/a' }</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
<!--field name="report_template" ref="action_report_contract_customer_order1"/-->
|
|
<!--field name="report_name">Спецификация к заказу</field-->
|
|
<!--field name="report_name">Спецификация к заказу ${(object.name or '')}</field-->
|
|
<!--field name="lang">${object.partner_id.lang}</field-->
|
|
<field name="body_html"><![CDATA[
|
|
<p></p>
|
|
]]>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="email_template_contract2" model="mail.template">
|
|
<field name="name">Договор</field>
|
|
<field name="model_id" ref="l10n_ru_contract.model_partner_contract_customer" />
|
|
<field name="email_from">${(object.company_id.email |safe}</field>
|
|
<field name="email_to" >${object.partner_id.email}</field>
|
|
<field name="subject">Договор №${(object.name or 'n/a')} ${(object.company_id.name or 'n/a')} - ${(object.partner_id.parent_id.name or object.partner_id.name or 'n/a')} от ${(object.date_start or 'n/a')}</field>
|
|
<field name="auto_delete" eval="True"/>
|
|
<!--field name="report_template" ref="action_report_contract_customer"/-->
|
|
<!--field name="report_name">Договор №${(object.name or 'n/a')}</field-->
|
|
<field name="lang">${object.partner_id.lang}</field>
|
|
<field name="body_html"><![CDATA[
|
|
<p></p>
|
|
]]>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|