Update of Snippets

This commit is contained in:
Kurt Gisler committed 2025-06-06 18:44:07 +02:00
1 parent 0329d8763d
commit efc7b75437
4 files changed
+76 -32

No files matched your search

@@ -1,5 +1,5 @@
<data inherit_id="l10n_din5008.external_layout_din5008" priority="50">
<xpath expr="//div[@class='information_block']/.." position="replace">
<style>
div.information_block tr {
@@ -23,26 +23,26 @@
<t t-if="'l10n_din5008_template_data' in company" t-set="template_data" t-value="company.l10n_din5008_template_data"/>
<t t-if="o and 'l10n_din5008_template_data' in o" t-set="template_data" t-value="o.l10n_din5008_template_data"/>
<table>
<t t-if="not o._name == 'sale.order'">
<tr>
<td colspan="2" style="font-size: 14px; font-weight: bold; padding-bottom: 7px; white-space: nowrap;">
<span t-if="not o and not docs">
<t t-out="company.l10n_din5008_document_title"/>
</span>
<span t-else="">
<t t-set="o" t-value="docs[0]" t-if="not o"/>
<span t-if="'l10n_din5008_document_title' in o">
<t t-out="o.l10n_din5008_document_title"/>
<t t-if="o._name not in ['sale.order', 'stock.picking']">
<tr>
<td colspan="2" style="font-size: 14px; font-weight: bold; padding-bottom: 7px; white-space: nowrap;">
<span t-if="not o and not docs">
<t t-out="company.l10n_din5008_document_title"/>
</span>
<span t-elif="'name' in o" t-field="o.name"/>
</span>
</td>
</tr>
<span t-else="">
<t t-set="o" t-value="docs[0]" t-if="not o"/>
<span t-if="'l10n_din5008_document_title' in o">
<t t-out="o.l10n_din5008_document_title"/>
</span>
<span t-elif="'name' in o" t-field="o.name"/>
</span>
</td>
</tr>
</t>
<!-- Ausgangsrechnung -->
<t t-if="o._name == 'account.move' and o.move_type == 'out_invoice'">
@@ -106,13 +106,13 @@
<!-- Verkaufsauftrag -->
<t t-if="o._name == 'sale.order'">
<tr>
<td colspan="2" style="font-size: 14px; font-weight: bold; padding-bottom: 7px; white-space: nowrap;">
<span>Order Confirmation</span>
<span>Order Confirmation</span>
</td>
</tr>
<tr>
<td>
<span>Order No.</span>
@@ -156,7 +156,45 @@
</td>
</tr>
</t>
<t t-if="o._name == 'stock.picking'">
<tr>
<td colspan="2" style="font-size: 14px; font-weight: bold; padding-bottom: 7px; white-space: nowrap;">
<span>Delivery Note</span>
</td>
</tr>
<tr>
<td>
<span>No.</span>
</td>
<td>
<span t-field="o.name"/>
</td>
</tr>
<t t-if="o.origin">
<tr>
<td>
<span>Reference</span>
</td>
<td>
<span t-field="o.origin"/>
</td>
</tr>
</t>
<t t-if="o.date_done">
<tr>
<td>
<span>Delivery Date</span>
</td>
<td>
<span t-field="o.date_done" t-options="{'widget': 'date'}"/>
</td>
</tr>
</t>
</t>
</table>
</div>
</td>
@@ -3,8 +3,9 @@
<xpath expr="//div[@name='div_outgoing_address']" position="replace">
<div name="div_outgoing_address">
<div name="address">
<div t-field="o.sale_id.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;, &quot;phone&quot;], &quot;no_marker&quot;: True, &quot;phone_icons&quot;: True}"/>
<div t-field="o.sale_id.partner_id" t-options="{&quot;widget&quot;: &quot;contact&quot;, &quot;fields&quot;: [&quot;address&quot;, &quot;name&quot;], &quot;no_marker&quot;: True}"/>
</div>
</div>
</xpath>
</data>
@@ -22,14 +22,14 @@
<t t-if="package.shipping_weight">
<t t-set="has_shipping_weight" t-value="True"/>
</t>
</tr>
</tr>
<table style="margin-left: auto; margin-right: 0;">
<table style="margin-left: auto; margin-right: 0; border: transparent">
<t t-if="count_packages">
<tr>
<td>
<strong>Anzahl Transporteinheiten:</strong>
<td style="padding-right:5px;">
<strong>Number of transport units:</strong>
</td>
<td style="text-align: right; width: 80px">
<strong t-esc="count_packages"/>
@@ -39,8 +39,8 @@
<t t-if="not has_shipping_weight">
<tr>
<td>
<strong>Gesamtgewicht Netto: </strong>
<td style="padding-right:5px;">
<strong>Total net weight:</strong>
</td>
<td style="text-align: right">
<strong t-esc="net_weight"/>
@@ -50,8 +50,8 @@
<t t-if="total_weight">
<tr>
<td>
<strong>Gesamtgewicht Brutto: </strong>
<td style="padding-right:5px;">
<strong>Total gross weight:</strong>
</td>
<td style="text-align: right">
<t>
@@ -0,0 +1,5 @@
<data inherit_id="stock.stock_report_delivery_has_serial_move_line" priority="60">
<xpath expr="//td[@name='move_line_lot_quantity']" position="attributes">
<attribute name="class">text-end</attribute>
</xpath>
</data>