Error saving image odoo 8
<p>I have created my own class named <code>notary.notary</code>. It contains field type 'Binary' named <code>image</code>. </p>

<p>When I save form the image doesn't display.</p>

<p>I don't get any error in traceback.</p>

<p>This is my code:</p>

<pre><code>class notary_notary(models.Model):

_name = 'notary.notary'
image = fields.Binary("Image")
</code></pre>

<p>And my XML:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;openerp&gt;
    &lt;data&gt;

        &lt;menuitem id="menu_notary" name="Gestion des notaires" /&gt;

        &lt;record id="view_notary_form" model="ir.ui.view"&gt;
            &lt;field name="name"&gt;notary.notary.form&lt;/field&gt;
            &lt;field name="model"&gt;notary.notary&lt;/field&gt;
            &lt;field name="arch" type="xml"&gt;
                &lt;form string="Notaires"&gt;
                &lt;sheet&gt;
                    &lt;field name="image" widget='image' class="oe_left oe_avatar" options='{"preview_image": "image_medium", "size": [90, 90]}'/&gt;*
</code></pre>