Open MercatoDocsSearch docsAPI reference

Framework

Injection Spots

A freight integration can display a tracking panel on an order without replacing the order page. Choose an injection spot for the kind of contribution you need and use the supplied document and organization context to load its data.

Order & Quote detail page

Spot IDKindDescription
sales.document.detail.order:detailsSectionInject sections into the order detail page
sales.document.detail.quote:detailsSectionInject sections into the quote detail page
sales.document.detail.order:tabsTabInject tabs into the order detail page
sales.document.detail.quote:tabsTabInject tabs into the quote detail page
detail:sales.order:stage-barSectionOrder extension region immediately below the document header
detail:sales.quote:stage-barSectionQuote extension region immediately below the document header
detail:sales.order:closureSectionOrder closure extension region below document details
detail:sales.quote:closureSectionQuote closure extension region below document details

The stage-bar and closure regions mount render widgets through InjectionSpot. Without matching widgets, they render no placeholder or container. They provide extension regions rather than a built-in stage workflow or closure dialog.

Widgets receive the current document as data and this context, exported as SalesDocumentExtensionContext from @open-mercato/core/modules/sales/components/documents/SalesDocumentExtensionSpot:

The widget's onDataChange callback updates the in-page record; it does not persist changes. Widget-owned writes must use guarded mutations and enforce authorization and tenant/organization scope on the server. These render hosts do not add save/delete lifecycle dispatch or change native document status behavior.

Order list

Spot IDKindDescription
data-table:sales.orders:columnsColumnAdditional columns in the orders table
data-table:sales.orders:row-actionsRow actionActions on individual order rows

Order form

Spot IDKindDescription
crud-form:sales.sales_order:fieldsFieldAdditional fields in the order detail form

Payments

Spot IDKindDescription
data-table:sales.payments:columnsColumnAdditional columns in the payments table

Payment methods

Spot IDKindDescription
crud-form:sales.payment_method:fieldsFieldAdditional fields in the payment method form
crud-form:sales.sales_payment_method:fieldsFieldAdditional fields in the sales payment method form

See also

Previous: Sales Module · Next: Search indexes for sales records