Skip to content

Commit

Permalink
T0469 FIX bug in end date reached scheduled action
Browse files Browse the repository at this point in the history
  • Loading branch information
ecino committed Aug 31, 2023
1 parent 8e9af11 commit d18047f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recurring_contract/models/recurring_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def invoice_paid(self, invoice):
def end_date_reached(self):
now = fields.Datetime.now()
expired = self.search([
('end_date', '>=', now),
('end_date', '<', now),
('state', 'not in', ['cancelled', 'terminated'])
])
return expired.action_contract_terminate()
Expand Down

0 comments on commit d18047f

Please sign in to comment.