summaryrefslogtreecommitdiff
path: root/addons/base_import/static/lib/javascript-state-machine
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2020-10-23 12:15:11 +0000
committerLaurent Smet <las@odoo.com>2020-10-23 12:52:17 +0000
commit18b5ad16a442404061b1028c2ffd82f179beaba3 (patch)
tree7c737cc11bbe82256a35d80fbb78a563ff319c81 /addons/base_import/static/lib/javascript-state-machine
parentca6cc05cec13f2e3f1d6555491c3180e9ff3ace2 (diff)
[FIX] account: Fix unbalanced journal entry when switching payment terms
When switching immediate payment term to 30% advance then back to immediate payment term, the receivable line is back to its previous value. This is due to the '_get_fields_onchange_balance' that is not updating correctly the business fields since price_subtotal == amount_currency. So, when `writing`, debit/credit are removed from the dictionary because the values are the same as before. However, `price_unit` hasn't be updated with the new value and remains as its previous value. It leads to a recomputation of accounting fields regarding the business fields and then, trigger the unbalanced journal entry. closes odoo/odoo#60614 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/base_import/static/lib/javascript-state-machine')
0 files changed, 0 insertions, 0 deletions