mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-26 02:18:40 -06:00
Pep8 and xml indentation
This commit is contained in:
parent
9cfa8face8
commit
f5d264b36c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user