Rename builtin id variable

This commit is contained in:
Guewen Baconnier
2016-12-13 12:21:37 +01:00
parent d138a1fd3d
commit 997f92aaab
+2 -1
View File
@@ -253,7 +253,8 @@ class IrAttachment(models.Model):
attachment = attachment_model_env.browse(attachment_id) attachment = attachment_model_env.browse(attachment_id)
attachment._move_attachment_to_s3() attachment._move_attachment_to_s3()
except psycopg2.OperationalError: except psycopg2.OperationalError:
_logger.error('Could not migrate attachment %s to S3', id) _logger.error('Could not migrate attachment %s to S3',
attachment_id)
@contextmanager @contextmanager
def do_in_new_env(self, new_cr=False): def do_in_new_env(self, new_cr=False):