use self.env.ref

I prefer it because it works everywhere, not only on tests. It makes
sense to use the env for that.