diff options
| author | Goffin Simon <sig@odoo.com> | 2015-03-03 11:37:20 +0100 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2015-03-03 16:54:53 +0100 |
| commit | 1155099d2ba25423213b3fff035dd7cb8e0414d8 (patch) | |
| tree | 670369ce7c61fc15740ba14d7e88d0c9d89181c7 | |
| parent | 092c64b76f341494a1aeebc4b887aad71a9be553 (diff) | |
[FIX] purchase: wrong currency printed on purchase order
Choosing a currency different than the purchase order pricelist is allowed.
Therefore, the purchase order report must display the currency
of the purchase order, and not the currency of the pricelist.
opw:628767
Fixes #5443
| -rw-r--r-- | addons/purchase/views/report_purchaseorder.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/purchase/views/report_purchaseorder.xml b/addons/purchase/views/report_purchaseorder.xml index d1285c1d71b..87c6834d869 100644 --- a/addons/purchase/views/report_purchaseorder.xml +++ b/addons/purchase/views/report_purchaseorder.xml @@ -79,7 +79,7 @@ </td> <td class="text-right"> <span t-field="line.price_subtotal" - t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/> + t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> </td> </tr> </tbody> @@ -92,21 +92,21 @@ <td><strong>Total Without Taxes</strong></td> <td class="text-right"> <span t-field="o.amount_untaxed" - t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/> + t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> </td> </tr> <tr> <td>Taxes</td> <td class="text-right"> <span t-field="o.amount_tax" - t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/> + t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> </td> </tr> <tr class="border-black"> <td><strong>Total</strong></td> <td class="text-right"> <span t-field="o.amount_total" - t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/> + t-field-options='{"widget": "monetary", "display_currency": "o.currency_id"}'/> </td> </tr> </table> |
