mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-06 21:50:55 +00:00
[UI] Sales Order tweak (#9935)
* Allow report generation from sales order allocation view * Fix model target
This commit is contained in:
@ -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
|
||||
}}
|
||||
/>
|
||||
|
@ -480,7 +480,8 @@ export default function SalesOrderLineItemTable({
|
||||
orderId={orderId}
|
||||
lineItemId={record.pk}
|
||||
partId={record.part}
|
||||
allowEdit
|
||||
allowEdit={false}
|
||||
modelTarget={ModelType.stockitem}
|
||||
isSubTable
|
||||
/>
|
||||
);
|
||||
|
Reference in New Issue
Block a user