Skip to content

Sales Invoice & Quotation overrides

Document extensions to ERPNext Sales Invoice and Quotation DocTypes.

  • leekimerp/leekimerp/override/sales_invoice.py
  • leekimerp/leekimerp/override/quotation.py
MethodBehavior
validateCalls super().validate() only — no extra business rules in subclass
FunctionRole
make_quotation_from_invoice(source_name, target_doc=None)Maps Sales InvoiceQuotation (quotation_to = Customer, party_name from customer)
MethodBehavior
(class body)pass — inherits standard Quotation behavior
FunctionRole
make_invoice_from_quotation(source_name, target_doc=None)Maps QuotationSales Invoice; throws if quotation_to is not Customer; sets customer from party_name; runs set_missing_values on target
  • Desk: Buttons or scripts that call make_quotation_from_invoice / make_invoice_from_quotation via client or server actions (confirm in public/js/ and Desk customization).
  • frappe.model.mapper.get_mapped_doc, ERPNext SalesInvoice / Quotation controllers