diff options
author | Cefin <kevon@tuta.io> | 2021-11-05 14:18:57 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-22 00:03:21 +0100 |
commit | 395f2d531c97c1f44827db76ef9d61ea49b9b20a (patch) | |
tree | e9d36262ea9ec1e284cc71a2239e24c9c5179131 /archaeological_warehouse/forms.py | |
parent | 89d7104d0b1e764be11786b932da92bbb9662f75 (diff) | |
download | Ishtar-395f2d531c97c1f44827db76ef9d61ea49b9b20a.tar.bz2 Ishtar-395f2d531c97c1f44827db76ef9d61ea49b9b20a.zip |
add bulk update on warehouse with warehouse type modify
Diffstat (limited to 'archaeological_warehouse/forms.py')
-rw-r--r-- | archaeological_warehouse/forms.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/archaeological_warehouse/forms.py b/archaeological_warehouse/forms.py index 6638140d6..57fc31f4f 100644 --- a/archaeological_warehouse/forms.py +++ b/archaeological_warehouse/forms.py @@ -308,6 +308,23 @@ class WarehouseDeletionForm(FinalForm): confirm_end_msg = _("Would you like to delete this warehouse?") +class QAWarehouseFromMulti(QAForm): + form_admin_name = _("Context record - Quick action -Modify") + form_slug = "warehouse-quickaction-modify" + + MULTI = True + REPLACE_FIELDS = ["qa_warehouse_type"] + + qa_warehouse_type = forms.ChoiceField( + label=_("Warehouse type"), + required=False, + ) + + TYPES = [ + FieldType("qa_warehouse_type", models.WarehouseType), + ] + + class ContainerForm(CustomForm, ManageOldType, forms.Form): form_label = _("Container") form_admin_name = _("Container - 010 - General") |