- Split compute function in res.partner into 4 functions as they no more share the same dependencies - removed dead constraint from 'membership.membership_line' model. That constraint checks if the invoice's date is greater than membership line's date but the membership line is created before the draft invoice is created (and that too without date set), hence it can't be raised.(Though, it can be raised if we check it on 'state' field).
13 lines
456 B
XML
13 lines
456 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
<record id="ir_cron_update_membership" model="ir.cron">
|
|
<field name="name">Check membership payment</field>
|
|
<field name="interval_type">days</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="function">_cron_update_membership</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|