snippets
This commit is contained in:
1 parent
bac221a0f7
commit
e46afe1303
8 files changed
+48
-5
No files matched your search
+1
-1
Submodule enterprise updated: 50f09dde00...1d5dc159d2.
+1
-1
Submodule odoo updated: fcc60e219f...a54d54c9c4.
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Show custom field country of origin and hs code -->
|
||||
<data inherit_id="account.report_invoice_document">
|
||||
|
||||
<xpath expr="//table/tbody/t[3]/tr/t[1]/td[1]/span" position="after">
|
||||
<br/>
|
||||
Origin: <span t-field="line.product_id.x_country_of_origin"/>
|
||||
<t t-if="line.product_id.hs_code">
|
||||
<br/>
|
||||
HS Code: <span t-field="line.product_id.hs_code"/>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<xpath expr="//table/tbody/t[3]/tr/t[1]/td[1]/span" position="after">
|
||||
<br/>
|
||||
<span t-field="line.product_id.weight"/> kg
|
||||
Weight: <span t-field="line.product_id.weight"/> kg
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="account.report_invoice_document">
|
||||
|
||||
<xpath expr="//table[1]/thead[1]/tr[1]/th[6]" position="replace"/>
|
||||
<xpath expr="//table[1]/tbody[1]/t[3]/tr[1]/t[1]/td[6]" position="replace"/>
|
||||
<xpath expr="//table[1]/thead[1]/tr[1]/th[5]" position="replace"/>
|
||||
<xpath expr="//table[1]/tbody[1]/t[3]/tr[1]/t[1]/td[5]" position="replace"/>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document">
|
||||
|
||||
<xpath expr="/t[1]/t[1]/div[1]/div[2]/div[1]/p[1]" position="after">
|
||||
<span t-field="o.user_id.email"/>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document">
|
||||
|
||||
<xpath expr="//table[1]/thead[1]/tr[1]/th[2]" position="replace"/>
|
||||
<xpath expr="//table[1]/tbody[1]/t[2]/tr[1]/t[1]/td[2]" position="replace"/>
|
||||
|
||||
</data>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
<data inherit_id="purchase.report_purchaseorder_document">
|
||||
|
||||