title: Create new record odoo
body: <p>I want to return only all rubrique_name(nom_rubrique) from rubrique_ids in function create but  it return only the last one and want return all the criter_name(nom_critere)</p>
  
  <pre><code>def evaluer(self):
      self.ensure_one()
      rub = self.risque.rubrique_ids
      for rec in rub:
         rubriq = rec.nom_rubrique
         critere_ids = rec.critere_ids
             for obj1 in critere_ids:
                 crit = obj1.nom_critere
                 coeff = obj1.coefficient
             rubrique_etude = rubriq
      test = self.env['risque.evaluation'].create(
          {
              'risque_etude': self.risque.nom_risque, 
              'etude': [(0, 0, { 
                  'rubrique_etude': rubrique_etude, 
                  'critere_etude': [(0, 0, {
                       'critere_name': crit, 
                       'coefficient': coeff, 
                       'critere_evaluation': '', 
                       'note': '' })], 
                  })]
          }
      )
  
      return {
          'name': 'Evaluation',
          'view_type': 'form',
          'view_mode': 'tree,form',
          #'views': [{'view_mode': 'form', 'view_id': 'rub_id'}],
          'res_model': 'risque.evaluation',
          'type': 'ir.actions.act_window',
          'res_id': test.id,
          #'target': 'new',
          'flags': {'initial_mode': 'edit'},
          'context': self.env.context,
      }
  </code></pre>