This question has been flagged
1 Reply
3659 Views

i have 2 list view, list_view _1 and list_view_2 (naming of my 2 list view) list_view_1 is the list of data of a cost and the use of list_view_2 is to copy all the data from the list_view_1. I got this codes for the button but when i clicked it, it does not show the data form the list_view_1. but when i check in the database the data is there but in openerp it does not display. how to fix that problem? do i need to use some method for that? any suggestion would be a big help.. thanks..

 <record model="ir.actions.act_window" id="biz1_construction_analytic_plan_action">
           <field name="name">Planned Cost</field>
           <field name="res_model">account.analytic.line.plan</field>
           <field name="view_type">form</field>
           <field name="auto_refresh" eval="10"/>    
      <!--    <field name="view_mode">tree</field>   -->  
        <field name="view_id" ref="biz1_construction_analytic_plan_tree"/>
        </record>
       

Avatar
Discard

Hi Ahnne, I read you question, but I am not getting it when you say *"use of list_view_2 is to copy all the data from the list_view_1"*, can you be little bit more clear about your question or can you paste some screen shots for better understanding. Regards Hiren Vora - Emipro Technologies

Author

hi, how can i upload my screen shots. i don't have 30 karma or this moment.. can i get your email add??

Best Answer

try using tag : options='{"reload_on_button": true}' in your view definition...
->example form stock_picking  : view_picking_form 

<field name="move_lines" context="{'address_in_id':partner_id,  
'form_view_ref':'view_move_picking_form', 

 'tree_view_ref':'view_move_picking_tree',  
'picking_type': 'internal'}" options='{"reload_on_button": true}'/>

Avatar
Discard
Author

thanks Mr. Bole