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.
 
 
 
 
 

239 lines
9.5 KiB

<odoo>
<report id="report_beescard_cm" string="Beescaard" model="res.partner"
report_type="qweb-html" file="beesdoo_base.beescard_template_cm"
name="beesdoo_base.beescard_template_cm" />
<!-- Use paper format a4 low margin -->
<template id="beescard_template_cm">
<head>
<style type="text/css">
/* Roboto Regular */
@font-face {
font-family: 'Roboto-Regular';
font-style: normal;
src: local('Roboto Regular'),
url('/beesdoo_base/static/font/Roboto-Regular.ttf')
format('truetype');
}
/* Roboto Bold */
@font-face {
font-family: 'Roboto-Bold';
font-style: normal;
src: local('Roboto Bold'),
url('/beesdoo_base/static/font/Roboto-Bold.ttf')
format('truetype');
}
.size066cm {
width: 0.66cm;height: 0.66cm;
}
.bd-lft-black {
border-left: 1px solid black;
}
.bd-rgt-black {
border-right: 1px solid black;
}
.bd-bt-black {
border-bottom: 1px solid black;
}
.mainTable {
width: 14.02cm;
height: 9.39cm;
table-layout:fixed;
display: inline-block;
}
.parentContainer {
display: flex;
}
.imgContainer {
width: 4.98cm;
vertical-align:bottom;
height: 6.87cm;
display: inline-block;
}
.canvasImg {
padding-top:0.2cm;
padding-left:0.1cm;
padding-bottom:0.2cm;
display: flex;
}
.imgRestrict {
width:4.7cm;
height:6.4cm;
margin: auto;
}
.pt03 {
padding-top:0.3cm
}
.partnerName {
}
.infosContainer p {
padding-top: 0.9cm;
}
.infosContainer p {
font-size: 22px;
}
.infosContainer {
margin-left: auto;
width:7.72cm;
height: 6.87cm;
position: relative;
}
.alignText {
text-align: left;
padding-top: 0.2cm;
font-size: 1.2em;
}
.alignBtAbs {
position: absolute;
bottom: 0;
}
.barCodeSize {
width:7.2cm;
height:2.52cm
}
.pt03 {
padding-top:0.3cm
}
.fs08 {
font-size: 0.8em;
}
.fs11 {
font-size:1.1em;
}
.lineSize {
width:7.2cm;
height:0.2cm
}
.robotoB {
font-family: 'Roboto-Bold';
}
.robotoR {
font-family: 'Roboto-Regular';
}
.txtCenter {
text-align:center;
}
.ptb02 {
padding-top:0.2cm;
padding-bottom:0.2cm;
}
.beesInfos p {
margin: auto;
}
.beesInfos {
display: flex;
vertical-align:center;
height: 1.20cm;
}
#tableInfos {
width: 14.02cm;
height: 9.39cm;
table-layout:fixed;
display: inline-block;
}
.logoRestrict {
width: 12.7cm;
height: 6.87cm;
margin: auto;
}
.logo {
display: block;
margin-left: auto;
margin-right: auto;
margin-top:0.2cm;
margin-bottom:0.2cm;
width:6.46cm;
height:6.46cm
}
</style>
</head>
<!-- X1.133 -->
<t t-call="report.html_container">
<div class="page">
<t t-foreach="docs" t-as="partner">
<div class="mainTable">
<div>
<div class="bd-bt-black size066cm"></div>
</div>
<div class="parentContainer">
<div class="imgContainer">
<div class="canvasImg">
<img alt="Embedded Image" src="/beesdoo_base/static/src/img/logo-beescoop.svg"
class="imgRestrict" />
</div>
</div>
<div class="infosContainer">
<p class="alignText partnerName">
<span t-raw="partner.first_name and partner.first_name[:30] or ''" class="robotoR" />
<br />
<strong t-raw="partner.last_name and partner.last_name[:26] or ''" class="robotoB" />
<br />
</p>
<p class="robotoR fs08">
<t t-if="partner.parent_eater_id and partner.parent_eater_id.cooperator_type == 'share_a'">
<span t-raw="'[' + (partner.parent_eater_id.first_name and partner.parent_eater_id.first_name[:30] or '') + ' ' + (partner.parent_eater_id.last_name and partner.parent_eater_id.last_name[:30] or '') + ']'" class="robotoR" />
</t>
<t t-if="partner.parent_eater_id and partner.parent_eater_id.cooperator_type == 'share_b'">
<span t-raw="'[' + (partner.parent_eater_id.name[:60] or '') + ']'" class="robotoR" />
</t>
</p>
<div class="alignBtAbs">
<div style="pt03">
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s&amp;humanreadable=%s'%('EAN13', partner.barcode if not partner.parent_eater_id else partner.parent_barcode, 340, 70, 1)" class="barCodeSize" />
</div>
<div class="ptb02">
<t t-if="partner.cooperator_type == 'share_a' or partner.parent_eater_id.cooperator_type == 'share_a'">
<img src="/beesdoo_base/static/src/img/redline.png" class="lineSize" />
</t>
<t t-if="partner.cooperator_type == 'share_b' or partner.parent_eater_id.cooperator_type == 'share_b'">
<img src="/beesdoo_base/static/src/img/blueline.png" class="lineSize" />
</t>
</div>
</div>
</div>
</div>
<div>
<div class="beesInfos">
<p style="fs08 robotoR txtCenter">En cas de perte, prévenez-nous via membre@bees-coop.be</p>
</div>
</div>
<div>
<div class="bd-bt-black size066cm"></div>
<div class="bd-lft-black bd-rgt-black"></div>
<div class="bd-bt-black size066cm"></div>
</div>
</div>
<div id="tableInfos" style="width: 14.02cm;height: 9.39cm;table-layout:fixed;display: inline-block;">
<div>
<div class="bd-bt-black size066cm"></div>
<div class="bd-lft-black bd-rgt-black"></div>
<div class="bd-bt-black size066cm"></div>
</div>
<div>
<div style="logoRestrict">
<img src="/beesdoo_base/static/src/img/logo.png" class="logo" />
</div>
</div>
<div>
<div style="height: 1.20cm;">
<p class="txtCenter robotoR fs11">www.bees-coop.be</p>
</div>
</div>
<div>
<div class="bd-bt-black size066cm"></div>
<div class="bd-lft-black bd-rgt-black"></div>
<div class="bd-bt-black size066cm"></div>
</div>
</div>
<br />
</t>
</div>
</t>
</template>
</odoo>