Odoo 从原始模块重写转换

Odoo 从原始模块重写转换,odoo,odoo-8,odoo-9,Odoo,Odoo 8,Odoo 9,如何覆盖默认代码字段的转换 在继承的产品模板和产品中,我添加了字段 默认\u代码=fields.Char string='Articul', 相关的class='product\u variant\u ids.default\u code' 及 默认\u代码=fields.Char “Articul”,选择=True 字符串在英语版本中发生了变化,但如果我改为我的语言,那么我会得到一个原始翻译 所以我试着从原始模块翻译中复制一个部件,然后像这样将其添加到我的po文件中 #. module: pr

如何覆盖默认代码字段的转换

在继承的产品模板和产品中,我添加了字段

默认\u代码=fields.Char string='Articul', 相关的class='product\u variant\u ids.default\u code' 及

默认\u代码=fields.Char “Articul”,选择=True 字符串在英语版本中发生了变化,但如果我改为我的语言,那么我会得到一个原始翻译

所以我试着从原始模块翻译中复制一个部件,然后像这样将其添加到我的po文件中

#. module: product
#: model:ir.model.fields,field_description:product.field_product_product_default_code
#: model:ir.model.fields,field_description:product.field_product_template_default_code
msgid "Articul"
msgstr "Articulas"
它可以工作,但是当我想用Poedit更新我的文件时,我得到了一个错误

2018 m. liepos 30 d. 15:43:37: /tmp/poedituUNIro/1input.po:1023: duplicate message definition...
2018 m. liepos 30 d. 15:43:37: /tmp/poedituUNIro/1input.po:169: ...this is the location of the first definition
2018 m. liepos 30 d. 15:43:37: msgmerge: found 1 fatal error
2018 m. liepos 30 d. 15:43:37: Entries in the catalog are probably incorrect.
2018 m. liepos 30 d. 15:43:37: Updating the catalog failed. Click on 'Details >>' for details.

无需重新声明字段字符串

从要覆盖的加载项导出翻译文件。 使用POEeit或类似语言翻译。 将翻译文件放到插件的i18n_额外文件夹中。例如:插件/i18n_额外/fr.pot 更新插件。
使用该系统,子模块可以覆盖父模块的翻译。

无需重新声明字段字符串

从要覆盖的加载项导出翻译文件。 使用POEeit或类似语言翻译。 将翻译文件放到插件的i18n_额外文件夹中。例如:插件/i18n_额外/fr.pot 更新插件。 使用该系统,子模块能够覆盖父模块的翻译