Pass context to the create in copy function
This commit is contained in:
1 parent
557d39c004
commit
be990f0145
1 file changed
+1
-1
+1
-1
@@ -2819,7 +2819,7 @@ class ORM(object):
|
||||
del data['id']
|
||||
for i in self._inherits:
|
||||
del data[self._inherits[i]]
|
||||
return self.create(cursor, user, data)
|
||||
return self.create(cursor, user, data, context=context)
|
||||
|
||||
def search_read(self, cursor, user, args, offset=0, limit=None, order=None,
|
||||
context=None, fields_names=None, load='_classic_read'):
|
||||
|
||||
Reference in new issue
Block a user