title: show product images in wizard
body: <p>How to show product images in wizard? I am trying to show all images of product in a wizard but stucks at an error.</p>
  
  <p>here is my code:-</p>
  
  <p>py code:-</p>
  
  <pre><code>from openerp import api, fields, models, _
  from openerp import SUPERUSER_ID
  from openerp.exceptions import UserError
  import openerp.addons.decimal_precision as dp
  
  class image_wizard(models.TransientModel):
       _name = "image.wizard"
  
        image_medium = fields.Many2many("Images")
  
  
  
  
  
         @api.multi
         def action_image_add(self):
            rec = self._context.get('active_ids', [])
            print "REC", rec, self.product_id.categ_id #product_uom
            if rec:
                line_values = {'image_medium': self.image_medium
                         }
                sale_order_line = self.env['product.template'].create(line_values)
  </code></pre>
  
  <p>xml code:-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;openerp&gt;
  &lt;data&gt;
      &lt;record id="view_image_wizard" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;Image wizard&lt;/field&gt;
          &lt;field name="model"&gt;image.wizard&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;form string="Sales Pack"&gt;
                  &lt;group colspan="4" col="4"&gt;
                      &lt;group colspan="4" col="4"&gt;
                          &lt;field name="image"/&gt;
  
                      &lt;/group&gt;
                  &lt;/group&gt;
                  &lt;footer&gt;
                      &lt;button name="action_image_add" string="Ok" type="object"
                              class="btn-primary"/&gt;
                      &lt;button string="Cancel" class="btn-default" special="cancel"/&gt;
                  &lt;/footer&gt;
              &lt;/form&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  
      &lt;record id="action_view_image_wizard" model="ir.actions.act_window"&gt;
          &lt;field name="name"&gt;Image wizard&lt;/field&gt;
          &lt;field name="type"&gt;ir.actions.act_window&lt;/field&gt;
          &lt;field name="res_model"&gt;image.wizard&lt;/field&gt;
          &lt;field name="view_type"&gt;form&lt;/field&gt;
          &lt;field name="view_mode"&gt;form&lt;/field&gt;
          &lt;field name="view_id" ref="view_image_wizard"/&gt;
          &lt;field name="target"&gt;new&lt;/field&gt;
      &lt;/record&gt;
  
  &lt;/data&gt;
  </code></pre>
  
  <p></p>
  
  <p>xml code:-</p>
  
  <pre><code>    &lt;record id="product_template_pack_form" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;product.productpack.form&lt;/field&gt;
          &lt;field name="model"&gt;product.template&lt;/field&gt;
          &lt;field name="inherit_id" ref="product.product_template_form_view"/&gt;
          &lt;field name="arch" type="xml"&gt;
  
              &lt;xpath expr="//field[@name='image_medium']" position="before"&gt;
                  &lt;button name="%(action_view_image_wizard)d" string="see all images" type="action"/&gt;
              &lt;/xpath&gt; 
          &lt;/field&gt;
       &lt;/record&gt;
  </code></pre>
  
  <p>But it shows an error "External ID not found in the system: product_pack.action_view_image_wizard".</p>
  
  <p>Is there any error in my code? can anyone help on this issue?</p>