Odoo Help

Welcome!

This community 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.

0

Write Html inside a form from database

xml
By
Ahmed
on 5/14/14, 5:13 PM 678 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">
                      <sheet>
                        <script>
                                    alert("Hi I'm JavaScript :P "); 
                        </script>
                       <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"/>
                       </div>
                       <h1>
                                  <field name="name"/>
                       </h1>
                       ............
                       ............ 

Best Regards

Ahmed

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

Hello,

You can you widget in your field.

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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