Update of Snippets
This commit is contained in:
1 parent
1e693e3819
commit
ab5d52bb71
2 files changed
+4
-4
No files matched your search
@@ -2,7 +2,7 @@
|
||||
<odoo>
|
||||
<record id="x_drawing_file" model="ir.model.fields">
|
||||
<field name="field_description">Zeichnung</field>
|
||||
<field name="model">account.move</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="model_id" ref="account.model_account_move_line"/>
|
||||
<field name="name">x_drawing_file</field>
|
||||
<field name="store" eval="False"/>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
<?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">
|
||||
<t t-if="aggregated_lines[line]['product'].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-attf-href="{{aggregated_lines[line]['product'].drawing_file.url}}">
|
||||
<span t-esc="aggregated_lines[line]['product'].drawing_file.display_name"/>
|
||||
</a>
|
||||
</t>
|
||||
</xpath>
|
||||
|
||||
Reference in new issue
Block a user