Currently develop external ecommerce website for a customer, Is it possible to call "product.category" in other language in Odoo16. Since now there is only english and I already add more language on translation page.
What I do before with Product name is that adding "context": {"lang": "ko_KR"} to the code.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
2123
Views
To display the "product.category" field in Korean (ko_KR), you can modify your code as follows:
category_name = product.category.display_name
translated_category_name = product.category.with_context(lang='ko_KR').display_name
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Apr 23
|
2590 | ||
Odoo 16
Solved
|
|
1
Dec 22
|
4601 | |
|
8
Oct 25
|
7436 | ||
|
3
Mar 24
|
3473 | ||
|
1
Feb 24
|
3425 |