summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2019-12-03 10:37:26 +0000
committerNicolas Lempereur <nle@odoo.com>2019-12-03 10:46:18 +0000
commit433cfe66e59dbba0bc66b385129b84fea47c1152 (patch)
treecd5c461eaff3a6169b9a1e7b6decf159a97e551b /addons/web/static/src/js/fields/relational_fields.js
parent4b73bd25a9e85fd3c7c2bc1969726cfe1ea2b341 (diff)
[FIX] account: liquidity-line currency journal ok
If we do a payment with: - a currency different than the journal - the journal currency the same as company currency => it fails, because of the constraint on account.move.line: > The amount expressed in the secondary currency must be positive when > account is debited and negative when account is credited. with code: ``` CHECK(currency_id IS NULL OR company_currency_id IS NULL OR ((currency_id != company_currency_id) AND {conditions on balance})) ``` This happens because in this use case, a NON-NULL currency_id means that the currency is different than the company currency, this was not taken into account when creating a liquidity line. opw-2150267 closes #41244 closes odoo/odoo#41278 X-original-commit: f9d75e3a5442162538c727eb7e4f111c9b792104 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions