parent
1f53ac5374
commit
ff509b2cdf
13
trigger.py
13
trigger.py
|
@ -24,16 +24,3 @@ class Trigger(metaclass=PoolMeta):
|
||||||
model = Transaction().context.get('model', None)
|
model = Transaction().context.get('model', None)
|
||||||
if model:
|
if model:
|
||||||
return model
|
return model
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def default_action_model():
|
|
||||||
Model = Pool().get('ir.model')
|
|
||||||
|
|
||||||
email_trigger = Transaction().context.get('email_template', False)
|
|
||||||
if not email_trigger:
|
|
||||||
return
|
|
||||||
|
|
||||||
models = Model.search(
|
|
||||||
[('model', '=', 'electronic.mail.template')], limit=1)
|
|
||||||
if models:
|
|
||||||
return models[0].id
|
|
||||||
|
|
|
@ -3,9 +3,7 @@
|
||||||
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
|
<xpath
|
||||||
expr="/form/notebook/page[@string='General']/field[@name='email']"
|
expr="/form/notebook/page[@id='general']" position="inside">
|
||||||
position="after">
|
|
||||||
<newline/>
|
|
||||||
<label name="email_filename"/>
|
<label name="email_filename"/>
|
||||||
<field name="email_filename"/>
|
<field name="email_filename"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|
Loading…
Reference in New Issue