yaml: use selected user and not admin for defaults
This commit is contained in:
parent
0edfc3fbc9
commit
9b78f06e47
|
@ -393,7 +393,7 @@ class YamlInterpreter(object):
|
|||
fg = view_info['fields']
|
||||
# gather the default values on the object. (Can't use `fields´ as parameter instead of {} because we may
|
||||
# have references like `base.main_company´ in the yaml file and it's not compatible with the function)
|
||||
defaults = default and model._add_missing_default_values(self.cr, SUPERUSER_ID, {}, context=self.context) or {}
|
||||
defaults = default and model._add_missing_default_values(self.cr, self.uid, {}, context=self.context) or {}
|
||||
|
||||
# copy the default values in record_dict, only if they are in the view (because that's what the client does)
|
||||
# the other default values will be added later on by the create().
|
||||
|
|
Loading…
Reference in New Issue