86 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			3.6 KiB
		
	
	
	
		
			XML
		
	
	
| <odoo>
 | |
| <data>
 | |
|     <!-- Sale Order Body -->
 | |
|     <template id="report_saleorder_document" inherit_id="sale.report_saleorder_document">
 | |
|         <th t-if="display_discount" position="replace">
 | |
|             <th t-if="display_discount and doc.print_discount" class="text-right" groups="sale.group_discount_per_so_line">Disc.(%)</th>
 | |
|         </th>
 | |
|         <td t-if="display_discount" position="replace">
 | |
|             <td t-if="display_discount and doc.print_discount" class="text-right" groups="sale.group_discount_per_so_line">
 | |
|                 <span t-field="l.discount"/>
 | |
|             </td>
 | |
|         </td>
 | |
| 
 | |
|         <xpath expr="//div[@class='page']/h2" position='replace'>
 | |
|             <h2>
 | |
|                 <span t-if="doc.state not in ['draft','sent']">Order # </span>
 | |
|                 <span t-if="doc.state in ['draft','sent']">Quotation # </span>
 | |
|                 <span t-field="doc.name"/>
 | |
|             </h2>
 | |
|         </xpath>
 | |
| 
 | |
|         <xpath expr="//div[@t-if='doc.user_id.name']" position='replace'/>
 | |
|         <xpath expr="//div[@name='payment_term']" position='attributes'>
 | |
|             <attribute name="style">display:none</attribute>
 | |
|         </xpath>
 | |
|         <div name="total" position="replace">
 | |
|             <div class="row" name="total">
 | |
|                 <div class="col-xs-4 pull-right">
 | |
|                     <table class="table table-condensed">
 | |
|                         <tr class="border-black">
 | |
|                             <td><strong>Total Without Taxes</strong></td>
 | |
|                             <td class="text-right">
 | |
|                                 <span t-field="doc.amount_untaxed"
 | |
|                                     t-field-options='{"widget": "monetary", "display_currency": "doc.pricelist_id.currency_id"}'/>
 | |
|                             </td>
 | |
|                         </tr>
 | |
|                         <tr>
 | |
|                             <td>Taxes</td>
 | |
|                             <td class="text-right">
 | |
|                                 <span t-field="doc.amount_tax"
 | |
|                                     t-field-options='{"widget": "monetary", "display_currency": "doc.pricelist_id.currency_id"}'/>
 | |
|                             </td>
 | |
|                         </tr>
 | |
|                         <tr class="border-black">
 | |
|                             <td><strong>Total</strong></td>
 | |
|                             <td class="text-right">
 | |
|                                 <span t-field="doc.amount_total"
 | |
|                                     t-field-options='{"widget": "monetary", "display_currency": "doc.pricelist_id.currency_id"}'/>
 | |
|                             </td>
 | |
|                         </tr>
 | |
|                     </table>
 | |
|                 </div>
 | |
|             </div>
 | |
|         </div>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Render Report with Header -->
 | |
|     <template id="sale.report_saleorder">
 | |
|         <t t-call="report.html_container">
 | |
|             <t t-set="header" t-value="1"/>
 | |
|             <t t-foreach="docs" t-as="doc">
 | |
|                 <t t-call="dp_report.report_saleorder_document" t-lang="doc.partner_id.lang"/>
 | |
|             </t>
 | |
|         </t>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Render Report without Header -->
 | |
|     <template id="report_saleorder_blank">
 | |
|         <t t-call="report.html_container">
 | |
|             <t t-set="header" t-value="0"/>
 | |
|             <t t-foreach="docs" t-as="doc">
 | |
|                 <t t-call="dp_report.report_saleorder_document" t-lang="doc.partner_id.lang"/>
 | |
|             </t>
 | |
|         </t>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Create new Report -->
 | |
|     <report id="dp_report_saleorder_blank"
 | |
|         string="Angebot / Bestellung Ohne Logo"
 | |
|         model="sale.order"
 | |
|         report_type="qweb-pdf"
 | |
|         name="dp_report.report_saleorder_blank"
 | |
|         file="dp_report.report_saleorder_blank"/>
 | |
| </data>
 | |
| </odoo>
 |