Skip to content

Commit

Permalink
fix: idioma correo prioriza el idioma de la plantilla en vez del context
Browse files Browse the repository at this point in the history
  • Loading branch information
lcbautista committed Aug 9, 2024
1 parent a06f88e commit 3a2e335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poweremail_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_value(cursor, user, recid, message=None, template=None, context=None):
context = {}
ctx = context.copy()
ctx['browse_reference'] = True
ctx['lang'] = context.get('lang', False)
ctx['lang'] = template._context.get('lang', context.get('lang', False))
if not ctx['lang']:
ctx['lang'] = get_email_default_lang()
object = pool.get(template.object_name.model).simple_browse(cursor, user, recid, context=ctx)
Expand Down

0 comments on commit 3a2e335

Please sign in to comment.