[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
This commit is contained in:
Goffin Simon 2015-03-03 11:37:20 +01:00
parent 092c64b76f
commit 1155099d2b
1 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@
</td> </td>
<td class="text-right"> <td class="text-right">
<span t-field="line.price_subtotal" <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> </td>
</tr> </tr>
</tbody> </tbody>
@ -92,21 +92,21 @@
<td><strong>Total Without Taxes</strong></td> <td><strong>Total Without Taxes</strong></td>
<td class="text-right"> <td class="text-right">
<span t-field="o.amount_untaxed" <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> </td>
</tr> </tr>
<tr> <tr>
<td>Taxes</td> <td>Taxes</td>
<td class="text-right"> <td class="text-right">
<span t-field="o.amount_tax" <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> </td>
</tr> </tr>
<tr class="border-black"> <tr class="border-black">
<td><strong>Total</strong></td> <td><strong>Total</strong></td>
<td class="text-right"> <td class="text-right">
<span t-field="o.amount_total" <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> </td>
</tr> </tr>
</table> </table>