[FIX] account_voucher: convertion rate of purchase receipt
authorMartin Trigaux <mat@openerp.com>
Mon, 22 Sep 2014 10:16:46 +0000 (12:16 +0200)
committerMartin Trigaux <mat@openerp.com>
Mon, 22 Sep 2014 11:44:15 +0000 (13:44 +0200)
commitee4c67dc10acf168e446d3cd8b56eb07fa1fef2b
tree56338793d6cc60955c16621982103dabd3430063
parent9b87d6f371cc936293e0e728fe6d17cbdcb512a5
[FIX] account_voucher: convertion rate of purchase receipt

The conversion of currencies in vouchers are made based on payment_rate_currency_id field (instead of usual currency_id).
This field was not present in the purchase view and not correctly set when we change the journal (and thus the currency) which was leading to rates of 1. With a rate of 1, the amount is equal to the currency amount (which is rarely correct). opw 611254
addons/account_voucher/account_voucher.py
addons/account_voucher/voucher_sales_purchase_view.xml