[FIX] sale: fix singleton issue on portal view of sale order

If applied, this commit will solve the issue of QWebException when the user
clicks on the 'Customer Preview' button and the sale order have a section in
'Order Lines' and the pricelist is not set.

Steps to produce:
- Create a sale order without a pricelist.
- Add a section in Order Lines.
- Click on the 'Customer Preview' button.

Solve the issue by using the sale order's currency instead of the pricelist's
currency.

sentry - 4092292347
see - https://tinyurl.com/26gt5hoh

closes odoo/odoo#119361

X-original-commit: ad0ed4b9ff34ae8f785435845864dc5dbd6d5e0a
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
paso-odoo
2023-04-22 05:52:26 +02:00
parent 4ba88044ee
commit f1edebeaee
+1 -1
View File
@@ -551,7 +551,7 @@
<td colspan="99">
<strong class="mr16">Subtotal</strong>
<span t-out="current_subtotal"
t-options='{"widget": "monetary", "display_currency": sale_order.pricelist_id.currency_id}'
t-options='{"widget": "monetary", "display_currency": sale_order.currency_id}'
/>
</td>
</tr>