[14.0][FIX] mail_outbound_static: Apply pre-commit
This commit is contained in:
parent
201e35d24e
commit
43be1be2a3
@ -118,8 +118,8 @@ class IrMailServer(models.Model):
|
|||||||
|
|
||||||
@tools.ormcache("email_domain")
|
@tools.ormcache("email_domain")
|
||||||
def _get_mail_sever(self, email_domain):
|
def _get_mail_sever(self, email_domain):
|
||||||
""" return the mail server id that match with the domain_whitelist
|
"""return the mail server id that match with the domain_whitelist
|
||||||
If not match then return the default mail server id available one """
|
If not match then return the default mail server id available one"""
|
||||||
mail_server_id = None
|
mail_server_id = None
|
||||||
for item in self.sudo().search(
|
for item in self.sudo().search(
|
||||||
[("domain_whitelist", "!=", False)], order="sequence"
|
[("domain_whitelist", "!=", False)], order="sequence"
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
<field name="inherit_id" ref="base.ir_mail_server_form" />
|
<field name="inherit_id" ref="base.ir_mail_server_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='smtp_pass']" position="after">
|
<xpath expr="//field[@name='smtp_pass']" position="after">
|
||||||
<field name="domain_whitelist"/>
|
<field name="domain_whitelist" />
|
||||||
<field name="smtp_from" widget="email"/>
|
<field name="smtp_from" widget="email" />
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user