-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] crm : set default value to company_currency
To reproduce ============ Have two companies with different currencies, Create a lead in the first compnay => the expected revenue has the company's currency Create a lead in the second company => the expected revenue doesn't have the currency Purpose ======= in v15 the `company_id` has became computed, but the compute method in some scenarios doesn't set the `company_id`. `company_currency` is related to `company_id`, so when `company_id` is not set `company_currency` is also not set which occures this issue. Specification ============= To solve the issue, the field `company_currency` is computed now, and we give it the value of the active company if `company_id` is not set. opw-2862410 closes odoo#94413 Signed-off-by: Thibault Delavallee (tde) <[email protected]>
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters