Feedback 1618: Andruck - Angebotsdatum / Lieferdatum - PDF Reports

develop
Ahmed Aly 2018-04-11 16:40:55 +02:00
parent 50ffa19e4b
commit bedc4e6bd8
1 changed files with 63 additions and 27 deletions

View File

@ -13,21 +13,39 @@
<strong>Lieferadresse</strong> <strong>Lieferadresse</strong>
<div class="partner-data"> <div class="partner-data">
<span t-esc="o.partner_shipping_id.name"/> <span t-esc="o.partner_shipping_id.name"/>
<span t-esc="o.partner_shipping_id.street"/><br/> <span t-esc="o.partner_shipping_id.street"/>
<span t-esc="o.partner_shipping_id.zip"/> <span t-esc="o.partner_shipping_id.city"/><br/> <br/>
<span t-esc="o.partner_shipping_id.zip"/>
<span t-esc="o.partner_shipping_id.city"/>
<br/>
<span t-esc="o.partner_shipping_id.country_id.name"/> <span t-esc="o.partner_shipping_id.country_id.name"/>
</div> </div>
</div> </div>
<div class="col-xs-3"> <div class="col-xs-3">
<strong>Rechnungsadresse</strong> <strong>Rechnungsadresse</strong>
<div class="partner-data"> <div class="partner-data">
<span t-esc="o.partner_invoice_id.name"/><br/> <span t-esc="o.partner_invoice_id.name"/>
<span t-esc="o.partner_invoice_id.street"/><br/> <br/>
<span t-esc="o.partner_invoice_id.zip"/> <span t-esc="o.partner_invoice_id.city"/><br/> <span t-esc="o.partner_invoice_id.street"/>
<t t-if="o.partner_invoice_id.country_id"><span t-esc="o.partner_invoice_id.country_id.name"/><br/></t> <br/>
<t t-if="o.partner_invoice_id.email"><span t-esc="o.partner_invoice_id.email"/><br/></t> <span t-esc="o.partner_invoice_id.zip"/>
<t t-if="o.partner_invoice_id.phone"><span t-esc="o.partner_invoice_id.phone"/><br/></t> <span t-esc="o.partner_invoice_id.city"/>
<t t-if="o.partner_invoice_id.vat">UID-Nr.: <span t-esc="o.partner_invoice_id.vat"/></t> <br/>
<t t-if="o.partner_invoice_id.country_id">
<span t-esc="o.partner_invoice_id.country_id.name"/>
<br/>
</t>
<t t-if="o.partner_invoice_id.email">
<span t-esc="o.partner_invoice_id.email"/>
<br/>
</t>
<t t-if="o.partner_invoice_id.phone">
<span t-esc="o.partner_invoice_id.phone"/>
<br/>
</t>
<t t-if="o.partner_invoice_id.vat">UID-Nr.:
<span t-esc="o.partner_invoice_id.vat"/>
</t>
</div> </div>
</div> </div>
<div class="col-xs-3"> <div class="col-xs-3">
@ -36,31 +54,44 @@
</div> </div>
<div class="row mt32"/> <div class="row mt32"/>
<div class="row height-20"> <div class="row height-20">
<div class="col-xs-3"> <div class="col-xs-3" style="padding-right: 5px">
<strong><span class="col-xs-8" style="padding: 0px">Kundennr.:</span></strong> <strong>
<span class="col-xs-4" style="padding: 0px" t-field="o.partner_id.ref"/> <span class="col-xs-8" style="padding: 0px;width: 65%;">Kundennr.:</span>
</strong>
<span class="col-xs-4" style="padding: 0px;width: 35%;" t-field="o.partner_id.ref"/>
</div> </div>
<strong><span class="col-xs-2">Ansprechpartner:</span></strong> <strong>
<span class="col-xs-2">Ansprechpartner:</span>
</strong>
<span class="col-xs-3" t-field="o.user_id"/> <span class="col-xs-3" t-field="o.user_id"/>
<strong><span class="col-xs-2">Positionen:</span></strong> <strong>
<span class="col-xs-2">Positionen:</span>
</strong>
<span class="col-xs-2" t-field="o.positions"/> <span class="col-xs-2" t-field="o.positions"/>
</div> </div>
<div class="row height-20"> <div class="row height-20">
<div class="col-xs-3"> <div class="col-xs-3" style="padding-right: 5px">
<strong><span class="col-xs-8" style="padding: 0px">Angebotsdatum:</span></strong> <strong>
<span class="col-xs-4" style="padding: 0px" t-field="o.date_order" t-options='{"widget": "date"}'/> <span class="col-xs-8" style="padding: 0px;width: 65%;">Angebotsdatum:</span>
</strong>
<span class="col-xs-4" style="padding: 0px;width: 35%;" t-field="o.date_order"
t-options='{"widget": "date"}'/>
</div> </div>
<strong><span class="col-xs-2">Email:</span></strong> <strong>
<span class="col-xs-2">Email:</span>
</strong>
<span class="col-xs-3" t-field="o.user_id.email"/> <span class="col-xs-3" t-field="o.user_id.email"/>
<strong><span class="col-xs-2">Artikel:</span></strong> <strong>
<span class="col-xs-2">Artikel:</span>
</strong>
<span class="col-xs-2" t-field="o.num_items"/> <span class="col-xs-2" t-field="o.num_items"/>
</div> </div>
<div class="row"> <div class="row">
<div class="col-xs-3"> <div class="col-xs-3" style="padding-right: 5px">
<strong> <strong>
<span class="col-xs-8" style="padding: 0px">Lieferdatum:</span> <span class="col-xs-8" style="padding: 0px;width: 65%;">Lieferdatum:</span>
</strong> </strong>
<span class="col-xs-4" style="padding: 0px" t-field="o.earliest_scheduled_date" <span class="col-xs-4" style="padding: 0px;width: 35%;" t-field="o.earliest_scheduled_date"
t-options='{"widget": "date"}'/> t-options='{"widget": "date"}'/>
</div> </div>
<strong> <strong>
@ -99,7 +130,8 @@
<span t-esc="o._formatLang(order_line.product_uom_qty, False).strip('0').strip(',')"/> <span t-esc="o._formatLang(order_line.product_uom_qty, False).strip('0').strip(',')"/>
</td> </td>
<td class="text-right"> <td class="text-right">
<span t-field="order_line.weight"/> kg <span t-field="order_line.weight"/>
kg
</td> </td>
<td class="text-right"> <td class="text-right">
</td> </td>
@ -117,7 +149,8 @@
<br/> <br/>
<span t-field="order_line.name"/> <span t-field="order_line.name"/>
<t t-if="order_line.delivery_date"> <t t-if="order_line.delivery_date">
<br/><strong>Voraussichtliches Lieferdatum: </strong> <br/>
<strong>Voraussichtliches Lieferdatum:</strong>
<span t-field="order_line.delivery_date"/> <span t-field="order_line.delivery_date"/>
</t> </t>
</td> </td>
@ -190,7 +223,8 @@
</p> </p>
<p class="col-xs-12"> <p class="col-xs-12">
Gesamtgewicht: Gesamtgewicht:
<span t-esc="round(o.weight_total, 2)"/> kg <span t-esc="round(o.weight_total, 2)"/>
kg
<br/> <br/>
</p> </p>
<p class="col-xs-12" t-if="o.incoterm.name"> <p class="col-xs-12" t-if="o.incoterm.name">
@ -204,8 +238,10 @@
<br/> <br/>
</p> </p>
<p class="col-xs-12" t-if="o.state not in ['draft','sent']"> <p class="col-xs-12" t-if="o.state not in ['draft','sent']">
Bitte prüfen Sie bei Anlieferung sofort die Verpackung bzw. Ware auf Beschädigung!<br/> Bitte prüfen Sie bei Anlieferung sofort die Verpackung bzw. Ware auf Beschädigung!
Falls die beschädigte Ware angenommen wird, besteht kein Anspruch auf Kostenerstattung bzw. Austausch. <br/>
Falls die beschädigte Ware angenommen wird, besteht kein Anspruch auf Kostenerstattung bzw.
Austausch.
</p> </p>
<t t-if="o.state in ['draft','sent']"> <t t-if="o.state in ['draft','sent']">
<p class="col-xs-12"> <p class="col-xs-12">