<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2020 Camptocamp SA
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo noupdate="1">
    <record model="ir.cron" id="cron_reset_pricelist_cache">
        <field name='name'>Reset pricelist cache</field>
        <field name='interval_number'>1</field>
        <field name='interval_type'>days</field>
        <field name="active" eval="False" />
        <field name="model_id" ref="pricelist_cache.model_product_pricelist_cache" />
        <field name="state">code</field>
        <field name="code">model.cron_reset_pricelist_cache()</field>
        <field
            name="nextcall"
            eval="(DateTime.now().replace(hour=1, minute=0) + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')"
        />
    </record>
</odoo>
