Skip to content
Snippets Groups Projects
Commit 60a801af authored by Hansun (hale)'s avatar Hansun (hale)
Browse files

[FIX] purchase_requisition: adequate display of internal reference


To reproduce the issue:
1. Install Inventory & Purchase apps
2. Toggle on Settings > Inventory > Purchase Agreements and save
3. Go to Purchase
- [Products] > [Products]: add a product w/ internal reference and w/o
- [Orders] > [Blanket Orders]: create a blanket order with the products
- Save, Confirm and click Print icon to generate the said report in pdf

Desired behavior: Do not show brackets for null internal reference

opw-3138636

closes odoo/odoo#110770

X-original-commit: fb0567ee
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: default avatarLee, Hansun (hale) <hale@odoo.com>
parent 70a69c58
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,9 @@
<tbody>
<tr t-foreach="o.line_ids" t-as="line_ids">
<td>
[ <span t-field="line_ids.product_id.code"/> ]
<t t-if="line_ids.product_id.code"><!--internal reference exists-->
[ <span t-field="line_ids.product_id.code"/> ]
</t>
<span t-field="line_ids.product_id.name"/>
</td>
<td class="text-right">
......
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