This commit is contained in:
Janik von Rotz committed 2023-06-28 15:22:42 +02:00
1 parent 9f0326ae37
commit 150d846785
10 files changed
+143 -3

No files matched your search

Submodule oca/hr-attendance updated: 8198451f93...c3557e5af1.
Submodule oca/hr-holidays updated: 3f21899f4b...a831e7cc95.
Submodule oca/l10n-switzerland updated: fb0ecd0c19...bb7affa612.
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document" priority="60">
<xpath expr="//p[@name='incoterm']" position="replace"/>
<xpath expr="//p[2]" position="after">
<p t-if="o.invoice_incoterm_id" name="incoterm">
<strong>Incoterm: </strong>
<span t-field="o.invoice_incoterm_id.code"/>
- <span t-field="o.invoice_incoterm_id.name"/>
</p>
</xpath>
</data>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<data inherit_id="sale.report_saleorder_document" priority="50">
<xpath expr="//th[@name='th_priceunit']" position="before">
<th name="th_delivery_dates" class="text-right">Delivery Date</th>
</xpath>
<xpath expr="//td[@name='td_priceunit']" position="before">
<td name="td_delivery_dates" class="text-right">
<span t-field="line.delivery_dates" t-options="{&quot;widget&quot;: &quot;date&quot;}"/>
</td>
</xpath>
</data>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<data inherit_id="sale.report_saleorder_document" priority="50">
<xpath expr="//th[@name='th_quantity']" position="after">
<th name="th_hs_code" class="text-right">HS Code</th>
</xpath>
<xpath expr="//td[@name='td_quantity']" position="after">
<td name="td_hs_code" class="text-right">
<span t-field="line.product_id.intrastat_id.code"/>
</td>
</xpath>
</data>
@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<data inherit_id="sale.report_saleorder_document" priority="50">
<xpath expr="//th[@name='th_priceunit']" position="before">
<th name="th_delivery_dates" class="text-right">Delivery Date</th>
</xpath>
<xpath expr="//td[@name='td_priceunit']" position="before">
<td name="td_delivery_dates" class="text-right">
<span t-field="line.delivery_dates" t-options="{&quot;widget&quot;: &quot;date&quot;}"/>
</td>
</xpath>
</data>
@@ -0,0 +1,72 @@
<?xml version="1.0"?>
<data inherit_id="sale.report_saleorder_document" priority="50">
<xpath expr="//t[@t-set='address']" position="replace"/>
<xpath expr="//t[@t-set='information_block']/.." position="replace">
<div class="row text-900 o_bold">
<div class="col-7">Customer</div>
<div class="col-5">Invoice Address</div>
</div>
<div class="row">
<div class="col-7">
<span t-field="doc.partner_id.commercial_company_name"/>
</div>
<div class="col-5">
<span t-field="doc.partner_invoice_id.commercial_company_name"/>
</div>
</div>
<div class="row">
<div class="col-7">
<span t-field="doc.partner_id" t-options-widget="&quot;contact&quot;" t-options-fields="['address']" t-options-no_marker="True"/>
</div>
<div class="col-5">
<span t-field="doc.partner_invoice_id" t-options-widget="&quot;contact&quot;" t-options-fields="['address']" t-options-no_marker="True"/>
</div>
</div>
<div class="row">
<div class="col-5 text-900 o_bold offset-7" style="margin-top:25px">Delivery Address</div>
</div>
<div class="row">
<div class="col-5 offset-7">
<span t-field="doc.partner_shipping_id.commercial_company_name"/>
</div>
</div>
<div class="row">
<div class="col-5 offset-7">
<span t-field="doc.partner_shipping_id" t-options-widget="&quot;contact&quot;" t-options-fields="['address']" t-options-no_marker="True"/>
</div>
</div>
<div class="row o_bold text-900" style="margin-top:25px">
<div class="col-7">Your Contact</div>
<div class="col-5">Our Contact</div>
</div>
<div class="row">
<div class="col-7">
<span t-field="doc.partner_id.name"/>
</div>
<div class="col-5">
<span t-field="doc.user_id.name"/>
</div>
</div>
<div class="row">
<div class="col-7" style="margin-bottom:25px">
<span t-field="doc.partner_id" t-options-widget="&quot;contact&quot;" t-options-fields="['phone', 'email']" t-options-no_marker="True"/>
</div>
<div class="col-5">
<span t-field="doc.user_id" t-options-widget="&quot;contact&quot;" t-options-fields="['phone', 'email']" t-options-no_marker="True"/>
</div>
</div>
</xpath>
</data>
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<data inherit_id="web.external_layout_boxed" priority="50">
<xpath expr="//div[@name='company_address']/.." position="replace"/>
</data>
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<data inherit_id="web.external_layout_boxed" priority="50">
<xpath expr="//img[@t-if='company.logo']" position="attributes">
<attribute name="style">width: 720px; margin-top: 10px</attribute>
</xpath>
</data>