First commit for gn_agreement: add template for Convention de Partenariat
#2
Merged
makayabou
merged 2 commits from 16-agreement-dev
into 16.0
8 months ago
@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
#from . import models
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "France - Contrats",
|
||||
"version": "16.0.0.0.1",
|
||||
"category": "Payroll",
|
||||
"summary": "Templates for French contracts and agreements",
|
||||
"author": "Le Garage Numérique",
|
||||
"maintainers": ["makayabou"],
|
||||
"website": "https://odoo.legaragenumerique.fr",
|
||||
"depends": [
|
||||
"agreement",
|
||||
"agreement_legal",
|
||||
"partner_company_type"
|
||||
],
|
||||
"data": [
|
||||
"data/gn_agreement_document_layout.xml",
|
||||
"views/gn_agreement_bipartisan_agreement.xml",
|
||||
"views/gn_agreement_external_layout_striped_footer.xml",
|
||||
],
|
||||
"license": "LGPL-3",
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="gn_agreement.report_layout" model="report.layout">
|
||||
<field name="name">GN</field>
|
||||
<field name="sequence">6</field>
|
||||
<field name="view_id" ref="gn_agreement.external_layout_striped_footer"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
@ -0,0 +1,156 @@
|
||||
<?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>
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template id="gn_agreement.external_layout_striped_footer" inherit_id="web.external_layout_striped">
|
||||
<xpath expr="//div[contains(@class, 'text-muted') and span[contains(@class, 'page')] and span[contains(@class, 'topage')]]" position="replace">
|
||||
<div t-if="report_type == 'pdf'" class="text-muted">
|
||||
Page <span class="page"/> sur <span class="topage"/> -
|
||||
<t t-if="doc and doc._name == 'agreement'"><span t-field="doc.code"/><span> : </span><t t-if="doc.template_id"><span t-field="doc.template_id.description"/></t> <t t-if="doc.parent_agreement_id"><span t-field="doc.parent_agreement_id.code"/></t><t t-else=""><span t-field="doc.name"/> </t></t><span t-if="display_name_in_footer" t-field="o.name"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
Loading…
Reference in New Issue