1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_followup/data/account_followup_data.xml
2024-12-10 09:04:09 +07:00

61 lines
3.2 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0"?>
<odoo>
<!-- Mail template is done in a NOUPDATE block
so users can freely customize/delete them -->
<data noupdate="1">
<!--Email template -->
<record id="email_template_followup_1" model="mail.template">
<field name="name">Payment Reminder</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="email_from">{{ object._get_followup_responsible().email_formatted }}</field>
<field name="partner_to">{{ object.id }}</field>
<field name="subject">{{ (object.company_id or object._get_followup_responsible().company_id).name }} Payment Reminder - {{ object.commercial_company_name }}</field>
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px;">
<t t-if="object.id != object.commercial_partner_id.id">Dear <t t-out="object.name or ''"/> (<t t-out="object.commercial_partner_id.name or ''"/>),</t>
<t t-else="">Dear <t t-out="object.name or ''"/>,</t>
<br/>
It has come to our attention that you have an outstanding balance of <t t-out="format_amount(object.total_overdue, object.currency_id) or ''"/>
<br/>
We kindly request that you take necessary action to settle this amount within the next 8 days.
<br/>
If you have already made the payment after receiving this message, please disregard it.
Our accounting department is available if you require any assistance or have any questions.
<br/>
Thank you for your cooperation.
<br/>
Sincerely,
<t t-if="not is_html_empty(object._get_followup_responsible().signature)">
<br/>
<t t-out="object._get_followup_responsible().signature"/>
</t>
<t t-else="">
<br/>
--
<br/>
<t t-out="object._get_followup_responsible().name"/>
</t>
</p>
</div>
</field>
<field name="lang">{{ object.lang }}</field>
<field name="auto_delete" eval="False"/>
</record>
<record id="demo_followup_line1" model="account_followup.followup.line" forcecreate="False">
<field name="name">15 Days</field>
<field name="delay">15</field>
<field name="company_id" ref="base.main_company"/>
<field name="send_email">True</field>
<field name="mail_template_id" ref="email_template_followup_1"/>
</record>
<record id="action_account_followup" model="ir.actions.client">
<field name="name">Customers Statement</field>
<field name="tag">account_report_followup</field>
<field name="context" eval="{'model': 'account.followup.report'}" />
</record>
</data>
</odoo>