I am having the same problem, no matter which of the suggested variables I use, I get the default company regardless of which one I use. I am trying to use it in an inherited view of Web Layout... I don't know if it has anything to do? I am suspecting that maybe it is because that modules load before the rest?
@Daniel Jove. Any solution up to now?
self.env.company worked for me