Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4326 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,

You can you widget in your field.

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 25
515
0
พ.ย. 24
851
0
มิ.ย. 24
877
1
มิ.ย. 24
1363
0
ต.ค. 23
1546