title: Odoo automatic method call in model
body: <p>I have this model:</p>
  <pre><code>class Data(models.Model):
      _name = 'aibot.data'
      _description = 'aibot.data'
      symbol = fields.Char(string='Symbol', required=False)
      ref = fields.Float(string='Amount', required=False)
      amount = fields.Float(string='Amount', required=False)
  
      user_id = fields.Many2one('res.users', string='User', required=True, ondelete='cascade',
                                default=lambda self: self.env.uid, help=&quot;User&quot;)
  </code></pre>
  <p>I have this python dict:</p>
  <pre><code>    m = [
          {'symbol': '2', 'ref': 7.8,  'amount': 87},
          {'symbol': '2', 'ref': 7.8,  'amount': 25},
          {'symbol': '2', 'ref': 7.8,  'amount': 31},
          {'symbol': '2', 'ref': 7.8,  'amount': 26},
          {'symbol': '2', 'ref': 7.8,  'amount': 90},
          {'symbol': '2', 'ref': 7.8,  'amount': -18}
      ]
  </code></pre>
  <p>And this method:</p>
  <p>def rep(self):</p>
  <pre><code> parse = 1
   self.search([('create_uid', '=', 'user.id')]).unlink()
  
   m = [
       {'symbol': '2', 'ref': 7.8,  'amount': 87},
       {'symbol': '2', 'ref': 7.8,  'amount': 25},
       {'symbol': '2', 'ref': 7.8,  'amount': 31},
       {'symbol': '2', 'ref': 7.8,  'amount': 26},
       {'symbol': '2', 'ref': 7.8,  'amount': 90},
       {'symbol': '2', 'ref': 7.8,  'amount': -18}
   ]
  
  for i in m:
      print('hola', '')
      self.env['aibot.data'].create(i)
  </code></pre>
  <p>All works fine. But, I need automatic execution  of this method on Data class call from tree view, report..., to fill out the table before anything else.</p>