commit
e4c3bf2e30
|
|
@ -5,7 +5,7 @@
|
|||
<field name="name">Custom Paper</field>
|
||||
<field name="default" eval="True"/>
|
||||
<field name="format">custom</field>
|
||||
<field name="page_height">95</field>
|
||||
<field name="page_height">100</field>
|
||||
<field name="page_width">60</field>
|
||||
<field name="orientation">Landscape</field>
|
||||
<field name="margin_top">5.00</field>
|
||||
|
|
@ -30,117 +30,61 @@
|
|||
<template id="print_member_ship_card">
|
||||
<t t-call="web.html_container">
|
||||
<t t-call="web.internal_layout">
|
||||
<div style="border: 2px solid black; padding: 15px; margin-bottom: 40px; height: 90%;">
|
||||
<tr t-if="free_member==True">
|
||||
<div style="border-bottom: 2px solid black; margin-bottom: 15px; font-size: 15px !important;">
|
||||
<h2 style=" text-align: center;">Free Member</h2>
|
||||
<div t-attf-style="background-color:{{membrship_level_color }};" style="padding: 15px; margin-bottom: 40px; height: 90%;">
|
||||
<t t-set="company" t-value="user.company_id"/>
|
||||
|
||||
<tr>
|
||||
<div style="margin-bottom: 15px; font-size: 15px !important;">
|
||||
<h2 t-esc="company.name"/>
|
||||
<!-- عرض شعار الشركة -->
|
||||
<img t-att-src="'data:image/png;base64,%s' % (company.logo or '')"
|
||||
style="max-height: 50px;"/>
|
||||
</div>
|
||||
</tr>
|
||||
<tr t-else="free_member==False">
|
||||
<tr>
|
||||
<div style="border-bottom: 2px solid black; margin-bottom: 15px;">
|
||||
<h2 style="text-align:center;">
|
||||
<t t-esc="membership_product[0]"/>
|
||||
</h2>
|
||||
</div>
|
||||
</tr>
|
||||
</tr>
|
||||
<div style="display: -webkit-box; display: flex; -webkit-box-pack: space-between; justify-content: space-between; -webkit-align-self: center align-self: center; align-items: center; ">
|
||||
<div>
|
||||
<img style="width: 120px; border-radius: 5px;"
|
||||
t-attf-src="data:image/*;base64,{{image}}"/>
|
||||
</div>
|
||||
<div class="session_1"
|
||||
style="margin-left: 15px; margin-top: 0px; padding-top: 0px; ">
|
||||
<tr t-if="free_member==True">
|
||||
<tr>
|
||||
<h2 style="text-align:center;line-height: .1;">
|
||||
</h2>
|
||||
</tr>
|
||||
<tr>
|
||||
style="margin-left: 15px;margin-right:20px; margin-top: 0px; padding-top: 0px; ">
|
||||
<tr dir="rtl">
|
||||
<tr dir="rtl">
|
||||
<h2 t-if="name"
|
||||
style="text-align:left; margin-top: 0px;">
|
||||
Name:
|
||||
الاسم:
|
||||
<span t-esc="name"/>
|
||||
</h2>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<h2 t-if="phone" style="text-align:left; ">
|
||||
Phone
|
||||
No:
|
||||
<span t-esc="phone" style="font-size: 25px !important; "/>
|
||||
<tr dir="rtl">
|
||||
<h2 t-if="membership_no" style="text-align:left; ">
|
||||
رقم العضوية:
|
||||
<span t-esc="membership_no" style="font-size: 25px !important; "/>
|
||||
</h2>
|
||||
</tr>
|
||||
<tr>
|
||||
<h2 t-if="function"
|
||||
<tr dir="rtl">
|
||||
<h2 t-if="product_id"
|
||||
style="text-align:left;">
|
||||
Job:
|
||||
<span t-esc="function"/>
|
||||
نوع العضوية:
|
||||
<span t-esc="product_id"/>
|
||||
<strong>المستوى:</strong> <t t-esc="membrship_level"/>
|
||||
|
||||
</h2>
|
||||
</tr>
|
||||
<tr dir="rtl">
|
||||
<h2 t-if="product_id"
|
||||
style="text-align:left;">
|
||||
تاريخ الانتهاء:
|
||||
<span t-esc="membership_end_date"/>
|
||||
</h2>
|
||||
</tr>
|
||||
<br/>
|
||||
<br/>
|
||||
</tr>
|
||||
<tr t-else="free_member==False">
|
||||
<tr>
|
||||
<h2 style="text-align:center;line-height: .1;">
|
||||
</h2>
|
||||
</tr>
|
||||
<tr>
|
||||
<h2 t-if="name"
|
||||
style="text-align:left; margin-top: 0px; ">
|
||||
Name:
|
||||
<span t-esc="name"/>
|
||||
</h2>
|
||||
</tr>
|
||||
<tr>
|
||||
<h2 t-if="phone" style="text-align:left;">
|
||||
Phone
|
||||
No:
|
||||
<span t-esc="phone"/>
|
||||
</h2>
|
||||
</tr>
|
||||
<tr>
|
||||
<h2 style="text-align:left;">Start Date:
|
||||
<span t-esc="start_date"/>
|
||||
</h2>
|
||||
</tr>
|
||||
<tr>
|
||||
<h2 style="text-align:left;">End Date:
|
||||
<span t-esc="end_date"/>
|
||||
</h2>
|
||||
</tr>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="border: 2px solid black; padding: 15px; height: 90%;">
|
||||
<div class="session_2" style="width: 500px; ">
|
||||
<tr>
|
||||
<h2 style="text-align:left;">
|
||||
<span t-esc="company_name"/>
|
||||
</h2>
|
||||
<h2 style="text-align:left;">
|
||||
<span t-esc="company_address"/>,
|
||||
<br/>
|
||||
<span t-esc="city"/>,
|
||||
<span t-esc="state"/>,
|
||||
<span t-esc="country"/>
|
||||
</h2>
|
||||
<h2 style="text-align:left;">
|
||||
Email:
|
||||
<span t-esc="company_email"/>
|
||||
</h2>
|
||||
<h2 style="text-align:left;">
|
||||
Contact:
|
||||
<span t-esc="company_phone"/>
|
||||
</h2>
|
||||
<h2 style="text-align:left;">
|
||||
<span t-esc="website"/>
|
||||
</h2>
|
||||
</tr>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue