[ADD] tools: lazy translation method
Introduces the method _lt The translation method is now evaluated lazily. It allows to declare global variables with translatable content e.g. this code will now work: LABEL = _lt("User") def _compute_label(self): context = {'lang': self.partner_id.lang} self.user_label = LABEL
Loading
Please register or sign in to comment