Skip to content
Snippets Groups Projects
Commit 952830b1 authored by William Henrotin's avatar William Henrotin
Browse files

[FIX] mrp: adapt product model


Commit 40b32b39 open the bom overiew
report with a fallback to the product template in case the bom is a
defined on a template without any variant (the product template has
dynamic attribute variant).

This commit adapts the product model (product or template) on report's
links

closes odoo/odoo#106349

Related: odoo/enterprise#34314
Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 12113f08
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@
<tbody>
<tr>
<td>
<span><a href="#" t-if="data['report_type'] == 'html'" t-att-data-res-id="data['product'].id" t-att-data-model="'product.product'" class="o_mrp_bom_action"><t t-esc="data['bom_prod_name']"/></a><t t-else="" t-esc="data['bom_prod_name']"/></span>
<span><a href="#" t-if="data['report_type'] == 'html'" t-att-data-res-id="data['product'].id" t-att-data-model="data['product']._name" class="o_mrp_bom_action"><t t-esc="data['bom_prod_name']"/></a><t t-else="" t-esc="data['bom_prod_name']"/></span>
</td>
<td name="td_mrp_bom">
<div><a href="#" t-if="data['report_type'] == 'html'" t-att-data-res-id="data['bom'].id" t-att-data-model="'mrp.bom'" class="o_mrp_bom_action"><t t-esc="data['code']"/></a><t t-else="" t-esc="data['code']"/></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment