in .py file:
picture=fields.Binary(u'Picture')
in .xml file
<field name="picture" widget="image"/>
Now I want to upload a picture('~/1.png') onto "picutre" by python code;
I have tried: self.picuture='~/1.png', but failed; how should I do it correctly?