parent
3750bdc113
commit
d7310990a6
|
@ -302,6 +302,10 @@ msgctxt "selection:electronic.mail.template,engine:"
|
||||||
msgid "Python"
|
msgid "Python"
|
||||||
msgstr "Python"
|
msgstr "Python"
|
||||||
|
|
||||||
|
msgctxt "selection:ir.trigger,action:"
|
||||||
|
msgid "Email Template"
|
||||||
|
msgstr "Plantilla correu"
|
||||||
|
|
||||||
msgctxt "view:electronic.mail.send.template.start:"
|
msgctxt "view:electronic.mail.send.template.start:"
|
||||||
msgid "Body HTML"
|
msgid "Body HTML"
|
||||||
msgstr "HTML body"
|
msgstr "HTML body"
|
||||||
|
|
|
@ -307,6 +307,10 @@ msgctxt "selection:electronic.mail.template,engine:"
|
||||||
msgid "Python"
|
msgid "Python"
|
||||||
msgstr "Python"
|
msgstr "Python"
|
||||||
|
|
||||||
|
msgctxt "selection:ir.trigger,action:"
|
||||||
|
msgid "Email Template"
|
||||||
|
msgstr "Plantilla correu"
|
||||||
|
|
||||||
msgctxt "view:electronic.mail.send.template.start:"
|
msgctxt "view:electronic.mail.send.template.start:"
|
||||||
msgid "Body HTML"
|
msgid "Body HTML"
|
||||||
msgstr "Texto HTML"
|
msgstr "Texto HTML"
|
||||||
|
|
|
@ -12,10 +12,15 @@ class Trigger(metaclass=PoolMeta):
|
||||||
__name__ = 'ir.trigger'
|
__name__ = 'ir.trigger'
|
||||||
email_template = fields.Many2One('electronic.mail.template', 'Template')
|
email_template = fields.Many2One('electronic.mail.template', 'Template')
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def __setup__(cls):
|
||||||
|
super().__setup__()
|
||||||
|
cls.action.selection.append(
|
||||||
|
('electronic.mail.template|mail_from_trigger', "Email Template"),
|
||||||
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def default_model():
|
def default_model():
|
||||||
Model = Pool().get('ir.model')
|
|
||||||
|
|
||||||
model = Transaction().context.get('model', None)
|
model = Transaction().context.get('model', None)
|
||||||
if model:
|
if model:
|
||||||
return model
|
return model
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<!-- This file is part electronic_mail module for Tryton.
|
<!-- This file is part electronic_mail module for Tryton.
|
||||||
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
The COPYRIGHT file at the top level of this repository contains the full copyright notices and license terms. -->
|
||||||
<data>
|
<data>
|
||||||
<xpath expr="/form/field[@name='action_function']" position="after">
|
<xpath expr="/form/field[@name='action']" position="after">
|
||||||
<label name="email_template"/>
|
<label name="email_template"/>
|
||||||
<field name="email_template" readonly="1"/>
|
<field name="email_template" readonly="1"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
Loading…
Reference in New Issue