185 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			185 lines
		
	
	
		
			10 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0" encoding="utf-8"?>
 | |
| <odoo>
 | |
|     <data>
 | |
|         <!-- Invoice Body -->
 | |
|         <template id="report_invoice_document">
 | |
|             <t t-call="report.external_layout">
 | |
|                 <t t-set="o" t-value="o.with_context({'lang':o.partner_id.lang})"/>
 | |
|                 <div class="page">
 | |
|                     <div class="row">
 | |
|                         <div class="col-xs-6" name="invoice_address">
 | |
|                             <strong>
 | |
|                                 <span t-esc="o.partner_id.name"/>
 | |
|                             </strong>
 | |
|                             <br/>
 | |
|                             <span t-esc="o.partner_id.street"/>
 | |
|                             <br/>
 | |
|                             <span t-esc="o.partner_id.zip"/>
 | |
|                             <span t-esc="o.partner_id.city"/>
 | |
|                             <br/>
 | |
|                             <span t-esc="o.partner_id.country_id.name"/>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                     <div class="row">
 | |
|                         <div class="col-xs-offset-6 col-xs-6 text-right" style="padding-right:0;">
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.partner_id.ref">
 | |
|                                 <span class="col-xs-6 text-left">Kundennr.:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.partner_id.ref"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.partner_id.vat">
 | |
|                                 <span class="col-xs-6 text-left">Ihre UID:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.partner_id.vat"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.name">
 | |
|                                 <span class="col-xs-6 text-left">Ihre Referenz:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.name"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.origin">
 | |
|                                 <span class="col-xs-6 text-left">Referenzbeleg:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.origin"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.date_invoice">
 | |
|                                 <span class="col-xs-6 text-left">Rechnungsdatum:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.date_invoice"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.user_id">
 | |
|                                 <span class="col-xs-6 text-left">Ansprechpartner:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.user_id"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.user_id and o.user_id.email">
 | |
|                                 <span class="col-xs-6 text-left">Email:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.user_id.email"/>
 | |
|                             </div>
 | |
|                             <div class="col-xs-12" style="padding-right:2px;" t-if="o.user_id and o.user_id.phone">
 | |
|                                 <span class="col-xs-6 text-left">Telefon:</span>
 | |
|                                 <span class="col-xs-6" t-field="o.user_id.phone"/>
 | |
|                             </div>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                     <div class="row oe_mt32">
 | |
|                         <div class="col-xs-12 text-left">
 | |
|                             <h4>
 | |
|                                 <span t-if="o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')">
 | |
|                                     Rechnung
 | |
|                                 </span>
 | |
|                                 <span t-if="o.type == 'out_invoice' and o.state == 'proforma2'">Proforma Rechnung</span>
 | |
|                                 <span t-if="o.type == 'out_invoice' and o.state == 'draft'">Rechnungsentwurf</span>
 | |
|                                 <span t-if="o.type == 'out_invoice' and o.state == 'cancel'">Stornierte Rechnung</span>
 | |
|                                 <span t-if="o.type == 'out_refund'">Gutschrift</span>
 | |
|                                 <span t-if="o.type == 'in_refund'">Lieferantenstorno</span>
 | |
|                                 <span t-if="o.type == 'in_invoice'">Eingangsrechnungen</span>
 | |
|                                 <span t-field="o.number"/>
 | |
|                             </h4>
 | |
|                         </div>
 | |
|                     </div>
 | |
| 
 | |
|                     <table class="oe_mt32 table table-condensed">
 | |
|                         <t t-set="art_number_is_set"
 | |
|                            t-value="field_set_in_lines(o.invoice_line_ids, 'product_id.default_code')"/>
 | |
|                         <t t-set="discount_is_set" t-value="field_set_in_lines(o.invoice_line_ids, 'discount')"/>
 | |
|                         <thead>
 | |
|                             <tr>
 | |
|                                 <th class="text-center">Pos</th>
 | |
|                                 <th class="text-center" t-if="art_number_is_set">Art-Nr.</th>
 | |
|                                 <th class="text-left">Bezeichnung</th>
 | |
|                                 <th class="text-center">Menge</th>
 | |
|                                 <th class="text-right">Einzelpreis</th>
 | |
