Skip to Content

Contributors

  • Re: Manage odoo automatic mails with recipients anti spam
    The first thing that I would do is look at the Message-Id and References headers in the response email to determine if you are suffering from an issue like

    """Issue: when using Amazon's SES SMTP service they rewrite the Message-Id of all
    outgoing messages. When someone replies, In-Reply-To contains the SES Message-Id
    which we don't know. Threading is therefore broken. Amazon requires to remember
    new Message-Id and handle it ourself, which is complicated [1]."""



    On Fri, Mar 21, 2025 at 8:02 AM David Beal <notifications@odoo-community.org> wrote:
    Dear OCA contributors,

    How do you manage automatic mailings from odoo when the recipient uses an anti-spam solution that requires the sender to be validated by a return mail that requires clicking on a link or filling a captcha ?
    I have a customer who uses the https://www.mailinblack.com/en solution.
    Mails returned by recipients who have mailinblack are not returned in Odoo in the original mail thread and are invisible in Odoo.

    What are the best practices in this case?

    Thanks a lot

    Regards

    David BEAL

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Adam Heinz - 01:15 - 21 Mar 2025
  • Manage odoo automatic mails with recipients anti spam
    Dear OCA contributors,

    How do you manage automatic mailings from odoo when the recipient uses an anti-spam solution that requires the sender to be validated by a return mail that requires clicking on a link or filling a captcha ?
    I have a customer who uses the https://www.mailinblack.com/en solution.
    Mails returned by recipients who have mailinblack are not returned in Odoo in the original mail thread and are invisible in Odoo.

    What are the best practices in this case?

    Thanks a lot

    Regards

    David BEAL

    by David BEAL - 01:00 - 21 Mar 2025
  • Request for Review and Feedback on PR #3189: Enhancement to views_migration_17 Module

    Subject: Request for Review and Feedback on PR #3189: Enhancement to views_migration_17 Module

    Dear OCA Contributors,

    I hope this message finds you well. I am writing to kindly request your review and feedback on a recent pull request I have submitted to the server-tools repository: PR #3189.

    Pull Request Overview:

    • Title: [IMP] views_migration_17: support alternative output directory for transformed views instead of in-place write
    • Description: This improvement introduces the ability to specify an alternative output directory for transformed views in the views_migration_17 module, rather than performing in-place modifications. This enhancement aims to provide greater flexibility in managing transformed views for example when using doodba image from Tecnatica where addons path is readonly.

    Your insights and feedback are invaluable to ensure the quality and functionality of this enhancement. I would greatly appreciate it if you could take the time to review the proposed changes and share your thoughts or suggestions.

    Thank you for your attention and support.

    Best regards,

    \rrebollo


    by Ing. Rolando Pérez Rebollo - 11:51 - 21 Mar 2025
  • Request for Information on Using connector_importer and connector_importer_product

    Dear OCA Contributors,

    I hope you are all doing well.

    I am currently exploring the connector_importer and connector_importer_product addons and would like to better understand their intended use, configuration, and best practices. While I have reviewed the source code and available documentation, I would appreciate any additional insights from the community.

    If you have:

    • Any official or unofficial documentation,
    • Example implementations or case studies,
    • Guidance on best practices for setting up and using these modules,

    I would be grateful if you could share them. Any pointers to existing discussions, blog posts, or repositories with relevant examples would also be highly valuable.

    Thank you in advance for your time and assistance!

    Best regards,

    \rrebollo


    by Ing. Rolando Pérez Rebollo - 10:41 - 21 Mar 2025
  • SAVE THE DATE - OCA DAYS 2025 - 15-17 SEPTEMBER

    Hello OCA Contributors!


    We are excited to finally be able to announce the dates for the OCA Days 2025.
    We will be in Liège again at Val Benoit - this year over the course of 3 days - 15th - 17th September.


    • Monday 15th - Trainings and Code Sprint

    • Tuesday 16th - Presentations and Code Sprint

    • Wednesday 17th - Presentations and Code Sprint.


    You’ll be able to purchase tickets soon - I'll be in touch again to let you know when they are ready online.

    If you are interested in joining the OCA Days 2024 workgroup to help with the planning of the event please get in touch with me directly at rebecca@odoo-communityorg


    We are looking forward to creating another great event for you this year.
    Warm regards,

    Rebecca



    --
    Rebecca Gellatly
    General Secretary
    Odoo Community Association

    by Rebecca Gellatly (OCA) - 05:11 - 17 Mar 2025
  • Re: Odoo base_external_dbsource usage examples
    Hi Marcus,
    I made a module a long time ago, so it's not so much compliant with current OCA guidelines, but if it can be of inspiration to you it's here: https://github.com/efatto/e-efatto/blob/14.0/connector_whs/models/hyddemo_mssql_log.py
    Bye
    Sergio Corato


    Il giorno ven 14 mar 2025 alle ore 15:17 Ronald Portier <notifications@odoo-community.org> ha scritto:

    Hi,


    I never used the module, so I do not have an example, but I think you should override the normal read, search, browse, write, create, unlink methods, and perhaps a few others, to read or modify the remote database through the external db source, instead of the local postgres database. Obviously you would also need to set _auto (and likely _log_access) on the model to False.


    Kind regards, Ronald


    On 14-03-2025 13:27, Marcus Myer wrote:
    I was hoping that there would be an example of how to create a model in 
    Odoo that pulls data from an external datasource and a view could be 
    created directly on the model. . . But maybe that's asking too much. If 
    someone has an example like this, please let me know.
    
    Thanks,
    
    Marcus Myer
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Sergio Corato - 03:51 - 14 Mar 2025
  • Re: Odoo base_external_dbsource usage examples

    Hi,


    I never used the module, so I do not have an example, but I think you should override the normal read, search, browse, write, create, unlink methods, and perhaps a few others, to read or modify the remote database through the external db source, instead of the local postgres database. Obviously you would also need to set _auto (and likely _log_access) on the model to False.


    Kind regards, Ronald


    On 14-03-2025 13:27, Marcus Myer wrote:
    I was hoping that there would be an example of how to create a model in 
    Odoo that pulls data from an external datasource and a view could be 
    created directly on the model. . . But maybe that's asking too much. If 
    someone has an example like this, please let me know.
    
    Thanks,
    
    Marcus Myer
    
    

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Ronald Portier - 03:16 - 14 Mar 2025
  • Re: Odoo base_external_dbsource usage examples
    I was hoping that there would be an example of how to create a model in 
    Odoo that pulls data from an external datasource and a view could be 
    created directly on the model. . . But maybe that's asking too much. If 
    someone has an example like this, please let me know.
    
    Thanks,
    
    Marcus Myer
    
    

    by Marcus Myer - 01:26 - 14 Mar 2025
  • Re: Odoo - Internal Transfer in Payments
    Dear Juan José,

    Thank you for your suggestion. I'll explore the module for re-adding the internal transfer feature.

    Best regards,
    Saran



    On Thu, Mar 13, 2025 at 4:52 PM Juan José Scarafía <notifications@odoo-community.org> wrote:
    Hi!
    Yes, in 18 internal transfers "should be done" via bank reconciliation. But honestly, we've lot of use cases where that is not handy.
    It would be great if more of us ping odoo with the feedback that internal transfers are needed.
    Regards,
    Juan

    Ing. Juan José Scarafía

    (+54 9 341) 3 278039

    twitter: @jjscarafia

    github: @jjscarafia



    El mié, 12 mar 2025 a la(s) 4:22 a.m., Saran Limpajitkutaporn (notifications@odoo-community.org) escribió:
    Dear,

    In Odoo versions 15 and 16, internal transfers could be done directly in payments.
    However, in version 18, I can't find the option to use internal transfers in payments.
    Maybe it has been changed to internal transfers via bank reconciliation.

    Should we migrate the account_payment_paired_internal_transfer module to v18, or is there another way to handle internal transfers?

    Thank you,
    Saran Lim.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by saranl - 02:11 - 13 Mar 2025
  • Re: Introducing pofiletranslate – A Tool for Translating PO Files

    Hi Tom,

    Thank you for sharing your approach!

    My tool is designed to be straightforward for anyone structuring their codebase in a workspace. You simply open the terminal in the i18n folder and run:

    pofiletranslate lang.po

    I've considered adding a caching system to avoid re-scanning PO files and integrating AI models (like transformer-based ones from Hugging Face) for the remaining untranslated terms. However, I found that this would complicate the tool while offering diminishing returns.

    Let me know if you have any thoughts!

    Best regards,
    Rachid


    Le mer. 12 mars 2025 à 13:17, Tom Blauwendraat <notifications@odoo-community.org> a écrit :

    Hi Rachid,

    I don't really have the time to take a look at what you made, but I've been using standard tools and some scripting to achieve the same, revolving around the following commands:

    1. Create "compendium" from existing translations:

    find ../../odoo -name nl.po | xargs msgcat --use-first | msgattrib --translated --no-fuzzy -o $HOME/odoo_nl.po

    2. Translate a module's PO file, making use of the compendium:

    msgmerge --no-fuzzy-matching --compendium $HOME/odoo_nl.po -o $dir/$module.new.po /dev/null $dir/$module.po

    It seems a similar method. I don't know if it can be of use to you

    -Tom

    On 3/12/25 12:37, Rachid Alassir wrote:

    Hi Antonio,

    By codebase, I mean the root directory of your workspace where your source code and existing translation files are located. The package searches for translations by analyzing the .po files in your project and reusing existing translations instead of relying on AI or Google Translate.

    By default, the tool starts from the directory of the provided .po file and backtracks up to 4 levels (configurable with --depth) to identify common translations within your project.

    Here’s an example to illustrate how it works:

    workspace17/  
    ├── hr/                # HR-related modules  
    ├── account/           # Accounting-related modules  
    │   ├── my_module/     # Your custom module  
    │   │   ├── i18n/      # Translation folder  
    │   │   │   ├── fr.po  # French translation file (target file for translation)  
    

    If you run:

    pofiletranslate account/my_module/i18n/fr.po
    

    The tool will search for translations in fr.po files up to 4 levels above in your workspace (workspace17/), ensuring better translation consistency across your project.

    Let me know if you need any further clarification!

    Best regards,
    Rachid


    Le mer. 12 mars 2025 à 12:13, Antonio M. Vigliotti <notifications@odoo-community.org> a écrit :

    Hi Rachid,

    it is very interesting but what do you mean for Codebase?

    I cannot understand where package search for tranlsation.

    Thanks

    Antonio M. Vigliotti

    Mobile (+39) 342.8740910



    Il 11/03/2025 21:23, Rachid Alassir ha scritto:

    I apologize for the incorrectly formatted URLs in my previous email. Here are the correct links:

    PyPI: https://pypi.org/project/pofiletranslate


    GitHub: https://github.com/RachidAlassir/po-translate


    On Tue, Mar 11, 2025, 8:39 PM Rachid Alassir <rachidalassir@gmail.com> wrote:

    Dear Odoo Community,  

    I’ve developed a straightforward tool to translate PO files directly from a local codebase. I noticed that translations often follow a pattern within each project, and leveraging existing translations tends to produce better results than relying on Google Translate or AI-based tools.  

    **PyPI:** [https://pypi.org/project/pofiletranslate/](https://pypi.org/project/pofiletranslate/)  
    **GitHub:** [https://github.com/RachidAlassir/po-translate](https://github.com/RachidAlassir/po-translate)  

    I’d love to hear your feedback and suggestions!  

    Best regards,  
    Rachid Alassir

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Rachid Alassir - 11:11 - 13 Mar 2025
  • Re: Odoo - Internal Transfer in Payments
    Hi!
    Yes, in 18 internal transfers "should be done" via bank reconciliation. But honestly, we've lot of use cases where that is not handy.
    It would be great if more of us ping odoo with the feedback that internal transfers are needed.
    Regards,
    Juan

    Ing. Juan José Scarafía

    (+54 9 341) 3 278039

    twitter: @jjscarafia

    github: @jjscarafia



    El mié, 12 mar 2025 a la(s) 4:22 a.m., Saran Limpajitkutaporn (notifications@odoo-community.org) escribió:
    Dear,

    In Odoo versions 15 and 16, internal transfers could be done directly in payments.
    However, in version 18, I can't find the option to use internal transfers in payments.
    Maybe it has been changed to internal transfers via bank reconciliation.

    Should we migrate the account_payment_paired_internal_transfer module to v18, or is there another way to handle internal transfers?

    Thank you,
    Saran Lim.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Juan José Scarafía - 10:51 - 13 Mar 2025
  • Re: Introducing pofiletranslate – A Tool for Translating PO Files
    Hello Rachid,

    very nice, especially for custom modules. Thanks a lot.

    BR Goran

    11.03.2025 20:47:03 Rachid Alassir <notifications@odoo-community.org>:


    Dear Odoo Community,  

    I’ve developed a straightforward tool to translate PO files directly from a local codebase. I noticed that translations often follow a pattern within each project, and leveraging existing translations tends to produce better results than relying on Google Translate or AI-based tools.  

    **PyPI:** [https://pypi.org/project/pofiletranslate/](https://pypi.org/project/pofiletranslate/)  
    **GitHub:** [https://github.com/RachidAlassir/po-translate](https://github.com/RachidAlassir/po-translate)  

    I’d love to hear your feedback and suggestions!  

    Best regards,  
    Rachid Alassir

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Goran Sunjka - 09:56 - 13 Mar 2025
  • Re: Tests failure when invoicing is involved after a change in Odoo upstream
    Well, that only fixes the problem in specific repositories OCA CIs, and you still needed to make some changes in tests. The problem we had was when using the modules in our own Ci, and the proposed patch was a good balance for not disturbing current OCA status and don't fail in our scenario.

    Regards.

    by Pedro M. Baeza - 05:07 - 12 Mar 2025
  • Re: Tests failure when invoicing is involved after a change in Odoo upstream
    While fixing the 16.0 branch for l10n_belgium I have done some more research on this.

    In 16.0, something like `odoo -i l10n_be` gives you two companies with main company without CoA (that's the problem mentioned in OP)

    - Your Company (base.main_company), country=US, no CoA
    - BE Company, country=BE, BE CoA

    In 17.0 and 18.0, the generic CoA is loaded on main_company even though a localization was loaded:

    - Your Company (base.main_company), country=US, Generic CoA
    - BE Company, country=BE, BE CoA

    This is why we only see the problem in 16.

    So I now think pre-loading l10n_generic_coa before running the tests in 16.0 is an easy fix, and also a good solution (and the one I prefer), because it sets up the main company identically to what we get in later versions.

    IMO, tests that really depend on a CoA should use a company initialized with that CoA, and not base.main_company.

    This is what I did in l10n_belgium: https://github.com/OCA/l10n-belgium/pull/243

    Best regards,

    -Stéphane

    On Fri, Feb 28, 2025 at 7:33 PM Stéphane Bidoul <stephane.bidoul@acsone.eu> wrote:
    I have hit this issue in one of my projects where I run all tests post-install.

    Instead of changing all my tests, I chose to install l10n_generic_coa in CI, which was an easy solution in my specific situation.
    Maybe this can help others hitting the same problem.

    Best regards,

    -Stéphane


    On Wed, Feb 26, 2025 at 4:53 PM Pedro M. Baeza <notifications@odoo-community.org> wrote:
    Stefan and Denis, the reason for the Odoo patch may be legit, and it is. The problem is that it comes too late for the lifecycle of this version IMO, and more having in version 17 integrated the generic CoA into account for better practices. Anyway, this is just undisclosing a problem that has been hidden in the design of our OCA tests, them not being deterministic and really unit tests, as they are relying on previous state of data for being successful:

    - The company used is the one populated by default instead of using a full set of data including the company. This may be reasonable for execution times, and that's why the decision to just fix this condition installing an existing CoA instead of populating on each test a new company.
    - There's no guarantee a CoA is loaded at the time of performing the tests, but creating an invoice requires it. That's why the post-install thing (and it's also a requirement if inheriting AccountTestInvoicingCommon).


    Inheriting from AccountTestInvoicingCommon, as explained in the commit message I linked in my first message, it's not improving the thing (at least in 16, in 17 it's more ironized), because it still requires `l10n_generic_coa` installed (and installed before the execution of this test), and its setup is very heavy, creating 2 companies (even if you only require one), so this would increase the test execution times a lot in the best case, or skipped without you really noticing in the worst (when generic CoA is not available).

    The added code is NOT boilerplate. It's legit code for making deterministic tests, the same as you may remove currency rates for having a deterministic environment. And it's totally harmless if you don't need it, because starting with, it's in test code, not in business code, and if you keep the previous status quo, the if it's not executed, so it doesn't affect any previous condition. This can only uncover other hidden defects on the modules being executed in post-install, and this is being patched at the same time.

    Replying to other threads answers, I don't think this will reverted, as AFAIK Odoo.sh is auto-installing the modules that hides the problem, and not installing any localization module, but I'm not expert of that platform, so I may be wrong.

    Regards.

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Stéphane Bidoul - 04:11 - 12 Mar 2025
  • Re: Odoo base_external_dbsource usage examples
    Hello Marcus,

    Here is an example of using base_external_dbsource to compute a kpi and store the values in Odoo:
    https://github.com/OCA/reporting-engine/tree/13.0/kpi

    Hope it helps.

    MAXIME CHAMBREUIL
    DIRECTOR INTERNACIONAL
    T: +52 (800) 953-2012 #5200
    M: +52 (442) 114-9164 | WhatsApp
    C: MChambreuil@OpenSourceIntegrators.com

    Av. Antea 1032, Piso 4 Local 8, Colonia Jurica
    Santiago de Querétaro, Querétaro, 76100, México


    Analizar. Optimizar. Automatizar. Transicionar.


    On Wed, Mar 12, 2025 at 7:32 AM Marcus Myer <notifications@odoo-community.org> wrote:

    Hello community,

    I installed the base_external_dbsource Odoo module and am able to connect to an external postgresql database. However, I am not able to find any examples of how the base_external_dbsource module should be used. I would like to create a model and access data from the external database in similar ways as the native Odoo database.

    Any examples of how to use this module would be appreciated. It might also be wise to add some to the readme of this module.

    Thanks,

    Marcus Myer

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    Security Notice: Don't be too quick to click!
    Think carefully before clicking on links or attachments. Never provide your User ID or Passwords. Report any suspicious emails to your system administrator.

    by Maxime Chambreuil - 03:26 - 12 Mar 2025
  • Re: Introducing pofiletranslate – A Tool for Translating PO Files

    Thank Rachid.

    I would try both your solution both the msgmerge solution.

    Thanks to all

    Antonio M. Vigliotti

    Mobile (+39) 342.8740910



    Il 11/03/2025 20:46, Rachid Alassir ha scritto:

    Dear Odoo Community,  

    I’ve developed a straightforward tool to translate PO files directly from a local codebase. I noticed that translations often follow a pattern within each project, and leveraging existing translations tends to produce better results than relying on Google Translate or AI-based tools.  

    **PyPI:** [https://pypi.org/project/pofiletranslate/](https://pypi.org/project/pofiletranslate/)  
    **GitHub:** [https://github.com/RachidAlassir/po-translate](https://github.com/RachidAlassir/po-translate)  

    I’d love to hear your feedback and suggestions!  

    Best regards,  
    Rachid Alassir

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Antonio M. Vigliotti - 02:41 - 12 Mar 2025
  • Odoo base_external_dbsource usage examples

    Hello community,

    I installed the base_external_dbsource Odoo module and am able to connect to an external postgresql database. However, I am not able to find any examples of how the base_external_dbsource module should be used. I would like to create a model and access data from the external database in similar ways as the native Odoo database.

    Any examples of how to use this module would be appreciated. It might also be wise to add some to the readme of this module.

    Thanks,

    Marcus Myer


    by Marcus Myer - 02:31 - 12 Mar 2025
  • Re: Introducing pofiletranslate – A Tool for Translating PO Files
    I load the translation memory of POEdit feeding it with the existing .po files, and then open the PO to translate and auto-feeding it.

    Regards.

    by Pedro M. Baeza - 01:21 - 12 Mar 2025
  • Re: Introducing pofiletranslate – A Tool for Translating PO Files

    Hi Rachid,

    I don't really have the time to take a look at what you made, but I've been using standard tools and some scripting to achieve the same, revolving around the following commands:

    1. Create "compendium" from existing translations:

    find ../../odoo -name nl.po | xargs msgcat --use-first | msgattrib --translated --no-fuzzy -o $HOME/odoo_nl.po

    2. Translate a module's PO file, making use of the compendium:

    msgmerge --no-fuzzy-matching --compendium $HOME/odoo_nl.po -o $dir/$module.new.po /dev/null $dir/$module.po

    It seems a similar method. I don't know if it can be of use to you

    -Tom

    On 3/12/25 12:37, Rachid Alassir wrote:

    Hi Antonio,

    By codebase, I mean the root directory of your workspace where your source code and existing translation files are located. The package searches for translations by analyzing the .po files in your project and reusing existing translations instead of relying on AI or Google Translate.

    By default, the tool starts from the directory of the provided .po file and backtracks up to 4 levels (configurable with --depth) to identify common translations within your project.

    Here’s an example to illustrate how it works:

    workspace17/  
    ├── hr/                # HR-related modules  
    ├── account/           # Accounting-related modules  
    │   ├── my_module/     # Your custom module  
    │   │   ├── i18n/      # Translation folder  
    │   │   │   ├── fr.po  # French translation file (target file for translation)  
    

    If you run:

    pofiletranslate account/my_module/i18n/fr.po
    

    The tool will search for translations in fr.po files up to 4 levels above in your workspace (workspace17/), ensuring better translation consistency across your project.

    Let me know if you need any further clarification!

    Best regards,
    Rachid


    Le mer. 12 mars 2025 à 12:13, Antonio M. Vigliotti <notifications@odoo-community.org> a écrit :

    Hi Rachid,

    it is very interesting but what do you mean for Codebase?

    I cannot understand where package search for tranlsation.

    Thanks

    Antonio M. Vigliotti

    Mobile (+39) 342.8740910



    Il 11/03/2025 21:23, Rachid Alassir ha scritto:

    I apologize for the incorrectly formatted URLs in my previous email. Here are the correct links:

    PyPI: https://pypi.org/project/pofiletranslate


    GitHub: https://github.com/RachidAlassir/po-translate


    On Tue, Mar 11, 2025, 8:39 PM Rachid Alassir <rachidalassir@gmail.com> wrote:

    Dear Odoo Community,  

    I’ve developed a straightforward tool to translate PO files directly from a local codebase. I noticed that translations often follow a pattern within each project, and leveraging existing translations tends to produce better results than relying on Google Translate or AI-based tools.  

    **PyPI:** [https://pypi.org/project/pofiletranslate/](https://pypi.org/project/pofiletranslate/)  
    **GitHub:** [https://github.com/RachidAlassir/po-translate](https://github.com/RachidAlassir/po-translate)  

    I’d love to hear your feedback and suggestions!  

    Best regards,  
    Rachid Alassir

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Tom Blauwendraat - 01:16 - 12 Mar 2025
  • Re: Introducing pofiletranslate – A Tool for Translating PO Files

    Hi Antonio,

    By codebase, I mean the root directory of your workspace where your source code and existing translation files are located. The package searches for translations by analyzing the .po files in your project and reusing existing translations instead of relying on AI or Google Translate.

    By default, the tool starts from the directory of the provided .po file and backtracks up to 4 levels (configurable with --depth) to identify common translations within your project.

    Here’s an example to illustrate how it works:

    workspace17/  
    ├── hr/                # HR-related modules  
    ├── account/           # Accounting-related modules  
    │   ├── my_module/     # Your custom module  
    │   │   ├── i18n/      # Translation folder  
    │   │   │   ├── fr.po  # French translation file (target file for translation)  
    

    If you run:

    pofiletranslate account/my_module/i18n/fr.po
    

    The tool will search for translations in fr.po files up to 4 levels above in your workspace (workspace17/), ensuring better translation consistency across your project.

    Let me know if you need any further clarification!

    Best regards,
    Rachid


    Le mer. 12 mars 2025 à 12:13, Antonio M. Vigliotti <notifications@odoo-community.org> a écrit :

    Hi Rachid,

    it is very interesting but what do you mean for Codebase?

    I cannot understand where package search for tranlsation.

    Thanks

    Antonio M. Vigliotti

    Mobile (+39) 342.8740910



    Il 11/03/2025 21:23, Rachid Alassir ha scritto:

    I apologize for the incorrectly formatted URLs in my previous email. Here are the correct links:

    PyPI: https://pypi.org/project/pofiletranslate


    GitHub: https://github.com/RachidAlassir/po-translate


    On Tue, Mar 11, 2025, 8:39 PM Rachid Alassir <rachidalassir@gmail.com> wrote:

    Dear Odoo Community,  

    I’ve developed a straightforward tool to translate PO files directly from a local codebase. I noticed that translations often follow a pattern within each project, and leveraging existing translations tends to produce better results than relying on Google Translate or AI-based tools.  

    **PyPI:** [https://pypi.org/project/pofiletranslate/](https://pypi.org/project/pofiletranslate/)  
    **GitHub:** [https://github.com/RachidAlassir/po-translate](https://github.com/RachidAlassir/po-translate)  

    I’d love to hear your feedback and suggestions!  

    Best regards,  
    Rachid Alassir

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe

    _______________________________________________
    Mailing-List: https://odoo-community.org/groups/contributors-15
    Post to: mailto:contributors@odoo-community.org
    Unsubscribe: https://odoo-community.org/groups?unsubscribe


    by Rachid Alassir - 12:36 - 12 Mar 2025