title: how to open a new form when i click in a button?
body: <p>i create a button in my view, and i don't know how to open a form with ( textbox and 2 button cancel and ok ) when i click on it, because i need to put in the textbox the number of time to call copy function to copy the object </p>
  
  <pre><code>    `&lt;record id="immo_personne_form" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;immo.personne.form&lt;/field&gt;
          &lt;field name="model"&gt;immo.personne&lt;/field&gt;
  
          &lt;field name="arch" type="xml"&gt;
              &lt;form string="personne" &gt;
  
                        &lt;button string="Copy" type="object" name="copy_data"/&gt;
  
                  &lt;field name="Pid_ftravail" /&gt;
                  &lt;field name="id_localisation" /&gt;
                  &lt;newline/&gt;
                  &lt;field name="matricule" /&gt;
                  &lt;newline/&gt;
                  &lt;field name="name" /&gt;
                  &lt;field name="prenom" /&gt;
                  &lt;field name="fonction" /&gt;
  
  
              &lt;/form&gt;
          &lt;/field&gt;
      &lt;/record&gt;`
              &lt;record id="immo_personne_tree" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;immo.personne.tree&lt;/field&gt;
          &lt;field name="model"&gt;immo.personne&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;tree string="personnes"&gt;
              &lt;field name="Pid_ftravail" /&gt;
              &lt;field name="id_localisation" /&gt;
              &lt;field name="matricule" /&gt;
                  &lt;field name="name" /&gt;
                  &lt;field name="prenom" /&gt;
                  &lt;field name="fonction" /&gt;
  
              &lt;/tree&gt;
          &lt;/field&gt;
      &lt;/record&gt;  
  
  
          &lt;record id="immo_personne_form_act" model="ir.actions.act_window"&gt;
  
  
          &lt;field name="name"&gt;Personne&lt;/field&gt;
          &lt;field name="res_model"&gt;immo.personne&lt;/field&gt;
          &lt;field name="view_mode"&gt;tree,form&lt;/field&gt;
          &lt;field name="type"&gt;ir.actions.act_window&lt;/field&gt;
          &lt;field name="view_type"&gt;form&lt;/field&gt;
          &lt;field name="view_id" ref="immo_personne_tree"/&gt; 
          &lt;field name="help" type="html"&gt;
    &lt;/field&gt;
      &lt;/record&gt;
  </code></pre>
  
  <p>and this is my class and my function copy_data</p>
  
  <pre><code>class immo_personne(osv.osv):
  _name = "immo.personne"
  _description = "personne" 
  
  def copy_data(self, cr, uid, id, default=None, context=None):
     if default is None:
       default = {}
     res = 1
     idea = self.browse(cr, uid, id)
     res += int(idea.matricule)
     default['matricule'] = res
     return super(immo_personne, self).copy_data(
        cr, uid, id, default, context)    
  
  _columns = {
              'matricule':fields.integer('Matricule',size=255,required=True),
              'name':fields.char('Nom',size=255),
              'prenom':fields.char('Prenom',size=255),
              'fonction':fields.many2one('immo.fonction', 'Fonction'),
              'Pid_ftravail' : fields.many2one('immo.ftravail' ,'Formation de travail'),
  
              'id_localisation':fields.many2one('immo.localisation','Localisation',domain="   [('id_ftravail','=',Pid_ftravail)]"),
              }
  
  immo_personne() 
  </code></pre>
  
  <p>i want just to know how to open the new form with the textbox and buttons, anyone have any idea how to do it ??</p>