Skip to content

Commit aa40fa0

Browse files
Modify some parameter from the add build order, add part and add purchase order
1 parent 137b40c commit aa40fa0

5 files changed

Lines changed: 75 additions & 75 deletions

File tree

src/backend/InvenTree/build/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ def get_absolute_url(self):
277277

278278
sales_order = models.ForeignKey(
279279
'order.SalesOrder',
280-
verbose_name=_('Sales Order Reference'),
280+
verbose_name=_('Sign-off Reference'),
281281
on_delete=models.SET_NULL,
282282
related_name='builds',
283283
null=True,
284284
blank=True,
285-
help_text=_('Sales Order to which this build is allocated'),
285+
help_text=_('Sign-off to which this project is allocated'),
286286
)
287287

288288
take_from = models.ForeignKey(

src/backend/InvenTree/locale/en/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -803,12 +803,12 @@ msgid "Select part to build"
803803
msgstr ""
804804

805805
#: build/models.py:280
806-
msgid "Sales Order Reference"
807-
msgstr ""
806+
msgid "Sign-off Reference"
807+
msgstr "Sign-off Reference"
808808

809809
#: build/models.py:285
810-
msgid "Sales Order to which this build is allocated"
811-
msgstr ""
810+
msgid "Sign-off to which this project is allocated"
811+
msgstr "Sign-off to which this project is allocated"
812812

813813
#: build/models.py:290 build/serializers.py:1087
814814
msgid "Source Location"

src/frontend/src/forms/BuildForms.tsx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -96,51 +96,51 @@ export function useBuildOrderFields({
9696
project_code: {
9797
icon: <IconList />
9898
},
99-
priority: {},
100-
parent: {
101-
icon: <IconSitemap />,
102-
filters: {
103-
part_detail: true
104-
}
105-
},
99+
// priority: {},
100+
// parent: {
101+
// icon: <IconSitemap />,
102+
// filters: {
103+
// part_detail: true
104+
// }
105+
// },
106106
sales_order: {
107107
icon: <IconTruckDelivery />
108108
},
109-
batch: {
110-
placeholder: batchGenerator.result,
111-
placeholderAutofill: true,
112-
value: batchCode,
113-
onValueChange: (value: any) => setBatchCode(value)
114-
},
115-
start_date: {
116-
icon: <IconCalendar />
117-
},
118-
target_date: {
119-
icon: <IconCalendar />
120-
},
121-
take_from: {},
109+
// batch: {
110+
// placeholder: batchGenerator.result,
111+
// placeholderAutofill: true,
112+
// value: batchCode,
113+
// onValueChange: (value: any) => setBatchCode(value)
114+
// },
115+
// start_date: {
116+
// icon: <IconCalendar />
117+
// },
118+
// target_date: {
119+
// icon: <IconCalendar />
120+
// },
121+
// take_from: {},
122122
destination: {
123123
filters: {
124124
structural: false
125125
},
126126
value: destination
127127
},
128-
link: {
129-
icon: <IconLink />
130-
},
131-
issued_by: {
132-
icon: <IconUser />,
133-
filters: {
134-
is_active: true
135-
}
136-
},
137-
responsible: {
138-
icon: <IconUsersGroup />,
139-
filters: {
140-
is_active: true
141-
}
142-
},
143-
external: {}
128+
// link: {
129+
// icon: <IconLink />
130+
// },
131+
// issued_by: {
132+
// icon: <IconUser />,
133+
// filters: {
134+
// is_active: true
135+
// }
136+
// },
137+
// responsible: {
138+
// icon: <IconUsersGroup />,
139+
// filters: {
140+
// is_active: true
141+
// }
142+
// },
143+
// external: {}
144144
};
145145

146146
if (!globalSettings.isSet('PROJECT_CODES_ENABLED', true)) {

src/frontend/src/forms/PartForms.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ export function usePartFields({
9595
salable: {
9696
default: globalSettings.isSet('PART_SALABLE')
9797
},
98-
virtual: {
99-
default: globalSettings.isSet('PART_VIRTUAL'),
100-
value: virtual,
101-
onValueChange: (value: boolean) => {
102-
setVirtual(value);
103-
}
104-
},
105-
locked: {},
98+
// virtual: {
99+
// default: globalSettings.isSet('PART_VIRTUAL'),
100+
// value: virtual,
101+
// onValueChange: (value: boolean) => {
102+
// setVirtual(value);
103+
// }
104+
// },
105+
// locked: {},
106106
active: {},
107107
starred: {
108108
field_type: 'boolean',

src/frontend/src/forms/PurchaseOrderForms.tsx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -264,31 +264,31 @@ export function usePurchaseOrderFields({
264264
structural: false
265265
}
266266
},
267-
link: {},
268-
contact: {
269-
icon: <IconUser />,
270-
adjustFilters: (value: ApiFormAdjustFilterType) => {
271-
return {
272-
...value.filters,
273-
company: value.data.supplier
274-
};
275-
}
276-
},
277-
address: {
278-
icon: <IconAddressBook />,
279-
adjustFilters: (value: ApiFormAdjustFilterType) => {
280-
return {
281-
...value.filters,
282-
company: value.data.supplier
283-
};
284-
}
285-
},
286-
responsible: {
287-
filters: {
288-
is_active: true
289-
},
290-
icon: <IconUsers />
291-
}
267+
// link: {},
268+
// contact: {
269+
// icon: <IconUser />,
270+
// adjustFilters: (value: ApiFormAdjustFilterType) => {
271+
// return {
272+
// ...value.filters,
273+
// company: value.data.supplier
274+
// };
275+
// }
276+
// },
277+
// address: {
278+
// icon: <IconAddressBook />,
279+
// adjustFilters: (value: ApiFormAdjustFilterType) => {
280+
// return {
281+
// ...value.filters,
282+
// company: value.data.supplier
283+
// };
284+
// }
285+
// },
286+
// responsible: {
287+
// filters: {
288+
// is_active: true
289+
// },
290+
// icon: <IconUsers />
291+
// }
292292
};
293293

294294
// Order duplication fields

0 commit comments

Comments
 (0)