2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

Project Responsible (#5944)

* Add "responsible owner" to project code table

* Update project code serializer

* Update CUI project code table

* Update PUI project code table

* Update API version
This commit is contained in:
Oliver
2023-11-21 23:13:20 +11:00
committed by GitHub
parent 6090ddfdf3
commit 2ccddd8f2e
6 changed files with 67 additions and 6 deletions

View File

@ -14,7 +14,7 @@ import { apiUrl } from '../../../states/ApiState';
import { useUserState } from '../../../states/UserState';
import { AddItemButton } from '../../buttons/AddItemButton';
import { TableColumn } from '../Column';
import { DescriptionColumn } from '../ColumnRenderers';
import { DescriptionColumn, ResponsibleColumn } from '../ColumnRenderers';
import { InvenTreeTable } from '../InvenTreeTable';
import { RowAction, RowDeleteAction, RowEditAction } from '../RowActions';
@ -33,7 +33,8 @@ export function ProjectCodeTable() {
sortable: true,
title: t`Project Code`
},
DescriptionColumn()
DescriptionColumn(),
ResponsibleColumn()
];
}, []);
@ -49,7 +50,8 @@ export function ProjectCodeTable() {
title: t`Edit project code`,
fields: {
code: {},
description: {}
description: {},
responsible: {}
},
onFormSuccess: refreshTable,
successMessage: t`Project code updated`
@ -82,7 +84,8 @@ export function ProjectCodeTable() {
title: t`Add project code`,
fields: {
code: {},
description: {}
description: {},
responsible: {}
},
onFormSuccess: refreshTable,
successMessage: t`Added project code`