콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
7497 화면

I need to get the current company language to be used in some official reports which can’t be based on the current user language, can anyone help me ?

아바타
취소
베스트 답변

Technically you can access the current company language by using the script env.user.company_id.partner_id.lang

아바타
취소
베스트 답변

A company is related to a partner. You can retrieve the language from that partner.

아바타
취소
베스트 답변

This is what someone might be looking for:

from odoo.tools import get_lang

get_lang(self.env).code


아바타
취소