Closed umiphos closed 5 years ago
It is a matter of a custom module
@moylop260
Even though I would approach this differently, I think this is actually a bug. If there is already a journal selected, and that journal's currency matches the selected currency, the journal shouldn't be overwritten by this onchange.
What do you think?
CC @dsabrinarg
Superseeded by https://github.com/odoo/odoo/pull/30969
Description of the issue/feature this PR addresses: If you have a journal linked to the account.payment for that view, then there is no need to change it.
Current behavior before PR: If you set the currency_id with a domain to update the view and that journal is set a currency_id already, it will set another journal as default in the view
Desired behavior after PR is merged: If there is a journal already linked to that view, it will leave it like it is, otherwise, it will set a journal from a search related to the currency_id you are setting.
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr