コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
6918 ビュー

I am having a strange issue with odoo translation engine: the translation works fine for all the fields, but not for the view: all the translated strings are field labels, but "string" attributes for view.xml tags remain untranslated.

https://www.dropbox.com/s/o81q7gg0jbtl3ft/TmaV3.png?dl=0

view.xml:

                     <page name="public" string="Form 1">
                        <group>
                            <group>

....

                                    <field name="address_home_id"
                                           context="{'show_address': 1}"
                                           options='{"always_reload": True, "highlight_first_line": True}'
                                           string="Permanent Address"
                                    />

However, I do have those strings in both my.po file:

#. module: hr_mis
#: model:ir.ui.view,arch_db:hr_mis.view_employee_form
msgid "Form 1"
msgstr "ပုံစံ (၁)"

....

#. module: hr_mis
#: model:ir.ui.view,arch_db:hr_mis.view_employee_form
msgid "Permanent Address"
msgstr "အမြဲတမ်းနေရပ်လိပ်စာ"

and in the database:

https://www.dropbox.com/s/8ly9dnlj4gelrwy/2r3y2.png?dl=0

Any idea what did I do wrong?

アバター
破棄

Could you find out? I have the same problem.

最善の回答

See the post: [https://github.com/odoo/odoo/issues/24534][1]

In resume, this Tab/Page string is read from Database, so remove --dev=xml from your runtime config.

アバター
破棄
関連投稿 返信 ビュー 活動
0
12月 24
1922
2
2月 24
3409
4
11月 23
4240
0
9月 23
2540
0
9月 23
2242