Hi there i try to make cron function to change statues of student but it gives me an error that my function take 5 argument and only 4 given ! i don't know why
here is my function :
def get_age_comp(self, cr, uid,ids ,context={}): |
here is my xml to call it :
<record id="ir_cron_actions" model="ir.cron"> <field name="name">compare</field> <field eval="True" name="active"/> <field name="user_id" ref="base.user_root"/> <field name="interval_number">1</field> <field name="interval_type">minutes</field> <field name="numbercall">-1</field> <field eval="'fci.student'" name="model"/> <field eval="'get_age_comp'" name="function"/> <field eval="'()'" name="args"/> </record> |
Thanks