Fix for new Transaction

This commit is contained in:
Cédric Krier committed 2010-08-27 12:05:37 +02:00
1 parent 7218c97757
commit e147a1cc2e
1 file changed
+1 -3
+1 -3
View File
@@ -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