You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
2.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- These templates are used to sent approval request with uploaded documents-->
<template id="document_fields" inherit_id="auth_signup.fields">
<xpath expr="//input[@name='confirm_password']" position="after">
<t t-if="request.env['ir.config_parameter'].sudo().get_param('website_signup_approval.auth_signup_approval') == 'True'">
<t t-set="get_attachments_set"
t-value="request.env['ir.config_parameter'].sudo().get_param('website_signup_approval.documents_ids')"/>
<div class="span_container"
style="padding-top: 2%; padding-bottom: 2%;">
<span class="pass-alert"
style="color:red; display:none; margin-left:5%;">
Password do not match
</span>
</div>
<t t-if="get_attachments_set">
<t t-foreach="json.loads(get_attachments_set)" t-as="res">
<t t-set="get_attachments_values"
t-value="request.env['document.attachment'].sudo().search([('id', '=', res)])"/>
<table class="table">
<t t-foreach="get_attachments_values" t-as="rec">
<tr>
<th>
<span t-esc="rec.document"
class="oe_inline"/>
</th>
<td>
<input type="file"
class="oe_import_file get_attach"
required="1"/>
</td>
</tr>
</t>
</table>
</t>
<span class="document-alert"
style="color:red; display:none;">
Only PDF, PNG, and JPEG files supported.
</span>
</t>
</t>
</xpath>
</template>
</odoo>