[15.0][ADD] sale_cancel_restrict
When you try to cancel a sales order, if there is some delivery done or an invoice not cancelled will prevent the sales order from being cancelled.
@ForgeFlow @AaronHForgeFlow
This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖
What if you conformed a delivery by mistake, made a return to correct it, having total delivered quantity zero. Shouldn't this order be able to be cancelled?
@DavidJForgeFlow There is already this in v10 and migration PR for the invoice part : https://github.com/OCA/sale-workflow/pull/2598
@DavidJForgeFlow Have you looked at https://github.com/OCA/sale-workflow/pull/2598 ?