mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-03 05:48:47 +00:00
Merge branch 'master' of github.com:inventree/InvenTree into ipn_edit_setting
This commit is contained in:
commit
7b81a470b9
@ -586,6 +586,8 @@
|
|||||||
|
|
||||||
.breadcrump {
|
.breadcrump {
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.inventree-body {
|
.inventree-body {
|
||||||
|
@ -95,7 +95,7 @@ class BuildOutputCreateForm(HelperForm):
|
|||||||
confirm = forms.BooleanField(
|
confirm = forms.BooleanField(
|
||||||
required=True,
|
required=True,
|
||||||
label=_('Confirm'),
|
label=_('Confirm'),
|
||||||
help_text=_('Confirm creation of build outut'),
|
help_text=_('Confirm creation of build output'),
|
||||||
)
|
)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -350,7 +350,7 @@ msgid "Enter serial numbers for build outputs"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/forms.py:98
|
#: build/forms.py:98
|
||||||
msgid "Confirm creation of build outut"
|
msgid "Confirm creation of build output"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/forms.py:118
|
#: build/forms.py:118
|
||||||
|
@ -350,7 +350,7 @@ msgid "Enter serial numbers for build outputs"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/forms.py:98
|
#: build/forms.py:98
|
||||||
msgid "Confirm creation of build outut"
|
msgid "Confirm creation of build output"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: build/forms.py:118
|
#: build/forms.py:118
|
||||||
|
@ -241,6 +241,7 @@
|
|||||||
"{% url 'part-pricing' part.id %}",
|
"{% url 'part-pricing' part.id %}",
|
||||||
{
|
{
|
||||||
submit_text: 'Calculate',
|
submit_text: 'Calculate',
|
||||||
|
hideErrorMessage: true,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -665,6 +665,13 @@ class StockList(generics.ListCreateAPIView):
|
|||||||
active = str2bool(active)
|
active = str2bool(active)
|
||||||
queryset = queryset.filter(part__active=active)
|
queryset = queryset.filter(part__active=active)
|
||||||
|
|
||||||
|
# Do we wish to filter by "assembly parts"
|
||||||
|
assembly = params.get('assembly', None)
|
||||||
|
|
||||||
|
if assembly is not None:
|
||||||
|
assembly = str2bool(assembly)
|
||||||
|
queryset = queryset.filter(part__assembly=assembly)
|
||||||
|
|
||||||
# Filter by 'depleted' status
|
# Filter by 'depleted' status
|
||||||
depleted = params.get('depleted', None)
|
depleted = params.get('depleted', None)
|
||||||
|
|
||||||
|
@ -739,9 +739,10 @@ function handleModalForm(url, options) {
|
|||||||
// Form was returned, invalid!
|
// Form was returned, invalid!
|
||||||
else {
|
else {
|
||||||
|
|
||||||
var warningDiv = $(modal).find('#form-validation-warning');
|
if (!options.hideErrorMessage) {
|
||||||
|
var warningDiv = $(modal).find('#form-validation-warning');
|
||||||
warningDiv.css('display', 'block');
|
warningDiv.css('display', 'block');
|
||||||
|
}
|
||||||
|
|
||||||
if (response.html_form) {
|
if (response.html_form) {
|
||||||
injectModalForm(modal, response.html_form);
|
injectModalForm(modal, response.html_form);
|
||||||
|
@ -96,10 +96,15 @@ function getAvailableTableFilters(tableKey) {
|
|||||||
title: '{% trans "Active parts" %}',
|
title: '{% trans "Active parts" %}',
|
||||||
description: '{% trans "Show stock for active parts" %}',
|
description: '{% trans "Show stock for active parts" %}',
|
||||||
},
|
},
|
||||||
|
assembly: {
|
||||||
|
type: 'bool',
|
||||||
|
title: '{% trans "Assembly" %}',
|
||||||
|
description: '{% trans "Part is an assembly" %}',
|
||||||
|
},
|
||||||
allocated: {
|
allocated: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
title: '{% trans "Is allocated" %}',
|
title: '{% trans "Is allocated" %}',
|
||||||
description: '{% trans "Item has been alloacted" %}',
|
description: '{% trans "Item has been allocated" %}',
|
||||||
},
|
},
|
||||||
cascade: {
|
cascade: {
|
||||||
type: 'bool',
|
type: 'bool',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user