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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
2091
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
abr 23
|
2466 | ||
Odoo 16
Resuelto
|
|
1
dic 22
|
4505 | |
|
8
ene 25
|
7250 | ||
|
3
mar 24
|
3356 | ||
|
1
feb 24
|
3289 |