Skip to content

[19.0][MIG] edi_mail_import_oca#229

Open
etobella wants to merge 5 commits intoOCA:19.0from
dixmit:19.0-mig-mail
Open

[19.0][MIG] edi_mail_import_oca#229
etobella wants to merge 5 commits intoOCA:19.0from
dixmit:19.0-mig-mail

Conversation

@etobella
Copy link
Member

@etobella etobella commented Feb 2, 2026

Depends on #215

Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting approach! Thanks!

@@ -0,0 +1 @@
This module allows to process mails received as edi.exchange.records to process them.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a configuration file?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

attachment.fname,
re.IGNORECASE,
):
content = self._process_email_attachment(attachment)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cannot find this method in Odoo 🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


class EdiExchangeType(models.Model):
_name = "edi.exchange.type"
_inherit = ["edi.exchange.type", "mail.alias.mixin"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking out loud: instead of polluting the exchange type model, wouldn't be interesting to have a specific record for this? Eg: "EDI mail gateway" or something similar.
Easier to maintain and to configure for the end user probably. WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe using edi.backend. At the end, that is the goal of backends, isn't it?

@etobella
Copy link
Member Author

etobella commented Feb 4, 2026

@simahawk After your comments, I do agree that the best approach would be to set everything on the backend and do the same thing we do with Storage.

Also, I improved REadmes and information inside the backend to make it easier to handle (actually, it would be nice to include similar information in other modules to make it easier for users. Thanks for your comments, IMO they improved the solution.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants