This question has been flagged
2 Replies
5845 Views

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?

Avatar
Discard

Could you find out? I have the same problem.

Best Answer

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.

Avatar
Discard