Updates of Snippets

This commit is contained in:
Kurt Gisler committed 2021-07-30 13:46:29 +02:00
1 parent c4d5d04168
commit 42cbd8eb3f
9 files changed
+79 -23

No files matched your search

@@ -3,12 +3,14 @@
<data inherit_id="account.report_invoice_document">
<xpath expr="//table/tbody/t[3]/tr/t[1]/td[1]/span" position="after">
<br/>
Country of Origin: <span t-field="line.product_id.x_country_of_origin"/>
<t t-if="line.product_id.x_country_of_origin">
<br/>
Country of Origin: <span t-field="line.product_id.x_country_of_origin"/>
</t>
<t t-if="line.product_id.hs_code">
<br/>
HS Code: <span t-field="line.product_id.hs_code"/>
</t>
</xpath>
</data>
</data>
@@ -2,9 +2,11 @@
<data inherit_id="account.report_invoice_document">
<xpath expr="//table/tbody/t[3]/tr/t[1]/td[1]/span" position="after">
<t t-if="line.product_id.weight">
<br/>
Weight: <span t-field="line.product_id.weight"/>
<span t-field="line.product_id.weight_uom_id.display_name"/>
<span t-field="line.product_id.weight_uom_id.display_name"/>
</t>
</xpath>
</data>
@@ -1,5 +1,5 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document">
<data inherit_id="purchase.report_purchasequotation_document">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
@@ -1,15 +1,16 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" sequence="50">
<data inherit_id="purchase_requisition.report_purchaserequisitions" sequence="50">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
<span>Pos</span>
</th>
</xpath>
<xpath expr="//table[1]/tbody/tr/td[1]" position="before">
<td>
<span t-esc="move.sequence-9"/>
<br/>
Test:
</td>
</xpath>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" sequence="50">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
<span>Pos</span>
</th>
</xpath>
<xpath expr="//table[1]/tbody/tr/td[1]" position="before">
<td>
<br/>
Test:
</td>
</xpath>
</data>
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<data inherit_id="purchase_requisition.report_purchaserequisitions" sequence="50">
<xpath expr="//table[1]/thead/tr/th[1]" position="before">
<th>
<span>Pos</span>
</th>
</xpath>
<xpath expr="//table[1]/tbody/tr/td[1]" position="before">
<td>
<br/>
Test:
</td>
</xpath>
</data>
@@ -5,10 +5,15 @@
<th>
<span>Pos</span>
</th>
<xpath expr="//table/tbody/t[2][@t-foreach='doc.order_line']" position="before">
<t t-set="index" t-value="1"/>
</xpath>
</xpath>
<xpath expr="/t/t/div/table/tbody/t[2]/tr/t[1]/td[1]" position="before">
<td>
<span t-esc="line.sequence - 9"/>
<span t-esc="index"/><t t-set="index" t-value="index+1"/>
</td>
</xpath>
@@ -1,14 +1,20 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document">
<xpath expr="/t/t/t/div/table[1]/tbody/tr/td[2]/span" position="after">
<br/>
<xpath expr="//div/table[1]/tbody/tr/td[2]/span" position="after">
<t t-if="o.product_id.hs_code">
<br/>
HS Code: <span t-field="o.product_id.hs_code"/>
<br/>
Country of Origin: <span t-field="o.product_id.x_country_of_origin.code"/>
<br/>
Weight: <span t-field="move.product_id.weight"/>
<span t-field="move.product_id.weight_uom_id.display_name"/>
</t>
<t t-if="o.product_id.x_country_of_origin.code">
<br/>
Country of Origin: <span t-field="o.product_id.x_country_of_origin.code"/>
</t>
<t t-if="move.product_id.weight">
<br/>
Weight: <span t-field="move.product_id.weight"/>
<span t-field="move.product_id.weight_uom_id.display_name"/>
</t>
</xpath>
</data>
@@ -2,13 +2,19 @@
<data inherit_id="stock.stock_report_delivery_aggregated_move_lines" sequence="50">
<xpath expr="/t/tr/td[2]/span" position="after">
<br/>
HS Code: <span t-field="o.product_id.hs_code"/>
<br/>
Country of Origin: <span t-field="o.product_id.x_country_of_origin.code"/>
<br/>
Weight: <span t-field="o.product_id.weight"/>
<span t-field="o.product_id.weight_uom_id.display_name"/>
<t t-if="o.product_id.hs_code">
<br/>
HS Code: <span t-field="o.product_id.hs_code"/>
</t>
<t t-if="o.product_id.x_country_of_origin.code">
<br/>
Country of Origin: <span t-field="o.product_id.x_country_of_origin.code"/>
</t>
<t t-if="o.product_id.weight">
<br/>
Weight: <span t-field="o.product_id.weight"/>
<span t-field="o.product_id.weight_uom_id.display_name"/>
</t>
</xpath>
</data>