why i can't call function "_abc". Because "123" don't show in console line of Pycharm
This's my .py file
class scheduler_demo(models.Model):
print("abc")
_name = 'scheduler.demo'
name = fields.Char(required=False)
def _abc(self):
print("123")
This's my XML file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="0">
<record id="ir_cron_scheduler_demo_action" model="ir.cron">
<field name="name">Demo scheduler</field>
<!--<field name="active" eval="True" />-->
<!--<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="True" name="doall"/>
<field name="nextcall" eval="(datetime.utcnow() + timedelta(days=0)).strftime('%Y-%m-%d 14:08:00')" />
<field name="doal">1</field>
<!--<field name="model_id" ref="model_scheduler_demo"/>-->
<field eval="'scheduler.demo'" name="model"/>
<field eval="'_abc'" name="function"/>
<field eval="'()'" name="args"/>
</record>
</data>
</odoo>