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

Why name coming like 'Botique Information / bot.info,1 in form view header

By
Odoo
on 7/23/14, 1:09 AM 455 views

 When I create a entry into form header will come like

'Botique Information / bot.info,1

 
<record id="booking_form_view" model="ir.ui.view">
    <field name="name">booking.form.view</field>
    <field name="model">booking.info</field>
    <field name="arch" type="xml">
    <form string="Booking form" version="7.0" create="false" edit="false">
<sheet>
    
        <group><field name="id" invisible="1"/>
        <field name="product_id" widget="selection"/></group>
        
<div class="oe_button_box oe_right">
    <button name="button_dummy" string="Check Availability" type="object" class="oe_web_example_stop"/>                                 
</div>
</sheet>
 
        </form>
        
        </field>
</record>

 

<record id="booking_type_action" model="ir.actions.act_window">
         <field name="name">Booking Information</field>
        <field name="res_model">booking.info</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="help" type="html">
        <p class="oe_view_nocontent_create">Place your order..................</p>
        </field>
     </record>

Why? need a help......... How to change

1

Prakash

--Prakash--
3173
| 5 4 7
Bikaner, India
--Prakash--

OpenERP Devloper at SunARC Technology

Prakash
On 7/23/14, 1:30 AM

In the Form view default its shows table "name" column value or "rec_name" value. If both options are not available in your table then its shows tablename, id

so in table create in one column with "name" field or use rec_name= 'column_name' in python file. After that in header its shows column value.

In python file add,

rec_name = 'product_id'

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: 7/23/14, 1:09 AM
Seen: 455 times
Last updated: 10/15/15, 11:00 AM