def update_params(self, params): super(DTLink, self).update_params(params) locale = get_locale() link = "jscal/lang/calendar-%s.js" % locale if tools.resources.resource_exists("openerp", "static", link): params['link'] = tools.url(["/openerp/static", link]) else: link = "jscal/lang/calendar-%s.js" % locale.language if tools.resources.resource_exists("openerp", "static", link): params['link'] = tools.url(["/openerp/static", link])
def update_params(self, params): super(JSLink, self).update_params(params) params['locale'] = i18n.get_locale()