Hello,
Checking multi-company fields in the parties, I see that, whenever the CompanyValueMixin is set, the “company” is added to the context through the setup and I don’t quite understand why it is necessary.
An example would be the “party.party.lang” model. https://hg.tryton.org/modules/company/file/tip/party.py#l46 :
@classmethod
def __setup__(cls):
super().__setup__()
cls.party.context['company'] = Eval('company', -1) # <--
if 'company' not in cls.party.depends:
cls.party.depends.append('company')