[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 <jco@odoo.com>
This commit is contained in:
desdelinux
2023-04-05 10:45:54 +02:00
parent 3925f602bb
commit 27d9f5c8ff
+2 -2
View File
@@ -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',
},