Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix uid #3

Merged
merged 1 commit into from

2 participants

marc0s Eduard Carreras
marc0s

Passem al diccionari la clau 'uid' que faltava

Marcos de Vera Piquero Passem l'uid que faltava 3e6c81e
Eduard Carreras ecarreras merged commit 3e6c81e into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2012
  1. Passem l'uid que faltava

    Marcos de Vera Piquero authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  poweremail_template.py
2  poweremail_template.py
View
@@ -959,7 +959,7 @@ def generate_mail(self,
if template.use_filter and template.filter:
filtered_record_ids=[]
for record in self.pool.get(template.object_name.model).browse(cursor, user, record_ids, context=context):
- if safe_eval(template.filter, {'o':record, 'self':self, 'cr':cursor, 'context':context}):
+ if safe_eval(template.filter, {'o':record, 'self':self, 'cr':cursor, 'context':context, 'uid': user}):
filtered_record_ids.append(record.id)
record_ids=filtered_record_ids
Something went wrong with that request. Please try again.