Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@adrip-s73
Copy link

When manually running mail.ir_cron_mail_gateway_action "https://github.com/odoo/odoo/blob/18.0/addons/mail/data/ir_cron_data.xml" , the following error occurs because the base function has the argument set. "https://github.com/odoo/odoo/blob/18.0/addons/mail/models/fetchmail.py"

Error:
image

@OCA-git-bot
Copy link
Contributor

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

@adrip-s73 adrip-s73 force-pushed the 18.0-fetchmail_attach_fron_folder branch from ec9038b to add41cf Compare December 10, 2025 15:31
return result

def fetch_mail(self):
def fetch_mail(self, raise_exception=True):
Copy link
Contributor

Choose a reason for hiding this comment

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

instead of raise_exception=True put **kwargs here.

for this in self:
if not this.folders_only:
result = result and super(FetchmailServer, this).fetch_mail()
result = result and super(FetchmailServer, this).fetch_mail(
Copy link
Contributor

Choose a reason for hiding this comment

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

and **kwargs here. We are not doing anything with any keyword argument here, so using '**kwargs` will pass any keyword argument in the invocation of this method unchanged to the super() method. This will keep working, no matter how many keyword arguments are added or changed in the future.

Copy link
Contributor

@NL66278 NL66278 left a comment

Choose a reason for hiding this comment

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

See comment on using **kwargs

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.

3 participants