odoo/odoo#163534
Created by fw-bot
Merged
at b62f2efc9e2072965a14cb9536a7761ac1e5c312
- label
- odoo-dev:saas-17.1-17.0-post-exchange-difference-journal-payment-issue-amay-Y2pm-fw
- head
- 0cdabbbddf1408f242891bd5b49c5d51ef66a05b
- target
- saas-17.1
- merged
- 3 weeks ago by Accounting, John Laterre (jol)
- forward-port of
- odoo/odoo#157735
[FW][FIX] account: payment error on empty default post exchange difference journal
The issue:
when you make a payment and there is an exchange difference, since the post exchange difference is not set, it will throw a traceback
To reproduce:
- Enable 2 currencies
- Have the exchange difference journal set to NULL (empty)
- Create an invoice with a different currency than the one set for the company
- then register a payment.
The fix:
Throw a user error indicating to set the post exchange difference journal
opw-3783917
opw-3768202
Forward-Port-Of: odoo/odoo#157735