New Snippets

This commit is contained in:
Kurt Gisler committed 2024-03-15 11:28:52 +01:00
1 parent 2262ccf7e4
commit 2f35860446
3 files changed
+36

No files matched your search

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_delivery_document" priority="50">
<xpath expr="//table[@name='stock_move_table']/tbody/tr/td[1]/span" position="after">
<t t-if="move.product_id.drawing_file">
<br/>
<span>Drawing: </span>
<a t-attf-href="{{move.product_id.drawing_file.url}}">
<span t-field="move.product_id.drawing_file.display_name"/>
</a>
</t>
</xpath>
</data>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="stock.report_picking" priority="50">
<xpath expr="//tbody[1]//td[1]/span" position="after">
<t t-if="ml.product_id.drawing_file">
<br/>
<span>Drawing: </span>
<a t-attf-href="{{ml.product_id.drawing_file.url}}">
<span t-field="ml.product_id.drawing_file.display_name"/>
</a>
</t>
</xpath>
</data>
@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<data inherit_id="stock.stock_report_delivery_aggregated_move_lines" priority="50">
<xpath expr="//tr/td[1]/span[1]" position="after">
<t t-if="o.product_id.drawing_file">
<br/>
<span>Drawing: </span>
<a t-attf-href="{{o.product_id.drawing_file.url}}">
<span t-field="o.product_id.drawing_file.display_name"/>
</a>
</t>
</xpath>
</data>