OCA / multi-company

GNU Affero General Public License v3.0
97 stars 279 forks source link

[16.0][IMP] mail_multicompany: add company field in incoming mail servers #616

Open MarinaAForgeFlow opened 2 months ago

MarinaAForgeFlow commented 2 months ago

This commit adds a company_id field to the fetchmail.server model. Then uses this field, in the mail.thread message_process overwritten method, to correctly set the company on the environment when fetching mails.

This change is needed because when fetching the mails with an scheduled action, in an odoo database with multiple companies and multiple outgoing and incoming mail servers, the outgoing mail server of the fetched messages is not being correctly chosen, as the self.env.company is not necessarily the same as the company of the record where the message has to be posted to.

OCA-git-bot commented 2 months ago

Hi @luisg123v, some modules you are maintaining are being modified, check this out!

OCA-git-bot commented 1 month ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

OCA-git-bot commented 1 month ago

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

flotho commented 1 week ago

hi @MarinaAForgeFlow , any chance to rebase so that runboat will be green ?