From 27d9f5c8ff30299907c35bd0a54e4dffb8f85899 Mon Sep 17 00:00:00 2001 From: desdelinux Date: Tue, 4 Apr 2023 16:03:35 +0000 Subject: [PATCH] [FIX] l10n_pe_edi: Gain and Loss exchange rate accounts are on the opposite field by default Issue: When activating the multicurrency in PE, the default exchange rate accounts are placed in the opposite fields (gain account should be an income account and loss account should be an expense), currently they're the other way around. Fix: Change the default account so Odoo created the journal entries for exchange rate differences the correct way. Task Latam: https://latam-localizations.odoo.com/web#id=967&menu_id=88&cids=1&action=188&model=project.task&view_type=form Reference: https://www.noticierocontable.com/diferencia-de-cambio-venta/ https://www.noticierocontable.com/asiento-contable-perdida-diferencia-cambio/ closes odoo/odoo#117745 Replace: #115361 X-original-commit: 45694e1b0eeb46a5f1b75cee738f20e9a670ae63 Signed-off-by: Josse Colpaert --- addons/l10n_pe/models/template_pe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/l10n_pe/models/template_pe.py b/addons/l10n_pe/models/template_pe.py index 4394728f517..c250b46a81c 100644 --- a/addons/l10n_pe/models/template_pe.py +++ b/addons/l10n_pe/models/template_pe.py @@ -29,8 +29,8 @@ class AccountChartTemplate(models.AbstractModel): 'cash_account_code_prefix': '1031', 'transfer_account_code_prefix': '1051', 'account_default_pos_receivable_account_id': 'chart1215', - 'income_currency_exchange_account_id': 'chart676', - 'expense_currency_exchange_account_id': 'chart776', + 'income_currency_exchange_account_id': 'chart776', + 'expense_currency_exchange_account_id': 'chart676', 'account_journal_early_pay_discount_loss_account_id': 'chart675', 'account_journal_early_pay_discount_gain_account_id': 'chart775', },