Files
contract/agreement/views/reports.xml
2018-10-16 17:31:16 +05:30

49 lines
2.1 KiB
XML

<?xml version="1.0"?>
<odoo>
<report
id="partner_agreement_contract_document"
model="agreement"
string="Contract Document"
name="agreement.report_agreement_document"
file="agreement.report_agreement_document"
report_type="qweb-pdf"/>
<report
id="partner_agreement_contract_document_preview"
model="agreement"
string="Contract Document Preview"
name="agreement.report_agreement_document"
file="agreement.report_agreement_document"
report_type="qweb-html"/>
<template id="report_agreement_document">
<t t-name="agreement.report_agreement_document">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="doc">
<t t-call="web.external_layout">
<div class="page">
<h3>!!! THIS IS JUST AN EXAMPLE REPORT TO SHOW HOW SECTIONS/CLAUSES CAN LOOK. MORE WORK IS NEEDED FOR FORMATTING</h3>
<table class="table table-condensed">
<tbody class="section_tbody">
<tr t-foreach="doc.sections_ids" t-as="s">
<h3 t-field="s.name"/>
<span t-field="s.content"/>
<table class="table table-condensed">
<tbody class="clause_tbody">
<tr t-foreach="s.clauses_ids" t-as="c">
<h4 style="padding:20px" t-field="c.name"/>
<h5 style="padding:20px" t-field="c.content"/>
</tr>
</tbody>
</table>
</tr>
</tbody>
</table>
</div>
</t>
</t>
</t>
</t>
</template>
</odoo>