ir_cron.xml
928 Bytes
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2016-Today: La Louve (<http://www.lalouve.net/>)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo noupdate="1">
<record model="ir.cron" id="cron_update_partner_state">
<field name="name">Partner : Update Working State</field>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False"/>
<field name="model" eval="'res.partner'"/>
<field name="function" eval="'update_working_state'"/>
<field name="args" eval="'()'"/>
<field name="active" eval="False"/>
<field name="nextcall" eval="datetime.today().replace(hour=23, minute=0, second=0).strftime('%Y-%m-%d %H:%M:%S')" />
</record>
</odoo>