mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] contract: Remove noupdate in mail template data
TT29820
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
"data/contract_cron.xml",
|
"data/contract_cron.xml",
|
||||||
"data/contract_renew_cron.xml",
|
"data/contract_renew_cron.xml",
|
||||||
"data/mail_template.xml",
|
"data/mail_template.xml",
|
||||||
|
"data/template_mail_notification.xml",
|
||||||
"data/mail_message_subtype.xml",
|
"data/mail_message_subtype.xml",
|
||||||
"data/ir_ui_menu.xml",
|
"data/ir_ui_menu.xml",
|
||||||
"wizards/contract_line_wizard.xml",
|
"wizards/contract_line_wizard.xml",
|
||||||
|
|||||||
@@ -84,47 +84,4 @@
|
|||||||
<p>We have modifications on the contract that we want to notify you.</p>
|
<p>We have modifications on the contract that we want to notify you.</p>
|
||||||
]]></field>
|
]]></field>
|
||||||
</record>
|
</record>
|
||||||
<template
|
|
||||||
id="mail_notification_contract"
|
|
||||||
inherit_id="mail.mail_notification_paynow"
|
|
||||||
primary="True"
|
|
||||||
>
|
|
||||||
<xpath expr="//t[@t-raw='message.body']" position="after">
|
|
||||||
<t t-raw="0" />
|
|
||||||
<t t-if="record._name == 'contract.contract'">
|
|
||||||
<t
|
|
||||||
t-set="share_url"
|
|
||||||
t-value="record._get_share_url(redirect=True, signup_partner=True, share_token=True)"
|
|
||||||
/>
|
|
||||||
<t
|
|
||||||
t-set="access_url"
|
|
||||||
t-value="is_online and share_url and base_url + share_url or ''"
|
|
||||||
/>
|
|
||||||
</t>
|
|
||||||
</xpath>
|
|
||||||
</template>
|
|
||||||
<template id="template_contract_modification" name="Contract Modification">
|
|
||||||
<t t-call="contract.mail_notification_contract">
|
|
||||||
<table border="1" align="center">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th name="th_date">Date</th>
|
|
||||||
<th name="th_description">Description</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<t t-foreach="record.modification_ids" t-as="modification">
|
|
||||||
<tr t-if="not modification.sent">
|
|
||||||
<td name="td_date">
|
|
||||||
<span t-field="modification.date" />
|
|
||||||
</td>
|
|
||||||
<td name="td_description">
|
|
||||||
<div t-field="modification.description" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</t>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</t>
|
|
||||||
</template>
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
46
contract/data/template_mail_notification.xml
Normal file
46
contract/data/template_mail_notification.xml
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?xml version="1.0" ?>
|
||||||
|
<odoo>
|
||||||
|
<template
|
||||||
|
id="mail_notification_contract"
|
||||||
|
inherit_id="mail.mail_notification_paynow"
|
||||||
|
primary="True"
|
||||||
|
>
|
||||||
|
<xpath expr="//t[@t-raw='message.body']" position="after">
|
||||||
|
<t t-raw="0" />
|
||||||
|
<t t-if="record._name == 'contract.contract'">
|
||||||
|
<t
|
||||||
|
t-set="share_url"
|
||||||
|
t-value="record._get_share_url(redirect=True, signup_partner=True, share_token=True)"
|
||||||
|
/>
|
||||||
|
<t
|
||||||
|
t-set="access_url"
|
||||||
|
t-value="is_online and share_url and base_url + share_url or ''"
|
||||||
|
/>
|
||||||
|
</t>
|
||||||
|
</xpath>
|
||||||
|
</template>
|
||||||
|
<template id="template_contract_modification" name="Contract Modification">
|
||||||
|
<t t-call="contract.mail_notification_contract">
|
||||||
|
<table border="1" align="center">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th name="th_date">Date</th>
|
||||||
|
<th name="th_description">Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<t t-foreach="record.modification_ids" t-as="modification">
|
||||||
|
<tr t-if="not modification.sent">
|
||||||
|
<td name="td_date">
|
||||||
|
<span t-field="modification.date" />
|
||||||
|
</td>
|
||||||
|
<td name="td_description">
|
||||||
|
<div t-field="modification.description" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</t>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</t>
|
||||||
|
</template>
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user