diff --git a/muk_utils/tests/test_attachment_migration.py b/muk_utils/tests/test_attachment_migration.py index 3410ccd..abe50ed 100644 --- a/muk_utils/tests/test_attachment_migration.py +++ b/muk_utils/tests/test_attachment_migration.py @@ -32,7 +32,7 @@ class MigrationTestCase(common.TransactionCase): def setUp(self): super(MigrationTestCase, self).setUp() self.model = self.env['ir.attachment'] - self.params = env['ir.config_parameter'].sudo() + self.params = self.env['ir.config_parameter'].sudo() self.location = self.params.get_param('ir_attachment.location') if self.location == 'file': self.params.set_param('ir_attachment.location', 'db')