|                                 <th class="text-right" t-if="discount_is_set">Rabatt</th>
 | |
|                                 <th class="text-right">Gesamtpreis</th>
 | |
|                             </tr>
 | |
|                         </thead>
 | |
| 
 | |
|                         <tbody class="invoice_tbody">
 | |
|                             <t t-set="pos_nr" t-value="0"/>
 | |
|                             <tr t-foreach="o.invoice_line_ids" t-as="invoice_line">
 | |
|                                 <t t-set="pos_nr" t-value="pos_nr+1"/>
 | |
|                                 <td class="text-center">
 | |
|                                     <span t-esc="pos_nr"/>
 | |
|                                 </td>
 | |
|                                 <td class="text-center" t-if="art_number_is_set">
 | |
|                                     <span t-field="invoice_line.product_id.default_code"/>
 | |
|                                 </td>
 | |
|                                 <td class="text-left">
 | |
|                                     <span t-field="invoice_line.name"/>
 | |
|                                 </td>
 | |
|                                 <td class="text-center">
 | |
|                                     <span t-field="invoice_line.quantity"/>
 | |
|                                 </td>
 | |
|                                 <td class="text-right">
 | |
|                                     <span t-field="invoice_line.price_unit"/>
 | |
|                                 </td>
 | |
|                                 <td class="text-right" t-if="discount_is_set">
 | |
|                                     <span t-field="invoice_line.discount"/>
 | |
|                                 </td>
 | |
|                                 <td class="text-right">
 | |
|                                     <span t-field="invoice_line.price_subtotal"/>
 | |
|                                 </td>
 | |
|                             </tr>
 | |
|                         </tbody>
 | |
|                     </table>
 | |
| 
 | |
|                     <div class="row">
 | |
| 
 | |
|                         <div class="oe_mt32 col-xs-4 pull-right">
 | |
|                             <table class="table table-condensed">
 | |
|                                 <tr class="border-black">
 | |
|                                     <td>
 | |
|                                         <strong>Zwischensumme</strong>
 | |
|                                     </td>
 | |
|                                     <td class="text-right">
 | |
|                                         <span t-field="o.amount_untaxed"
 | |
|                                               t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr t-foreach="o.tax_line_ids" t-as="tax_line">
 | |
|                                     <td>
 | |
|                                         <span t-field="tax_line.name"/>
 | |
|                                     </td>
 | |
|                                     <td class="text-right">
 | |
|                                         <span t-field="tax_line.amount"
 | |
|                                               t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                                 <tr class="border-black">
 | |
|                                     <td>
 | |
|                                         <strong>Rechnungsbetrag</strong>
 | |
|                                     </td>
 | |
|                                     <td class="text-right">
 | |
|                                         <span t-field="o.amount_total"
 | |
|                                               t-options='{"widget": "monetary", "display_currency": o.currency_id}'/>
 | |
|                                     </td>
 | |
|                                 </tr>
 | |
|                             </table>
 | |
|                         </div>
 | |
|                     </div>
 | |
|                     <div class="row">
 | |
|                         <p class="col-xs-12">
 | |
|                             <span t-field="o.comment"/>
 | |
|                         </p>
 | |
|                         <p class="col-xs-12">
 | |
|                             <t t-if="o.payment_term_id.note">
 | |
|                                 <t t-esc="o.payment_term_id.note"/>
 | |
|                                 <br/>
 | |
|                             </t>
 | |
|                         </p>
 | |
|                     </div>
 | |
|                 </div>
 | |
|             </t>
 | |
|         </template>
 | |
| 
 | |
|         <template id="account.report_invoice">
 | |
|             <t t-call="report.html_container">
 | |
|                 <t t-foreach="docs" t-as="o">
 | |
|                     <t t-call="dp_reports_account.report_invoice_document" t-lang="o.partner_id.lang"/>
 | |
|                 </t>
 | |
|             </t>
 | |
|         </template>
 | |
| 
 | |
|     </data>
 | |
| 
 | |
|     <record id="account.account_invoices" model="ir.actions.report.xml">
 | |
|         <field name="paperformat_id" ref="dp_reports.paperformat_a4_european"/>
 | |
|     </record>
 | |
| </odoo>
 |