+
diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py
index f97f3f6af3c..648576443a0 100644
--- a/addons/account_voucher/account_voucher.py
+++ b/addons/account_voucher/account_voucher.py
@@ -42,6 +42,21 @@ class res_company(osv.osv):
res_company()
+class account_config_settings(osv.osv_memory):
+ _inherit = 'account.config.settings'
+ _columns = {
+ 'income_currency_exchange_account_id': fields.related(
+ 'company_id', 'income_currency_exchange_account_id',
+ type='many2one',
+ relation='account.account',
+ string="Gain Exchange Rate Account"),
+ 'expense_currency_exchange_account_id': fields.related(
+ 'company_id', 'expense_currency_exchange_account_id',
+ type="many2one",
+ relation='account.account',
+ string="Loss Exchange Rate Account"),
+ }
+
class account_voucher(osv.osv):
def _check_paid(self, cr, uid, ids, name, args, context=None):
res = {}
diff --git a/addons/account_voucher/account_voucher_view.xml b/addons/account_voucher/account_voucher_view.xml
index f8bab444453..4b02d697982 100644
--- a/addons/account_voucher/account_voucher_view.xml
+++ b/addons/account_voucher/account_voucher_view.xml
@@ -249,16 +249,23 @@
-
-
- res.company.form.inherit
-
- res.company
+
+
+ account.config.settings.inherit
+
+ account.config.settings
+ 20
-
-
-
-
+
+
+
+
+
+
+
+
+
+