Use instance context to get account
As discussed in review359791002, since #4080 (closed) there is no guarantee that the company in the transaction context is the one needed when requesting the account. Indeed we rely now on the context of the records to have the proper context thank to the CompanyTestMixin
.
Also as the "used" property are simple properties (unlike the Function
fields) they are executed with the transaction context instead of the instance context.
So we should restore the instance context when calling get_multivalue
in order to have the account from the proper company.