Thursday, August 21, 2014

OPENERP Technics - How to auto reload/refresh openerp GTK views each period of time?

OPENERP Technics - How to auto reload/refresh openerp GTK views each period of time?

By using attribute "auto_refresh" in definitions of model  "ir.actions.act_window"
The following example will used to reload/refresh the view related with the action_window each 10 seconds:
<record id="your_object_auto_refresh_dashboard" model="ir.actions.act_window">
        <field name="name">Your Object Dashboard</field>
        <field name="res_model">board.board</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="auto_refresh">10</field>
        <field name="usage">menu</field>
        <field name="view_id" ref="board_your_object_auto_refresh_form"/>
    </record>

No comments:

Post a Comment