Fix for new Transaction
This commit is contained in:
1 parent
7218c97757
commit
e147a1cc2e
1 file changed
+1
-3
@@ -53,9 +53,7 @@ class Attachment(ModelSQL, ModelView):
|
||||
table.drop_column('res_id')
|
||||
|
||||
def default_resource(self):
|
||||
if context is None:
|
||||
context = {}
|
||||
return context.get('resource')
|
||||
return Transaction().context.get('resource')
|
||||
|
||||
def default_collision(self):
|
||||
return 0
|
||||
|
||||
Reference in new issue
Block a user