Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Try, In action(
ir.actions.act_window) of your object (XML file)
<field name="auto_refresh" eval="10"/>
Through this code, your view will be automatically refresh in 10 seconds
<record id="board_your_object_auto_refresh_form" model="ir.ui.view"> <field name="name">your.object.form</field> <field name="model">board.board</field> <field name="type">form</field> <field name="arch" type="xml"> <form string="Your Object"> <hpaned> <child1> <action colspan="4" height="100" name="%(act_your_object_auto_refresh)d" string="Your Object String"/> </child1> </hpaned> </form> </field> </record>
act_your_object_auto_refresh is your action id and no need to put auto_refresh in action.
<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>
Hope this work for you.
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 platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/3/13, 3:29 AM|
|Seen: 7706 times|
|Last updated: 12/28/15, 2:22 AM|