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 #94413 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
- Loading branch information