Luis González d1b9c2f377 [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
2019-02-11 15:59:09 +00:00
2015-09-08 15:45:09 +02:00
2018-10-09 13:44:38 +00:00
…
2015-09-08 17:58:38 +02:00
2018-04-18 15:59:05 +02:00

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, Purchase Management, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

Then follow the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%