Skip to content

Commit

Permalink
FIX cron end of contract
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Nov 25, 2024
1 parent b5bc0fa commit 054d60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recurring_contract/data/contract_expire_cron.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<field name="model_id" ref="model_recurring_contract" />
<field name="code">
now = datetime.datetime.now()
expired = self.search([
expired = model.search([
('end_date', '&lt;=', now),
('state', 'not in', ['cancelled', 'terminated'])
])
Expand Down

0 comments on commit 054d60e

Please sign in to comment.