[IMP] contract: Improve code to show recurring_rule_type from contract line in portal + [FIX] Force add access_token in "View contract" button from contract modification mail

This commit is contained in:
Víctor Martínez
2021-05-24 09:41:21 +02:00
committed by Christopher Rogos
parent bc6f9ac118
commit 6ea141fa4a
73 changed files with 2266 additions and 823 deletions

View File

@@ -91,6 +91,16 @@
>
<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">