Add email for no records template.

This commit refs #15617
This commit is contained in:
Sergio Morillo 2020-11-04 15:00:06 +01:00
parent 36cdcc7ace
commit 0ee730f1cb
3 changed files with 16 additions and 0 deletions

View File

@ -52,6 +52,10 @@ class ElectronicMailFilter(DeactivableMixin, ModelSQL, ModelView):
},
help='Operator to mix the records obtained through the filters in the '
'first tab and records calculated by the manual code.')
email = fields.Many2One('party.contact_mechanism', 'E-Mail',
domain=[('type', '=', 'email')],
help='Defines E-mail to use when email template has option '
'"Send email when no records" enabled.')
@classmethod
def __setup__(cls):

View File

@ -86,6 +86,16 @@ msgctxt "field:electronic.mail.filter,template:"
msgid "eMail Template"
msgstr "Plantilla de correo electrónico"
msgctxt "field:electronic.mail.filter,email:"
msgid "E-Mail"
msgstr "Correo electrónico"
msgctxt "help:electronic.mail.filter,email:"
msgid ""
"Defines E-mail to use when email template has option \"Send email when no records\" enabled."
msgstr ""
"Indica el correo electrónico a usar cuando la plantilla de correo tiene marcada la opción \"Enviar correo si no hay resultados\"."
msgctxt "field:electronic.mail.filter,write_date:"
msgid "Write Date"
msgstr "Fecha modificación"

View File

@ -13,6 +13,8 @@ copyright notices and license terms. -->
<field name="template"/>
<label name="last_send"/>
<field name="last_send"/>
<label name="email"/>
<field name="email"/>
<notebook colspan="4">
<page string="Profile" id="profile">
<field name="profile" colspan="4"/>