How I can translate many2one field
I try 'translate=True' it's not work
any help ??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How I can translate many2one field
I try 'translate=True' it's not work
any help ??
Hello Ali,
Please follow below steps to do translation of field's value.
1) Go to Settings --> Activate developer mode
2) Activate your langauge by going Settings -> Langauge --> click on Activate and load langauge .
Also choose same langauge of user in user profile.
3) Now you will find option to translate field value same as below screenshot. by clicking on this option you will get popup to add translation of value.
Note: you can only translate field's value where field define with translate=True
name = fields.Char('Description', required=True, translate=True)
Thanks & Regards,
Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
specifiy translate true for partner name in res.partner object.
that is my problem
how to do that ?
class Partner(models.Model):
_inherit = 'res.partner'
name = fields.Char(translate=True)
Have you tried to override field by inhering res.partner model ? i tried and it worked at my end.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
2
kwi 23
|
2870 | ||
|
2
lut 25
|
40642 | ||
|
2
lis 22
|
2915 | ||
|
1
lut 22
|
7934 | ||
|
2
gru 21
|
4200 |