Pep8 and xml indentation

This commit is contained in:
Valentin Chemiere 2015-03-12 18:41:40 +01:00
parent 9cfa8face8
commit f5d264b36c
3 changed files with 35 additions and 37 deletions

View File

@ -7,14 +7,12 @@ from base64 import b64encode
class AbstractTask(object):
def create_file(self, filename, data):
ir_attachment_id = self.env['ir.attachment'].create(
{
ir_attachment_id = self.env['ir.attachment'].create({
'name': filename,
'datas': b64encode(data),
'datas_fname': filename,
'task_id': self.task.id,
'location_id': self.task.location_id.id,
'external_hash': self.ext_hash
}
)
})
return ir_attachment_id