118 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			XML
		
	
	
			
		
		
	
	
			118 lines
		
	
	
		
			4.5 KiB
		
	
	
	
		
			XML
		
	
	
| <?xml version="1.0"?>
 | |
| <!--  
 | |
|     <reports>
 | |
|         <report>stock.report_picking</report>
 | |
|     </reports>
 | |
| -->
 | |
| 
 | |
| <document filename="test.pdf">
 | |
|   <template pageSize="(595.0,842.0)" title="Test" author="Martin Simon" allowSplitting="20">
 | |
|     <pageTemplate id="first">
 | |
|       <frame id="first" x1="34.0" y1="57.0" width="504" height="728"/>
 | |
|     </pageTemplate>
 | |
|   </template>
 | |
|  
 | |
|   <story>
 | |
|     <para>
 | |
|       <seqReset id="L1"/>
 | |
|     </para>  
 | |
|     
 | |
|     <para>[[ repeatIn(objects,'picking') ]] [[ picking.partner_id and setLang(picking.partner_id.lang) ]]</para>
 | |
| 
 | |
|     <para style="fett">[[ picking.partner_id.commercial_partner_id.name ]]</para>
 | |
|     <para style="normal">[[ (picking.partner_id.commercial_partner_id.id != picking.partner_id.id and picking.partner_id.name) or '' ]] </para>
 | |
|     <para style="normal">[[ (picking.partner_id and picking.partner_id.street ) or '']]</para>
 | |
|     <para style="normal">[[ (picking.partner_id and picking.partner_id.street2) or removeParentNode('para') ]]</para>
 | |
|     <para style="normal">[[ (picking.partner_id and picking.partner_id.zip) or '' ]] [[ (picking.partner_id and picking.partner_id.city) or '' ]]</para>
 | |
|     <para style="normal">[[ (picking.partner_id and picking.partner_id.state_id and picking.partner_id.state_id.name) or removeParentNode('para')]]</para>
 | |
|     <para style="normal">[[ (picking.partner_id and picking.partner_id.country_id and picking.partner_id.country_id.name) or '' ]]</para>
 | |
| 
 | |
|     
 | |
|     <blockTable colWidths="100,110" style="Struktur" hAlign="RIGHT">         
 | |
|        <tr>
 | |
|          <td>
 | |
|              <para style="normal">Bestellung:</para>
 | |
|          </td>
 | |
|          <td>
 | |
|              <para style="normal">[[ picking.origin ]]</para>
 | |
|          </td>
 | |
|        </tr>          
 | |
|        <tr>
 | |
|          <td>
 | |
|              <para style="normal">Datum:</para>
 | |
|          </td>
 | |
|          <td>
 | |
|              <para style="normal">[[ formatLang(picking.date_done, date=True) or formatLang(time.strftime('%Y-%m-%d'),date=True) ]]</para>
 | |
|          </td>
 | |
|        </tr>        
 | |
|        <tr>
 | |
|          <td>
 | |
|              <para style="normal">Referenz:</para>
 | |
|          </td>
 | |
|          <td>
 | |
|              <para style="normal">[[ picking.sale_id and picking.sale_id.client_order_ref or '' ]]</para>
 | |
|          </td>
 | |
|        </tr> 
 | |
|        <tr>
 | |
|          <td>
 | |
|              <para style="normal">Kundennr.:</para>
 | |
|          </td>
 | |
|          <td>
 | |
|              <para style="normal">[[ picking.partner_id and picking.partner_id.commercial_partner_id and picking.partner_id.commercial_partner_id.ref or '' ]]</para>
 | |
|          </td>
 | |
|        </tr>                    
 | |
|                                                      
 | |
|     </blockTable>    
 | |
| 
 | |
|     <para style="ueberschrift">Lieferschein [[ picking.name ]]</para>
 | |
|   	
 | |
| 	<spacer length="0.5cm"/>
 | |
| 	
 | |
|     <blockTable colWidths="30,80,304,80" repeatRows="1" style="TabelleHaupt" hAlign="LEFT">
 | |
|       <tr>
 | |
|         <td>
 | |
|           <para style="tabelle_header">Pos</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header">Art.nr.</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header_links">Bezeichnung</para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_header">Menge</para>
 | |
|         </td>
 | |
|       </tr>
 | |
|       <tr>[[ repeatIn([line for line in picking.move_lines if line.state <> 'cancel'],'move_lines') ]]
 | |
|         <td>
 | |
|           <para style="tabelle_daten_center" leftIndent="0" bulletIndent="0" size="8.0">
 | |
|             <seq id="L1"/>
 | |
|           </para>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_daten_center">[[ move_lines.product_id.default_code ]]</para>
 | |
|         </td>        
 | |
|         <td>
 | |
|             <para style="tabelle_daten_links">[[ (move_lines.name or '').split('\n\n')[0] ]]</para>
 | |
|             <section>[[ repeatIn((move_lines.name or '').split('\n\n')[1:],'paragraphs') ]]
 | |
|                 <spacer length="0.4cm"/>            
 | |
|                 <para style="tabelle_daten_links">[[ paragraphs ]]</para>   
 | |
|             </section>
 | |
|         </td>
 | |
|         <td>
 | |
|           <para style="tabelle_daten_center">[[ formatLang(move_lines.product_qty, digits=0) ]] </para>
 | |
|         </td>        
 | |
|       </tr>
 | |
|     </blockTable>
 | |
| 
 | |
|     <spacer length="0.5cm"/>
 | |
| 
 | |
|     <para style="normal">[[ (picking.note or '').split('\n\n')[0] ]]</para>
 | |
|     <section>[[ repeatIn((picking.note or '').split('\n\n')[1:],'paragraphs') ]]
 | |
|         <spacer length="0.4cm"/>            
 | |
|         <para style="normal">[[ paragraphs ]]</para>   
 | |
|     </section> 
 | |
|     
 | |
|   </story>
 | |
| </document>
 |