Skip to content

Commit

Permalink
[FIX] mail_environment: default computation
Browse files Browse the repository at this point in the history
fix the implementation of _compute_default_authentication
to match what is expected by the mixin
  • Loading branch information
gurneyalex authored and grindtildeath committed Jun 27, 2024
1 parent 06ce4cb commit 29686a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mail_environment/models/ir_mail_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def _server_env_fields(self):
return mail_fields

def _compute_default_authentication(self):
return "login"
self.update({"smtp_authentication": "login"})

Check warning on line 30 in mail_environment/models/ir_mail_server.py

View check run for this annotation

Codecov / codecov/patch

mail_environment/models/ir_mail_server.py#L30

Added line #L30 was not covered by tests

@api.model
def _server_env_global_section_name(self):
Expand Down

0 comments on commit 29686a4

Please sign in to comment.