85 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			3.2 KiB
		
	
	
	
		
			XML
		
	
	
| <odoo>
 | |
| <data>
 | |
| 
 | |
|     <template id="stock.external_layout_barcode_right" inherit_id="report.external_layout" primary="True">
 | |
|             <xpath expr="//t[@t-call='dp_report.external_layout_header']" position="attributes">
 | |
|                 <attribute name="t-call">stock.external_layout_header_barcode_right</attribute>
 | |
|             </xpath>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Delivery Body -->
 | |
|     <template id="report_delivery_document" inherit_id="delivery.report_delivery_document2">
 | |
|         <h2 position="replace">
 | |
|             <h2>
 | |
|                 LIEFERSCHEIN <span t-field="o.name"/>
 | |
|             </h2>
 | |
|         </h2>
 | |
|         <table class="table table-condensed" position="replace">
 | |
|             <table class="table table-condensed">
 | |
|                 <thead>
 | |
|                     <tr>
 | |
|                         <th name="td_sched_date_h"><strong>Scheduled Date</strong></th>
 | |
|                         <th><strong>Weight</strong></th>
 | |
|                     </tr>
 | |
|                 </thead>
 | |
|                 <tbody>
 | |
|                     <tr>
 | |
|                         <td name="td_sched_date">
 | |
|                             <span t-field="o.min_date"/>
 | |
|                         </td>
 | |
|                         <td>
 | |
|                             <span t-field="o.weight"/> kg
 | |
|                         </td>
 | |
|                     </tr>
 | |
|                 </tbody>
 | |
|             </table>
 | |
|         </table>
 | |
|         <xpath expr="//table[@t-if='not o.pack_operation_ids']/thead" position="replace">
 | |
|             <thead>
 | |
|                 <tr>
 | |
|                     <th><strong>Product</strong></th>
 | |
|                     <th><strong>Location</strong></th>
 | |
|                     <th class="text-right"><strong>Quantity</strong></th>
 | |
|                 </tr>
 | |
|             </thead>
 | |
|         </xpath>
 | |
|         <xpath expr="//table[@t-if='not o.pack_operation_ids']/tbody/tr/td/span[@t-field='move.state']" position="replace"/>
 | |
|         <xpath expr="//table[@t-if='o.pack_operation_ids']/thead" position="replace">
 | |
|             <thead>
 | |
|                 <tr>
 | |
|                     <th><strong>Product</strong></th>
 | |
|                     <th t-if="has_serial_number"><strong>Serial Number</strong></th>
 | |
|                     <th><strong>Location</strong></th>
 | |
|                     <th class="text-right"><strong>Quantity</strong></th>
 | |
|                 </tr>
 | |
|             </thead>
 | |
|         </xpath>
 | |
|         <xpath expr="//table[@t-if='o.pack_operation_ids']/tbody/tr/td[2]" position="replace"/>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Render Report with Header -->
 | |
|     <template id="stock.report_deliveryslip">
 | |
|         <t t-set="header" t-value="1"/>
 | |
|         <t t-foreach="docs" t-as="o">
 | |
|             <t t-call="dp_report.report_delivery_document" t-lang="o.partner_id.lang"/>
 | |
|         </t>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Render Report without Header -->
 | |
|     <template id="report_deliveryslip_blank">
 | |
|         <t t-set="header" t-value="0"/>
 | |
|         <t t-foreach="docs" t-as="o">
 | |
|             <t t-call="dp_report.report_delivery_document" t-lang="o.partner_id.lang"/>
 | |
|         </t>
 | |
|     </template>
 | |
| 
 | |
|     <!-- Create new Report -->
 | |
|     <report id="dp_report_deliveryslip_blank"
 | |
|         string="Lieferschein Ohne Logo"
 | |
|         model="stock.picking"
 | |
|         report_type="qweb-pdf"
 | |
|         name="dp_report.report_deliveryslip_blank"
 | |
|         file="dp_report.report_deliveryslip_blank"/>
 | |
| </data>
 | |
| </odoo>
 |