Odoo Help


Write Html inside a form from database

on 5/14/14, 5:13 PM 1,022 views

Dear All

Can I retreive data from database and display it in form xml in openerp 7

I can write html inside the form view but static 

Is there is any solutions to retreive data from database to make that

This is what I found (write html or javascript) can html be from database

<field name="arch" type="xml">
               <form string="Product" version="7.0">
                                    alert("Hi I'm JavaScript :P "); 
                       <field name="image_medium" widget="image" class="oe_avatar oe_left"/>
                       <div class="oe_title">
                       <div class="oe_edit_only">
                                <label for="name" string="Product Name"/>
                                  <field name="name"/>

Best Regards


Nirav Jani
On 1/2/15, 8:53 AM


You can you widget in your field.

like :  <field name="name" widget="html"/>

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 5/14/14, 5:13 PM
Seen: 1022 times
Last updated: 3/16/15, 8:10 AM