Archives
- By thread 1419
-
By date
- August 2019 59
- September 2019 118
- October 2019 165
- November 2019 97
- December 2019 35
- January 2020 58
- February 2020 204
- March 2020 121
- April 2020 172
- May 2020 50
- June 2020 158
- July 2020 85
- August 2020 94
- September 2020 193
- October 2020 277
- November 2020 100
- December 2020 159
- January 2021 38
- February 2021 87
- March 2021 146
- April 2021 73
- May 2021 90
- June 2021 86
- July 2021 123
- August 2021 50
- September 2021 68
- October 2021 66
- November 2021 74
- December 2021 75
- January 2022 98
- February 2022 77
- March 2022 68
- April 2022 31
- May 2022 59
- June 2022 87
- July 2022 141
- August 2022 38
- September 2022 73
- October 2022 152
- November 2022 39
- December 2022 50
- January 2023 93
- February 2023 49
- March 2023 106
- April 2023 47
- May 2023 69
- June 2023 92
- July 2023 64
- August 2023 103
- September 2023 91
- October 2023 101
- November 2023 94
- December 2023 46
- January 2024 75
- February 2024 79
- March 2024 104
- April 2024 63
- May 2024 40
- June 2024 160
- July 2024 80
- August 2024 70
- September 2024 62
- October 2024 121
- November 2024 117
- December 2024 89
- January 2025 59
- February 2025 104
- March 2025 96
- April 2025 107
- May 2025 52
- June 2025 72
- July 2025 60
- August 2025 81
- September 2025 124
- October 2025 63
- November 2025 22
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 alloutgoing 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 lotRegardsDavid 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 lotRegardsDavid 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_17ModuleDear 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-toolsrepository: 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_17module, 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_importerandconnector_importer_productaddons 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-communityorgWe are looking forward to creating another great event for you this year.
Warm regards,Rebecca
--Rebecca GellatlyGeneral SecretaryOdoo 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.pyByeSergio CoratoIl 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,SaranOn 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.We've developed this module to re-add that feature https://github.com/ingadhoc/account-financial-tools/tree/18.0/account_internal_transferIt would be great if more of us ping odoo with the feedback that internal transfers are needed.Regards,JuanEl 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
i18nfolder and run:pofiletranslate lang.poI'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,
RachidLe 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
.pofiles 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
.pofile 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.poThe tool will search for translations in fr
.pofiles 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
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:
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.We've developed this module to re-add that feature https://github.com/ingadhoc/account-financial-tools/tree/18.0/account_internal_transferIt would be great if more of us ping odoo with the feedback that internal transfers are needed.Regards,JuanEl 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 CoAIn 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 CoAThis 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/243Best regards,-StéphaneOn 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éphaneOn 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).Enric has also explained it here: https://github.com/OCA/contract/pull/1201#issuecomment-2685397754Inheriting 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/kpiHope it helps.MAXIME CHAMBREUIL
DIRECTOR INTERNACIONALT: +52 (800) 953-2012 #5200
M: +52 (442) 114-9164 | WhatsApp
C: MChambreuil@OpenSourceIntegrators.comAv. 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
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
.pofiles 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
.pofile 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.poThe tool will search for translations in fr
.pofiles 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
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:
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
.pofiles 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
.pofile 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.poThe tool will search for translations in fr
.pofiles 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,
RachidLe 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
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:
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