Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
4132 Lượt xem

I've recently develop a new module the module name in manifest file is Extra Hours so i've made a translation .po file and added this line of codes:

#. module: base
#: model:ir.module.module,shortdesc:base.module_ru_extra_hours
msgid "Extra Hours "
msgstr "اضافه کاری"

The problem is that the name stay the same "Extra Hours" and the translation not applied.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks the problem has solved

Câu trả lời hay nhất

Please check the below link

https://github.com/odoo/odoo/issues/47334#issuecomment-630185968

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

First of all, do not create the translation file manually. It faced many problems.

Adding a new translation to the project is not the end. You must update the DB to force the odoo to update translations. So after uploading your new codes, then update command and add the following option:

odoo-bin {other options] --update all --load-language fa_IR --stop-after-init

see the following link for more information:

https://www.odoo.com/documentation/16.0/developer/reference/cli.html

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 7 25
2077
3
thg 5 25
3647
0
thg 6 21
2400
1
thg 8 24
3541
4
thg 1 24
14324