[FIX] hr_expense: fix context access in mako template
As context is a keyword in mako, odoo context is actually called ctx in mako templates. Otherwise any rendering of the template will crash.
This commit is contained in:
@@ -66,10 +66,10 @@
|
||||
</record>
|
||||
|
||||
<record id="mail_template_data_expense_unknown_email_address" model="mail.template">
|
||||
<field name="name">hr expense unknown email address on email alias</field>
|
||||
<field name="name">HrExpense: unknown employee bounce</field>
|
||||
<field name="subject">Your expense has not been created</field>
|
||||
<field name="email_from">help@odoo.com</field>
|
||||
<field name="email_to">${context.email_to|safe}</field>
|
||||
<field name="email_to">${ctx['email_to']|safe}</field>
|
||||
<field name="lang">${user.lang}</field>
|
||||
<field name="model_id" ref="base.model_ir_module_module"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
|
||||
Reference in New Issue
Block a user