Skip to Content
Menú
This question has been flagged
1 Respondre
893 Vistes

Hi All,
I have copied report_invoice_document report template (from path : addons/account/views/report_invoice.xml) and added in my custom module report_invoice_document_noaddress as new Print option. commented address part in this report. when I release this in client test server it works fine and also Translation Terms generated when I upgrade the module, but same thing I release it in production server and upgrade the module, No Translation terms are generated. What is the reason of not generating Translation Terms ? I observed that one more template in custom module has same report template with id delivery_report_invoice_document as new Print option.

Here in case of production server if I use Generate missing terms it will generate and fix the issues. but why in test server it works without using Generate missing terms option. (Added Japanese translation in ja_JP.po file)

Can anyone please help me on this ?

Avatar
Descartar
Best Answer

When upgrading a custom module in Odoo 15, the absence of generated translation terms can be attributed to several factors. To address this issue, consider the following steps:​

  1. Ensure Translation Files Are Present:
    • Verify that your custom module includes the necessary .pot or .po files within the i18n directory. These files are essential for managing translations.​
  2. Manually Export Translation Terms:
    • Navigate to the Odoo interface and access Settings > Translations > Export Translation.​
    • Select your module and the desired language, then export the terms. This process can help identify any missing translations.​
  3. Check Server Permissions:
    • Ensure that the Odoo server has the appropriate permissions to write to the i18n directory. Insufficient permissions can prevent the creation or updating of translation files.​
  4. Review Module Dependencies:
    • Confirm that all dependencies required by your custom module are correctly specified and installed. Missing dependencies can lead to incomplete module upgrades, affecting translation term generation.​
  5. Examine Server Logs:
    • Inspect the server logs for any errors or warnings related to the module upgrade process. Logs can provide insights into issues preventing the generation of translation terms.​
  6. Compare Test and Production Environments:
    • Analyze the differences between your test and production servers, including configurations, installed modules, and Odoo versions. Discrepancies can lead to inconsistent behaviors.​

If, after performing these steps, the translation terms are still not generated during the module upgrade, consider seeking assistance from the Odoo community or consulting with an Odoo expert to diagnose and resolve the issue.

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de juny 25
577
0
d’abr. 25
683
0
de març 15
3959
0
de set. 23
1580
1
de set. 23
2384