Skip to Content
Menu
This question has been flagged
1 Reply
2232 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

Avatar
Discard
Best Answer

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'

Avatar
Discard