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.
Friends, i have developped a function that works after clicking on a button.
But now i want my function working automatically without clicking on any button.
Does anyone have any suggestion please.
Thanks a lot in advance.
You'll need to create an automated action that calls a Python function every time the scheduler runs. An automated action example:
The Python code:
<record id="ir_cron_scheduler_demo_action" model="ir.cron"> <field name="name">Demo action</field> <field name="user_id" ref="base.user_root"/> <field name="interval_number">2</field> <field name="interval_type">minutes</field> <field name="numbercall">-1</field> <field eval="False" name="doall"/> <field eval="'Your.mode'" name="model"/> <field eval="'process_demo_scheduler_queue'" name="function"/> </record>
#This function is called when the scheduler goes off
def process_demo_scheduler_queue(self, cr, uid, context=None): #Your custom code here.
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: 12/15/15, 6:48 AM|
|Seen: 723 times|
|Last updated: 1/18/16, 3:23 PM|