[14.0][FIX] mail_outbound_static: Apply pre-commit

This commit is contained in:
Denis Roussel 2022-01-19 17:05:55 +01:00 committed by Maksym Yankin
parent 201e35d24e
commit 43be1be2a3
2 changed files with 4 additions and 4 deletions

View File

@ -118,8 +118,8 @@ class IrMailServer(models.Model):
@tools.ormcache("email_domain")
def _get_mail_sever(self, email_domain):
""" return the mail server id that match with the domain_whitelist
If not match then return the default mail server id available one """
"""return the mail server id that match with the domain_whitelist
If not match then return the default mail server id available one"""
mail_server_id = None
for item in self.sudo().search(
[("domain_whitelist", "!=", False)], order="sequence"

View File

@ -11,8 +11,8 @@
<field name="inherit_id" ref="base.ir_mail_server_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='smtp_pass']" position="after">
<field name="domain_whitelist"/>
<field name="smtp_from" widget="email"/>
<field name="domain_whitelist" />
<field name="smtp_from" widget="email" />
</xpath>
</field>
</record>