Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3638 Представления

I put translate=True on field few months ago, and it was working fine, but just few days back the translation button disappered (settings->fields i can see that Translatable is checked), anyone know why is this:

Here is the code that I wrote:

 class ResPartner(models.Model):

_inherit = "res.partner"
name = fields.Char(translate=True)

Аватар
Отменить
Автор Лучший ответ

If anyone still looking for an answer i found out that on the .xml file i had to put name field as invisible and it worked perfectly

Аватар
Отменить
Лучший ответ

Hi,

When the translate attribute is set to true, it makes the field translatable. Depending on the user interface language, it can hold different values.

Please refer:-

https://www.odoo.com/forum/help-1/how-to-generate-translation-terms-for-field-values-translate-true-did-not-work-184809

Regards

Аватар
Отменить
Лучший ответ

Bro, I had the same thing, I didn't know what to do while I was solving this problem, I used custom translations, and I want to tell you that it's not a bad thing. It takes the same amount of time as the translation I did myself, but I don't have to worry about it crashing and not responding, and I don't have to worry about them doing everything accurately. So try it and see how you like it.

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
апр. 23
4892
2
мар. 21
9077
1
мар. 23
2840
1
окт. 15
7791
3
мая 25
1882