Quotations and orders
Quotation validity, lost quotations, Sales Order statuses, drop shipping, delivery schedules and the orders' Create menu.
Quotation
Quotation To is Customer by default. It may also be Lead or Prospect, or a RecType another app adds, such as the CRM app's CRM Deal. Party names the record.
| Field | Use |
|---|---|
| Valid Till | After this date a daily job marks an unordered quotation Expired |
| Order Type | Sales, Maintenance or Shopping Cart |
| Opportunity | The Opportunity it answers. Submit and cancel update the Opportunity's status |
| Lost Reasons | Quotation Lost Reasons, set when it is declared lost |
Statuses: Draft, Open, Replied, Partially Ordered, Ordered, Lost, Cancelled, Expired.
Create > Sales Order works on a submitted quotation that is not Lost or Ordered. An Expired quotation makes an order only with Selling Settings' Allow Sales Order Creation For Expired Quotation on.
Declare a quotation lost with erp.quotation.declare_lost. It takes lost_reasons (Quotation Lost Reason names), competitors and detailed_reason, and is refused once a Sales Order ordered the quotation. The Lost Quotations report groups them by lost reason or competitor.
Sales Order
| Status | Meaning |
|---|---|
| To Deliver and Bill | Submitted, nothing finished |
| To Deliver, To Bill | One side finished |
| Completed | Fully delivered and billed |
| On Hold, Closed | Set by hand. Create menu entries are hidden |
| To Pay | A Payment Request is waiting |
Close, Hold, Resume and Re-open have no desk button yet. Call erp.sales_order.update_status with status Closed, On Hold, or Draft to go back:
curl -X POST https://erp.acme.com/api/rpc/erp.sales_order.update_status \
-H "Authorization: token $KEY:$SECRET" -H 'Content-Type: application/json' \
-d '{"name": "SAL-ORD-2026-00012", "status": "On Hold"}'An order with nothing left to deliver or bill cannot be Closed.
The order's Create menu
| Entry | Makes |
|---|---|
| Delivery Note | The rows left to deliver |
| Sales Invoice | The amount left to bill |
| Material Request | Each row, or each Packed Item of a bundle row, at the quantity not yet requested or delivered, priced from Buying Settings' price list |
| Payment Request | A request for the order's amount |
| Maintenance Schedule, Maintenance Visit | For service on what was sold |
Drop shipping
Tick Delivered by Supplier on a row and name its Supplier. A row with the box ticked and no supplier is refused. erp.sales_order.make_purchase_order then makes one draft Purchase Order per supplier for those rows. The Purchase Order takes the customer, the shipping address and the customer contact. Its submit writes the rows' ordered quantity back on the Sales Order.
Delivery schedules
A row may be delivered on several dates. erp.sales_order.create_delivery_schedule writes a draft order row's schedule as a list of delivery_date and qty, and sets the row's Delivery Date to the first one. get_delivery_schedule reads it back.
Example: row W for 100 units, schedules 40 on 2026-12-01 and 60 on 2026-12-15. The row's Delivery Date becomes 2026-12-01. Submitting the order keeps the schedules; cancelling it deletes them.
Reserve stock
Tick Reserve Stock on the order to hold its rows' stock on submit. See Stock reservation.
Credit limit
Submit checks the customer's credit limit. See Customers.