2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-07 06:00:57 +00:00

[UI] Sales Order tweak (#9935)

* Allow report generation from sales order allocation view

* Fix model target
This commit is contained in:
Oliver
2025-07-02 23:18:47 +10:00
committed by GitHub
parent 3f14ae3f7d
commit 8b74a40ad5
2 changed files with 4 additions and 1 deletions

View File

@ -320,6 +320,8 @@ export default function SalesOrderAllocationTable({
tableActions: isSubTable ? undefined : tableActions,
tableFilters: tableFilters,
modelField: modelField ?? 'order',
enableReports: !isSubTable,
enableLabels: !isSubTable,
modelType: modelTarget ?? ModelType.salesorder
}}
/>

View File

@ -480,7 +480,8 @@ export default function SalesOrderLineItemTable({
orderId={orderId}
lineItemId={record.pk}
partId={record.part}
allowEdit
allowEdit={false}
modelTarget={ModelType.stockitem}
isSubTable
/>
);