Files
odoo_source/addons/account/views/terms_template.xml
T
Arnaud Joset 9ace056714 [IMP] account,sale: html field for terms & conditions
Before this commit, the terms and conditions could not be html formatted text.

closes odoo/odoo#56512

Taskid: 2304199
Related: odoo/upgrade#1689
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-10-06 10:26:56 +00:00

27 lines
1.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="account.account_terms_conditions_setting_banner" name="Account Terms and Conditions Setting Banner">
<div id="terms_conditions" t-ignore="true" class="text-center">
<span>This is a preview of your Terms &amp; Conditions.</span>
<a t-att-href="backend_url"><i class="fa fa-arrow-right mr-1"/>Back to settings</a>
</div>
<button type="button" class="close" data-dismiss="alert" aria-label="Close"> &#215; </button>
</template>
<template id="account_terms_conditions_page" name="Terms &amp; Conditions">
<t t-call="web.frontend_layout">
<t t-set="o_portal_fullwidth_alert" groups="account.group_account_manager">
<t t-call="account.account_terms_conditions_setting_banner">
<t t-set="backend_url" t-value="'/web#action=account.action_open_settings&amp;model=res.config.settings'"/>
</t>
</t>
<div class="oe_structure" id="oe_structure_terms_conditions"/>
<div class="container oe_website_terms_conditions">
<div id="o_terms_conditions">
<div t-field="company.invoice_terms_html"/>
</div>
</div>
</t>
</template>
</odoo>