Here's my model.py:
def ExampleForm(models.Model): _name = 'example.form' name = fields.Char('Name') picture = fields.Binary('Picture', attachment=True)
And here's my data.xml
<record model="example.form" id="example_form"> <field name="name">Hello World</field> <field name="picture"> <!-- Assume that my image is located in /example/data/helloworld.png --> </field> </record>
What options do I use for the picture/binary field?
I figured it out, it was "my_module/static/img/my_logo.png"