Skip to content
Extraits de code Groupes Projets
Valider 301a73d6 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

Change template compo one page

parent 86ff437e
Branches
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
<field name="page_height">0</field> <field name="page_height">0</field>
<field name="page_width">0</field> <field name="page_width">0</field>
<field name="orientation">Landscape</field> <field name="orientation">Landscape</field>
<field name="margin_top">40</field> <field name="margin_top">15</field>
<field name="margin_bottom">32</field> <field name="margin_bottom">10</field>
<field name="margin_left">7</field> <field name="margin_left">7</field>
<field name="margin_right">7</field> <field name="margin_right">7</field>
<field name="header_line" eval="False" /> <field name="header_line" eval="False" />
<field name="header_spacing">25</field> <field name="header_spacing">15</field>
<field name="dpi">90</field> <field name="dpi">90</field>
</record> </record>
......
...@@ -43,3 +43,7 @@ address .align-items-baseline { ...@@ -43,3 +43,7 @@ address .align-items-baseline {
.o_report_layout_boxed .table-prepa tbody td { .o_report_layout_boxed .table-prepa tbody td {
font-size: 17px; font-size: 17px;
} }
.o_report_compo{
font-size: 13px !important;
}
...@@ -6,65 +6,57 @@ ...@@ -6,65 +6,57 @@
<t t-call="ap_report.external_layout_spe"> <t t-call="ap_report.external_layout_spe">
<t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)" /> <t t-set="doc" t-value="doc.with_context(lang=doc.partner_id.lang)" />
<div class="page"> <div class="page">
<div class="row"> <div class="row mt-2 mb-2">
<div class="col-8" name="div_outgoing_address"> <div class="col-5" name="div_outgoing_address">
<h4> <span>
<t <strong>
t-if="not (env.context.get('proforma', False) or is_pro_forma)" <span t-if="doc.state not in ['draft','sent']">Commande n° </span>
> <span t-if="doc.state in ['draft','sent']">Devis N° </span>
<span <span t-field="doc.name" /><br/>
t-if="doc.state not in ['draft','sent']" </strong>
>Commande n° </span> Du <span t-field="doc.date_order" t-options='{"widget": "date"}'/><br/>
<span Référent projet: <span t-field="doc.user_id"/>
t-if="doc.state in ['draft','sent']" </span>
>Devis N° </span>
</t>
<t
t-if="env.context.get('proforma', False) or is_pro_forma"
>
<span>Facture pro-forma n° </span>
</t>
<span t-field="doc.name" />
</h4>
<div class="mw-100 mb-3">
<p class="m-0">Du <span
t-field="doc.date_order"
t-options='{"widget": "date"}'
/></p>
<p class="m-0">Référent projet: <span
t-field="doc.user_id"
/></p>
</div> </div>
<div class="col-3 text-center">
<h2 class="text-center">Compositions</h2>
</div> </div>
<div class="col-4" name="div_outgoing_address"> <div class="col-3" name="div_outgoing_address">
<div> <div>
<div <span t-field="doc.partner_id.name"/><br/>
t-field="doc.partner_id" <t t-if="doc.partner_id.street"><span t-field="doc.partner_id.street"/><br/></t>
t-options='{"widget": "contact", "fields": ["address", "name", "phone"], "no_marker": True, "phone_icons": True}' <t t-if="doc.partner_id.street2"><span t-field="doc.partner_id.street2"/><br/></t>
/> <t t-if="doc.partner_id.zip"><span t-field="doc.partner_id.zip"/></t> -
<t t-if="doc.partner_id.city"><span t-field="doc.partner_id.city"/></t>
</div> </div>
</div> </div>
<div class="col-1 text-right">
<img
t-if="doc.company_id.logo"
t-att-src="image_data_uri(doc.company_id.logo)"
style="max-height: 50px;"
alt="Logo"
/>
</div>
</div> </div>
<br />
<t t-foreach="doc.sale_project_ids" t-as="project"> <t t-foreach="doc.sale_project_ids" t-as="project">
<div style="page-break-after: always;"> <div style="page-break-after: always;">
<div class="row mt32 mb32" name="projets"> <div class="row" name="projets">
<div class="col-12"> <div class="col-12">
<h6>Projet<span <span><strong>PROJET<span
t-field="project.name" t-field="project.name"
/></h6> /></strong></span>
</div> </div>
</div> </div>
<div class="row mt32 mb32" name="projets"> <div class="row" name="projets">
<t <t
t-foreach="project.intervention_ids" t-foreach="project.intervention_ids"
t-as="intervention" t-as="intervention"
> >
<div class="col-4"> <div class="col-4">
<h7 class="text-center">Intervention n° <span <span class="text-center">INTERVENTION N° <span
t-field="intervention.name" t-field="intervention.name"
/></h7> /></span>
<t <t
t-if="intervention.sequence_type == 'sequence'" t-if="intervention.sequence_type == 'sequence'"
> >
...@@ -169,7 +161,6 @@ ...@@ -169,7 +161,6 @@
</div> </div>
</t> </t>
</div> </div>
</t> </t>
</template> </template>
......
...@@ -100,29 +100,7 @@ ...@@ -100,29 +100,7 @@
<template id="ap_external_layout_generic_compo"> <template id="ap_external_layout_generic_compo">
<div <div
t-attf-class="header o_company_#{company.id}_layout" t-attf-class="article o_report_layout_boxed o_report_compo o_company_#{company.id}_layout"
t-att-style="report_header_style"
>
<div class="row">
<div class="col-4">
</div>
<div class="col-4 text-center">
<h2 class="mt0 text-center">Compositions</h2>
</div>
<div class="col-4 mb4 text-right">
<img
t-if="company.logo"
t-att-src="image_data_uri(company.logo)"
style="max-height: 50px;"
alt="Logo"
/>
</div>
<!-- <div class="col-9 text-right" style="margin-top:22px;" t-field="company.report_header" name="moto"/>-->
</div>
</div>
<div
t-attf-class="article o_report_layout_boxed o_company_#{company.id}_layout"
t-att-data-oe-model="o and o._name" t-att-data-oe-model="o and o._name"
t-att-data-oe-id="o and o.id" t-att-data-oe-id="o and o.id"
t-att-data-oe-lang="o and o.env.context.get('lang')" t-att-data-oe-lang="o and o.env.context.get('lang')"
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter