i create a localization module , when i install this module i want to change the system default language to my language i will set in code .
This question has been flagged
1
Reply
2659
Views
Hi,
If you also want to update the language for the user's associated partner or company, you can include the relevant lines in the code:
self.env.user.sudo().update({
'lang': lang_code
})
Replace 'lang_code' with your desired language code.
Hope it helps
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
Hi Mostafa!
Did you ever find out how to do that?
Thanks!