157 lines
11 KiB
XML
157 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<odoo>
|
|
<template id="gn_agreement.report_agreement_document" inherit_id="agreement_legal.report_agreement_document">
|
|
<xpath expr="//div[contains(@class, 'page') and .//table]" position="replace">
|
|
<div class="page">
|
|
<h1 style="font-size: 1.5rem; text-align: center; font-weight: bold"><span t-field="doc.code"/> : <t t-if="doc.template_id"><span t-field="doc.template_id.description"/></t><t t-else=""><span t-field="doc.name"/></t>
|
|
<t t-if="doc.parent_agreement_id"><span t-field="doc.parent_agreement_id.code"/></t></h1>
|
|
<t t-if="doc.parent_agreement_id">
|
|
<h1 style="font-size: 1.5rem; text-align: center; font-weight: bold"><span t-field="doc.parent_agreement_id.name"/></h1>
|
|
</t>
|
|
|
|
<div style="font-size: 1.5rem; text-align: center;" name="description">
|
|
|
|
<span t-field="doc.name"/>
|
|
</div>
|
|
<!--<h2>Parties</h2>-->
|
|
<div name="parties">
|
|
<t t-if="doc.use_parties_content">
|
|
<p t-field="doc.dynamic_parties"/>
|
|
</t>
|
|
|
|
<t t-else="">
|
|
<div class="my-3">
|
|
<h6 style="font-weight: bold">Entre</h6>
|
|
<div name="company_address">
|
|
<t t-set="a" t-value="doc.company_id.partner_id"/>
|
|
<div>
|
|
<p class="mb-0">
|
|
<span style="font-weight: bold;" t-field="a.name"/>,
|
|
<span t-field="a.partner_company_type_id"/>,
|
|
dont les activités sont situées au
|
|
<span t-field="a.street"/>,
|
|
<span t-field="a.zip"/>
|
|
<span t-field="a.city"/>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div name="company_contact">
|
|
Representée par <span style="font-weight: bold" t-field="doc.company_contact_id.name"/>, en qualité de <span t-field="doc.company_contact_id.function"/>.
|
|
</div>
|
|
</div>
|
|
|
|
<div class="my-3">
|
|
<h6 style="font-weight: bold">Et</h6>
|
|
<div name="partner_address">
|
|
<t t-set="a" t-value="doc.partner_id"/>
|
|
<div>
|
|
<p class="mb-0">
|
|
<span style="font-weight: bold;" t-field="a.name"/>,
|
|
<span t-field="a.partner_company_type_id"/>, dont les activités sont situées au
|
|
<span t-field="a.street"/>,
|
|
<span t-field="a.zip"/>
|
|
</p>
|
|
</div>
|
|
<div name="company_contact">
|
|
Representée par <span style="font-weight: bold" t-field="doc.partner_contact_id.name"/>, en qualité de <span t-field="doc.partner_contact_id.function"/>.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="text-align:right;" name="company_contact_denomination">
|
|
Ci-après dénommés <span style="font-weight: bold">"Les partenaires"</span> ou <span style="font-weight: bold">"Les parties"</span>
|
|
</div>
|
|
</t>
|
|
<!--
|
|
<t t-else="">
|
|
<h3>Company Information</h3>
|
|
<div name="company_address">
|
|
<address t-field="doc.company_id.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</div>
|
|
<div name="company_contact">
|
|
Represented by <span t-field="doc.company_contact_id.name"/>.
|
|
</div>
|
|
<h3>Partner Information</h3>
|
|
<div name="partner_address">
|
|
<address t-field="doc.partner_id" t-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": True}"/>
|
|
</div>
|
|
<div name="partner_contact">
|
|
Represented by <span t-field="doc.partner_contact_id.name"/>.
|
|
</div>
|
|
</t>
|
|
-->
|
|
</div>
|
|
<!--<h2>Agreement</h2>-->
|
|
<h3 style="font-size: 1.2rem;">Préambule</h3>
|
|
<table class="table table-condensed">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<t t-foreach="doc.recital_ids" t-as="r">
|
|
<t t-if="r.title">
|
|
<h3 style="font-size: 1rem;" t-field="r.title"/>
|
|
</t>
|
|
<p t-field="r.dynamic_content"/>
|
|
</t>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>C'est dans ce contexte que les parties se sont rapprochées afin de convenir de ce qui suit: </p>
|
|
<t t-foreach="doc.sections_ids" t-as="s">
|
|
<table class="table table-condensed">
|
|
<tbody class="section_tbody">
|
|
<tr>
|
|
<td>
|
|
|
|
<t t-if="s.title">
|
|
<h3 style="font-size: 1.2rem;" t-field="s.title"/>
|
|
</t>
|
|
<p t-field="s.dynamic_content"/>
|
|
<ol>
|
|
<li t-foreach="s.clauses_ids" t-as="c">
|
|
<t t-if="c.title">
|
|
<h4 style="font-size: 1rem;" t-field="c.title"/>
|
|
</t>
|
|
<p t-field="c.dynamic_content"/>
|
|
</li>
|
|
</ol>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</t>
|
|
<t t-if="special_term">
|
|
<h2>Special Terms</h2>
|
|
<div name="special_term">
|
|
<p t-field="doc.dynamic_special_terms"/>
|
|
</div>
|
|
</t>
|
|
<!--<h2>Signatures</h2>-->
|
|
<table class="table table-condensed">
|
|
<theader>
|
|
<tr>
|
|
<th>Signatures</th>
|
|
<th></th>
|
|
</tr>
|
|
</theader>
|
|
<tbody class="section_tbody">
|
|
<tr>
|
|
<td>
|
|
<p style="font-weight: bold;">Pour <span t-field="doc.company_id.partner_id"/></p>
|
|
<p><span t-field="doc.company_contact_id.name"/>, <span t-field="doc.company_contact_id.function"/></p>
|
|
<p>le <span t-field="doc.company_signed_date"/><br/><br/><br/><br/><br/><br/><br/></p>
|
|
</td>
|
|
<td>
|
|
<p style="font-weight: bold;">Pour <span t-field="doc.partner_id"/>,</p>
|
|
<p><span t-field="doc.partner_contact_id.name"/>, <span t-field="doc.partner_contact_id.function"/></p>
|
|
<p>le <span t-field="doc.partner_signed_date"/><br/><br/><br/><br/><br/><br/><br/> </p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|