title: How to create new attachments in Odoo? How do they work?
body: <p>I want to create an attachment from python code.</p>
  
  <p>So, what I have tried:</p>
  
  <pre><code>self.env['ir.attachment'].create({
      'store_fname' : ??,
      'checksum' : ??
  })
  </code></pre>
  
  <p>What values should be passed for the column 'store_fname' and 'checksum' in ir_attachment table?</p>