yaml: use selected user and not admin for onchange

Fixes: #1885
This commit is contained in:
Leonardo Pistone 2014-08-20 18:00:53 +02:00
parent d0a0b7d91d
commit 0edfc3fbc9
1 changed files with 1 additions and 1 deletions

View File

@ -447,7 +447,7 @@ class YamlInterpreter(object):
# Evaluation args
args = map(lambda x: eval(x, ctx), match.group(2).split(','))
result = getattr(model, match.group(1))(self.cr, SUPERUSER_ID, [], *args)
result = getattr(model, match.group(1))(self.cr, self.uid, [], *args)
for key, val in (result or {}).get('value', {}).items():
if key in fg:
record_dict[key] = process_val(key, val)