Sales troubleshooting
This page lists the real reasons an action in Sales (quotation, sales order, delivery order, invoice, return) is blocked or a button does not show. Buttons on detail pages come from the same policy as the server, so a hidden button means the action would be refused.
Wrong document status
| Symptom | Cause | Fix |
|---|---|---|
| Quotation has no convert-to-order button | Not in Accepted status, or already converted once (sales.quotation_single_conversion, on by default) | Mark it accepted; if converted, open the document chain to find the order |
| Cannot cancel a sales order | Delivered (partly or fully), invoiced, closed or cancelled; or a live invoice exists | Void the invoice first (needs invoices:approve, invoice unpaid); handle delivered goods with a customer return |
| Cannot create a delivery order | Order not confirmed, or only service lines (services never go on a delivery order) | Confirm the order; invoice service lines directly |
Related error codes: Not allowed in current state, Invalid state transition.
Missing permission
| Action | Permission |
|---|---|
| View / create quotations | quotations:read / quotations:write |
| View / create, cancel sales orders | sales_orders:read / sales_orders:write |
| Approve sales orders | sales_orders:approve |
| Delivery orders | delivery_orders:read, delivery_orders:write |
| Invoice from a sales order | invoices:write |
| Price lists | sales_price_lists:read / sales_price_lists:write |
Ask an administrator to grant it in Settings → Roles. If lists are empty despite the permission, your data scope may be “own”. Error codes: Permission denied, Scope denied.
A toggle is off (or on)
| Toggle | Default | Effect |
|---|---|---|
sales.delivery_order_required | Off | When on, goods must be delivered before invoicing |
sales.invoice_requires_delivery_docs | Off | When on, blocks invoicing while delivery documents are missing |
sales.partial_delivery | On | When off, partial deliveries are not allowed |
sales.price_lists | On | When off, the Price Lists menu is hidden |
sales.customer_return_rma | On | Customer returns module |
sales.require_quotation | Off | When on, an order needs a quotation first |
Error code: Feature disabled.
Over the remaining quantity
Delivery orders, invoices and returns only take the remaining quantity of their source. Goods are never invoiced beyond what was delivered; returns cannot exceed what was delivered/invoiced and not yet returned. Error code: Amount exceeds remaining. Not enough stock when confirming a delivery: Insufficient stock.
Prices and price lists
- Order price differs from the price list:
sales.price_lock_on_confirm(on by default) locks prices at confirmation, or the line was edited by hand. sales.enforce_price_list(off by default) forces prices from the price list when on.- Selling below cost follows
sales.below_cost_policy(defaultwarn;blockrefuses).
Pending approval
Sales orders need approval when sales.require_so_approval is on (the default); an order awaiting approval cannot be delivered or invoiced yet. Dispatch and returns have approval steps too (sales.dispatch_approval, sales.require_return_approval, on by default). The creator may not be allowed to approve their own document. Error code: Approval required.