[FIX] purchase: missing variant description in portal view of purchase order

- Set Joel Willis (the portal user) as a vendor.
- Create a purchase order and add a line with a variant product, such as the
conference chair (aluminium).
- Confirm the order.
- Then switch user to the portal user.
- In the portal view, go to the purchase orders and select the purchase order.

Before this commit:

the product line does not show the variant, only the base name of the product.

After this commit:

the product line now shows the vendor specific product name and product code.
To set this name and code, go to the Purchase tab of the product, and add a
line for the vendor in the Vendors table, or modify the existing line for
the vendor.

closes odoo/odoo#38082

Opw: 2076962
X-original-commit: c2f2169ab7574c49fa6b544299aab7214b1f4698
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Florimond Husquinet (fhu)
2019-10-07 12:31:01 +00:00
committed by fw-bot
parent 5fe83fc6a4
commit db1bef9166
+1 -1
View File
@@ -106,7 +106,7 @@
<img t-att-src="image_data_uri(resize_to_48(ol.product_id.image_128))" alt="Product"/>
</div>
<div id='product_name' class="col-lg-5">
<span t-esc="ol.product_id.name"/>
<span t-esc="ol.name"/>
</div>
<div class="col-lg-2 text-right">
<span t-field="ol.price_unit" t-options='{"widget": "monetary", "display_currency": order.currency_id}'/>