name: selling description: Work with customers, leads, quotes, sales orders, and customer invoices. Use when the user mentions selling, sales, CRM, pipeline, quotes/offertes, orders, invoicing customers, or chasing payments. triggers: [sell, selling, sales, verkoop, quote, offerte, order, invoice, factuur, customer, klant, deal, pipeline, lead, crm] odoo_modules_any: [sale_management, crm, account]
Selling
End-to-end revenue flow: lead → quote → sales order → invoice → payment.
Key models
crm.lead— leads and opportunities (same model,typefield distinguishes)res.partner— customer (company or individual,is_company)sale.order— quotation (draft/sent) then sales order (sale/done)sale.order.line— line itemsaccount.move— customer invoice (move_type = out_invoice)account.payment— payment received
Typical workflows
- Qualify lead → update
stage_id, setexpected_revenue+probability, assignuser_id - Quote from lead → create
sale.orderwithopportunity_idlink - Confirm order →
action_confirm(state: draft → sale), stock moves created - Invoice →
_create_invoices()on the SO, or viasale.advance.payment.invwizard - Collect → match
account.paymentto invoice via reconciliation
Gotchas
- Once
sale.orderis confirmed, lines become effectively locked — changes need an unlock or amendment. - Taxes resolve via
fiscal.position(country/VAT-based), not the raw product tax. crm.leadandcrm.opportunityshare the model; filter ontypewhen searching.- Invoice
state = postedis immutable — use credit note, don't edit.