Skip to Content
Menu
This question has been flagged
1 Reply
1190 Views

Hi,

Community Version 14 (E-commerce)

Is that possible to cancel the confirmed sales order if the payment has not been paid with certain period?  

Thanks!

Avatar
Discard
Best Answer

Hello ODBWilson,

Yes possible. You can do this by creating Cron job.

Avatar
Discard
Author

Thank you! Can you elaborate more? Like which tables to check, and is it safe to delete the confirmed order in the DB?

Hello ODBWilson,

You have create cron job. In Cron job you have to search sale orders and need to call cancel button method to cancel sale order.

But may be this will not cancel Delivery orders or invoices. If you want to cancel those you have call cancel method for delivery order and invoice, If odoo allows to cancel.

Author

Oh I see. I thought I have to write up a script to cancel the order in the DB. I will look at how to do the cronjob in Odoo.

Thanks!