Delete Sales Order - Check Related Invoice
by Viindoo
$ 5.55
$ 5.55
v
17.0
0
Deleting a sale order that still has an invoice behind it is refused - so the invoice never points at a document that no longer exists.
Delete Sales Order - Check Related Invoice (technical name viin_sales_unlink) is an Odoo 17.0 app for Odoo Community and Odoo Enterprise and Viindoo Cloud, built for sales administrator, accountant, auditor, administrator.
The facts of Delete Sales Order - Check Related Invoice, version 0.1.1, in one place. Published by Viindoo.
One rule, at the moment it matters.
The order stays, and the invoice keeps its source document.
Nothing else changes about quotations, orders or invoicing.
Deleting an order with a related invoice is refused
Applies to cancelled orders, where Odoo would allow it
The message explains what is holding the order
Order lines are protected the same way
No configuration - the rule is always on
Cancelling, crediting and archiving are unaffected
Everything below was taken on a database seeded with real business data, on this series - not a mock-up and not a screenshot from an older version.
An invoiced order
Read this before you buy. Everything below is something the app deliberately leaves to another app or to you.
Removing accounting documents is a different, deliberate decision.
Cancelling stays available; only deletion is guarded.
Cleaning old data is your process; this keeps it from breaking references.
Transfers are guarded by the inventory companion module.
Apps from the same stack, built to fit this one:
Is stopped before breaking a link, not afterwards.
Keeps invoices that point at orders that exist.
Follows revenue back to the order that produced it.
Stops a cleanup script from destroying references.
Deleting a sale order that still has an invoice behind it is refused - so the invoice never points at a document that no longer exists.
It does not delete invoices. Removing accounting documents is a different, deliberate decision. It does not block cancellation. Cancelling stays available; only deletion is guarded. It is not an archiving policy. Cleaning old data is your process; this keeps it from breaking references. Other references have their own rules. Transfers are guarded by the inventory companion module.
Sales administrator: Is stopped before breaking a link, not afterwards. Accountant: Keeps invoices that point at orders that exist. Auditor: Follows revenue back to the order that produced it. Administrator: Stops a cleanup script from destroying references.
Odoo 17.0 - Odoo Community, Odoo Enterprise, Viindoo Cloud. Upgrades to a newer Odoo series are a separate purchase for that series.
It installs on top of: sale. Odoo installs them with it.
One rule, at the moment it matters.
Order Deletion and Transfers (viin_sales_unlink_stock): The same guard for stock transfers. Legal Invoice Number (to_legal_invoice_number): Keeping invoice identity correct. Sales figures (viin_sale): The analysis that depends on those links.
Yes - the Live Preview button at the top of this page opens the module's own screen on a working database.
Write to apps.support@viindoo.com with your Odoo version and the technical name viin_sales_unlink; pre-sales questions go to sales@viindoo.com.
An invoiced order does not get deleted
For questions, implementation support, or consulting services, contact Viindoo.
When contacting us, please include:
For faster troubleshooting, please provide:
Upgrades to a newer Odoo series are a separate purchase for that series.
Instruction video: Delete Sales Order - Check Related Invoice
Enable to active the Disallow to unlink SO/SO line having Invoices feature in the setting of the Sales module.
After activating the feature, the user will not be allowed to delete the sales orders or sales order lines if they have referenced invoices.
This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file).
You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one).
It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software.
The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
We use cookies to provide you a better user experience on this website. Cookie Policy