summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss/web_editor.variables.scss
diff options
context:
space:
mode:
authorLuis González <lgonzalez@vauxoo.com>2019-02-11 15:57:38 +0000
committerLuis González <lgonzalez@vauxoo.com>2019-02-11 15:59:09 +0000
commitd1b9c2f3771213916ebb00f85ba4d0423ab0aff3 (patch)
treeac8686b5d66f773b1be04720fca9b9cfa22d2799 /addons/web_editor/static/src/scss/web_editor.variables.scss
parent7ecd750a777a8c021786c0ea152de395daa5e565 (diff)
[FIX] account: Journal is overwritteng in payments by onchange
There is an onchange on payments that, when the currency is modified, sets the journal to the first available one whose currency matches the selected one. However, if a journal is already set, its value is overwritten, even if its currency matches the new one. To replicate: - Create two banks in EUR - Create an internal transfer from the second bank - Set the payment currency to EUR When you follow the above steps, the payment journal will be incorrectly set to the first bank. Other possible ways to replicate the issue are: - When editing a payment already created whose journal is correct but whose currency is not - When creating a payment and the journal is set before the currency This commit fixes that issue by preventing the onchange from modifying the journal, when it's already set. Closes odoo/odoo#30967 closes odoo/odoo#30969
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss')
0 files changed, 0 insertions, 0 deletions