Created
September 14, 2015 20:43
-
-
Save rorymckinley/39d39627104f355d6d44 to your computer and use it in GitHub Desktop.
Prototype Odoo Cron
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<openerp> | |
<data> | |
<record forcecreate="True" id="ir_cron_write_to_tmp" model="ir.cron"> | |
<field name="name">Alpha Test Cron</field> | |
<field eval="True" name="active" /> | |
<field name="user_id" ref="base.user_root" /> | |
<field name="interval_number">1</field> | |
<field name="interval_type">hours</field> | |
<field name="numbercall">-1</field> | |
<field eval="False" name="doall" /> | |
<field eval="'lfah.alpha'" name="model" /> | |
<field eval="'read_from_tmp'" name="function" /> | |
<field eval="'()'" name="args" /> | |
</record> | |
</data> | |
</openerp> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Error:
2015-09-14 20:38:50,515 5282 ERROR demo openerp.addons.base.ir.ir_cron: Call of self.pool.get('lfah.alpha').read_from_tmp(cr, uid, *()) failed in Job 10
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_cron.py", line 121, in _callback
getattr(model, method_name)(cr, uid, *args)
TypeError: read_from_tmp() takes exactly 1 argument (3 given)