inventree / InvenTree

Open Source Inventory Management System
https://docs.inventree.org
MIT License
4.32k stars 781 forks source link

auto Allocate in buildorders not working first time #7335

Closed mabroens closed 3 months ago

mabroens commented 5 months ago

Please verify that this bug has NOT been raised before.

Describe the bug*

Hi team,

when allocating stock to a build order pressing the Auto Allocate button image

does not work the first time. pressing it a second time makes it allocate stock as expected

image

Steps to Reproduce

cerate buld order auto allocate nothing happens autoallocate and it works

Expected behaviour

first time right

Deployment Method

Version Information

Version Information:

InvenTree-Version: 0.15.1 Django Version: 4.2.12

Database: sqlite3 Debug-Mode: True Deployed using Docker: False Platform: Linux-6.5.0-35-generic-x86_64-with-glibc2.35 Installer: None

Active plugins: [{'name': 'InvenTreeBarcode', 'slug': 'inventreebarcode', 'version': '2.0.0'}, {'name': 'InvenTreeCoreNotificationsPlugin', 'slug': 'inventreecorenotificationsplugin', 'version': '1.0.0'}, {'name': 'InvenTreeCurrencyExchange', 'slug': 'inventreecurrencyexchange', 'version': '1.0.0'}, {'name': 'InvenTreeLabel', 'slug': 'inventreelabel', 'version': '1.0.0'}, {'name': 'InvenTreeLabelMachine', 'slug': 'inventreelabelmachine', 'version': '1.0.0'}, {'name': 'InvenTreeLabelSheet', 'slug': 'inventreelabelsheet', 'version': '1.0.0'}, {'name': 'DigiKeyPlugin', 'slug': 'digikeyplugin', 'version': '1.0.0'}, {'name': 'LCSCPlugin', 'slug': 'lcscplugin', 'version': '1.0.0'}, {'name': 'MouserPlugin', 'slug': 'mouserplugin', 'version': '1.0.0'}, {'name': 'TMEPlugin', 'slug': 'tmeplugin', 'version': '1.0.0'}]

Please verify if you can reproduce this bug on the demo site.

Relevant log output

No response

SchrodingersGat commented 5 months ago

Do you mean that the first time you press the button, the dialog window does not appear?

Can you open the "console" tab in the developer tools in your browser and see if there are any error messages displayed?

mabroens commented 5 months ago

@SchrodingersGat if you can tell me what i need to check how and where sure :-)

mabroens commented 5 months ago

and for your info. i just ran sudo apt install --only-upgrade inventree to upgrade to 15.2 but get errors.


spectrum@spectrum-ASM100:~$ **sudo apt install --only-upgrade inventree**
[sudo] password for spectrum:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be upgraded:
  inventree
1 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 64,5 MB of archives.
After this operation, 26,6 kB of additional disk space will be used.
Get:1 https://dl.packager.io/srv/deb/inventree/InvenTree/stable/ubuntu 20.04/mai                                                             n amd64 inventree amd64 0.15.2-1716728516.ea7aa93a.focal [64,5 MB]
Fetched 64,5 MB in 4s (16,8 MB/s)
(Reading database ... 295437 files and directories currently installed.)
Preparing to unpack .../inventree_0.15.2-1716728516.ea7aa93a.focal_amd64.deb ...
Unpacking inventree (0.15.2-1716728516.ea7aa93a.focal) over (0.15.1-1716272465.be3b22ce.focal) ...
Setting up inventree (0.15.2-1716728516.ea7aa93a.focal) ...
# Setting base environment variables
# Using existing config file: /etc/inventree/config.yaml
**ERROR**: Could not open requirements file: [Errno 2] No such file or directory: '/opt/inventree/.github/requirements.txt'
# Collected environment variables:
#    INVENTREE_MEDIA_ROOT=/opt/inventree/data/media
#    INVENTREE_STATIC_ROOT=/opt/inventree/data/static
#    INVENTREE_BACKUP_DIR=/opt/inventree/data/backup
#    INVENTREE_PLUGINS_ENABLED=true
#    INVENTREE_PLUGIN_FILE=/etc/inventree/plugins.txt
#    INVENTREE_SECRET_KEY_FILE=/etc/inventree/secret_key.txt
#    INVENTREE_DB_ENGINE=sqlite3
#    INVENTREE_DB_NAME=/opt/inventree/data/database.sqlite3
#    INVENTREE_DB_USER=sampleuser
#    INVENTREE_DB_HOST=samplehost
#    INVENTREE_DB_PORT=123456
# Getting the IP address of the server via web service
IP address is 89.32.242.254
# Setting up python environment
Requirement already satisfied: invoke in ./env/lib/python3.10/site-packages (2.1.3)
Requirement already satisfied: wheel in ./env/lib/python3.10/site-packages (0.40.0)
# Stopping nginx
# Setting up nginx to /etc/nginx/sites-enabled/inventree.conf
# Starting nginx
# (Re)creating init scripts
Nothing to do.
Nothing to do.%] [###################################################################..............................................]
# Enabling InvenTree on boot
# Admin data already exists - skipping
# Stopping InvenTree
# Updating InvenTree
Requirement already satisfied: wheel in ./env/lib/python3.10/site-packages (0.40.0)
# inv update| Installing required python packages from 'src/backend/requirements.txt'
# inv update| Requirement already satisfied: pip in ./env/lib/python3.10/site-packages (24.0)
# inv update| Requirement already satisfied: setuptools in ./env/lib/python3.10/site-packages (69.5.1)
# inv update| Collecting setuptools
# inv update|   Downloading setuptools-70.0.0-py3-none-any.whl.metadata (5.9 kB)
# inv update| Downloading setuptools-70.0.0-py3-none-any.whl (863 kB)
# inv update|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 863.4/863.4 kB 9.4 MB/s eta 0:00:00
# inv update| Installing collected packages: setuptools
# inv update|   Attempting uninstall: setuptools
# inv update|     Found existing installation: setuptools 69.5.1
# inv update|     Uninstalling setuptools-69.5.1:
# inv update|       Successfully uninstalled setuptools-69.5.1
# inv update| Successfully installed setuptools-70.0.0
# inv update| Requirement already satisfied: asgiref==3.8.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 3)) (3.8.1)
# inv update| Requirement already satisfied: async-timeout==4.0.3 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 9)) (4.0.3)
# inv update| Requirement already satisfied: attrs==23.2.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 13)) (23.2.0)
# inv update| Requirement already satisfied: babel==2.15.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 19)) (2.15.0)
# inv update| Requirement already satisfied: bleach==6.1.0 in ./env/lib/python3.10/site-packages (from bleach[css]==6.1.0->-r src/backend/requirements.txt (line 23)) (6.1.0)
# inv update| Requirement already satisfied: brotli==1.1.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 27)) (1.1.0)
# inv update| Requirement already satisfied: certifi==2024.2.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 112)) (2024.2.2)
# inv update| Requirement already satisfied: cffi==1.16.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 118)) (1.16.0)
# inv update| Requirement already satisfied: charset-normalizer==3.3.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 174)) (3.3.2)
# inv update| Requirement already satisfied: coreapi==2.3.3 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 266)) (2.3.3)
# inv update| Requirement already satisfied: coreschema==0.0.4 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 269)) (0.0.4)
# inv update| Requirement already satisfied: cryptography==42.0.7 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 273)) (42.0.7)
# inv update| Requirement already satisfied: cssselect2==0.7.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 309)) (0.7.0)
# inv update| Requirement already satisfied: defusedxml==0.7.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 313)) (0.7.1)
# inv update| Requirement already satisfied: deprecated==1.2.14 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 319)) (1.2.14)
# inv update| Requirement already satisfied: diff-match-patch==20230430 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 326)) (20230430)
# inv update| Requirement already satisfied: dj-rest-auth==6.0.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 330)) (6.0.0)
# inv update| Requirement already satisfied: django==4.2.12 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 332)) (4.2.12)
# inv update| Requirement already satisfied: django-allauth==0.61.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 366)) (0.61.1)
# inv update| Requirement already satisfied: django-allauth-2fa==0.11.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 369)) (0.11.1)
# inv update| Requirement already satisfied: django-cleanup==8.1.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 372)) (8.1.0)
# inv update| Requirement already satisfied: django-cors-headers==4.3.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 375)) (4.3.1)
# inv update| Requirement already satisfied: django-crispy-forms==1.14.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 378)) (1.14.0)
# inv update| Requirement already satisfied: django-dbbackup==4.1.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 381)) (4.1.0)
# inv update| Requirement already satisfied: django-error-report-2==0.4.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 384)) (0.4.2)
# inv update| Requirement already satisfied: django-filter==24.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 387)) (24.2)
# inv update| Requirement already satisfied: django-flags==5.0.13 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 390)) (5.0.13)
# inv update| Requirement already satisfied: django-formtools==2.5.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 393)) (2.5.1)
# inv update| Requirement already satisfied: django-ical==1.9.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 396)) (1.9.2)
# inv update| Requirement already satisfied: django-import-export==3.3.7 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 399)) (3.3.7)
# inv update| Requirement already satisfied: django-js-asset==2.2.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 402)) (2.2.0)
# inv update| Requirement already satisfied: django-maintenance-mode==0.21.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 406)) (0.21.1)
# inv update| Requirement already satisfied: django-markdownify==0.9.3 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 409)) (0.9.3)
# inv update| Requirement already satisfied: django-money==3.2.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 412)) (3.2.0)
# inv update| Requirement already satisfied: django-mptt==0.16.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 415)) (0.16.0)
# inv update| Requirement already satisfied: django-otp==1.5.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 418)) (1.5.0)
# inv update| Requirement already satisfied: django-picklefield==3.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 422)) (3.2)
# inv update| Requirement already satisfied: django-q-sentry==0.1.6 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 426)) (0.1.6)
# inv update| Requirement already satisfied: django-q2==1.6.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 428)) (1.6.2)
# inv update| Requirement already satisfied: django-recurrence==1.11.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 431)) (1.11.1)
# inv update| Requirement already satisfied: django-redis==5.4.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 435)) (5.4.0)
# inv update| Requirement already satisfied: django-sesame==3.2.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 438)) (3.2.2)
# inv update| Requirement already satisfied: django-sql-utils==0.7.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 441)) (0.7.0)
# inv update| Requirement already satisfied: django-sslserver==0.22 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 444)) (0.22)
# inv update| Requirement already satisfied: django-stdimage==6.0.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 446)) (6.0.2)
# inv update| Requirement already satisfied: django-taggit==5.0.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 449)) (5.0.1)
# inv update| Requirement already satisfied: django-user-sessions==2.0.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 452)) (2.0.0)
# inv update| Requirement already satisfied: django-weasyprint==2.3.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 455)) (2.3.0)
# inv update| Requirement already satisfied: django-xforwardedfor-middleware==2.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 458)) (2.0)
# inv update| Requirement already satisfied: djangorestframework==3.14.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 460)) (3.14.0)
# inv update| Requirement already satisfied: djangorestframework-simplejwt==5.3.1 in ./env/lib/python3.10/site-packages (from djangorestframework-simplejwt[crypto]==5.3.1->-r src/backend/requirements.txt (line 467)) (5.3.1)
# inv update| Requirement already satisfied: drf-spectacular==0.27.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 470)) (0.27.2)
# inv update| Requirement already satisfied: dulwich==0.22.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 473)) (0.22.1)
# inv update| Requirement already satisfied: et-xmlfile==1.1.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 521)) (1.1.0)
# inv update| Requirement already satisfied: feedparser==6.0.11 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 525)) (6.0.11)
# inv update| Requirement already satisfied: fonttools==4.51.0 in ./env/lib/python3.10/site-packages (from fonttools[woff]==4.51.0->-r src/backend/requirements.txt (line 528)) (4.51.0)
# inv update| Requirement already satisfied: googleapis-common-protos==1.63.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 572)) (1.63.0)
# inv update| Requirement already satisfied: grpcio==1.63.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 578)) (1.63.0)
# inv update| Requirement already satisfied: gunicorn==22.0.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 626)) (22.0.0)
# inv update| Requirement already satisfied: html5lib==1.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 629)) (1.1)
# inv update| Requirement already satisfied: icalendar==5.0.12 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 633)) (5.0.12)
# inv update| Requirement already satisfied: idna==3.7 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 637)) (3.7)
# inv update| Requirement already satisfied: importlib-metadata==7.0.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 641)) (7.0.0)
# inv update| Requirement already satisfied: inflection==0.5.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 648)) (0.5.1)
# inv update| Requirement already satisfied: itypes==1.2.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 652)) (1.2.0)
# inv update| Requirement already satisfied: jinja2==3.1.4 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 656)) (3.1.4)
# inv update| Requirement already satisfied: jsonschema==4.22.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 660)) (4.22.0)
# inv update| Requirement already satisfied: jsonschema-specifications==2023.12.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 664)) (2023.12.1)
# inv update| Requirement already satisfied: markdown==3.6 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 668)) (3.6)
# inv update| Requirement already satisfied: markuppy==1.14 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 672)) (1.14)
# inv update| Requirement already satisfied: markupsafe==2.1.5 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 675)) (2.1.5)
# inv update| Requirement already satisfied: oauthlib==3.2.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 737)) (3.2.2)
# inv update| Requirement already satisfied: odfpy==1.4.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 741)) (1.4.1)
# inv update| Requirement already satisfied: openpyxl==3.1.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 744)) (3.1.2)
# inv update| Requirement already satisfied: opentelemetry-api==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 748)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-exporter-otlp==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 760)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-exporter-otlp-proto-common==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 763)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-exporter-otlp-proto-grpc==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 769)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-exporter-otlp-proto-http==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 773)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-instrumentation==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 777)) (0.45b0)
# inv update| Requirement already satisfied: opentelemetry-instrumentation-django==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 785)) (0.45b0)
# inv update| Requirement already satisfied: opentelemetry-instrumentation-redis==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 788)) (0.45b0)
# inv update| Requirement already satisfied: opentelemetry-instrumentation-requests==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 791)) (0.45b0)
# inv update| Requirement already satisfied: opentelemetry-instrumentation-wsgi==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 794)) (0.45b0)
# inv update| Requirement already satisfied: opentelemetry-proto==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 798)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-sdk==1.24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 805)) (1.24.0)
# inv update| Requirement already satisfied: opentelemetry-semantic-conventions==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 811)) (0.45b0)
# inv update| Requirement already satisfied: opentelemetry-util-http==0.45b0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 820)) (0.45b0)
# inv update| Requirement already satisfied: packaging==24.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 827)) (24.0)
# inv update| Requirement already satisfied: pdf2image==1.17.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 831)) (1.17.0)
# inv update| Requirement already satisfied: pillow==10.3.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 834)) (10.3.0)
# inv update| Requirement already satisfied: pint==0.21 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 910)) (0.21)
# inv update| Requirement already satisfied: pip-licenses==4.4.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 913)) (4.4.0)
# inv update| Requirement already satisfied: prettytable==3.10.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 916)) (3.10.0)
# inv update| Requirement already satisfied: protobuf==4.25.3 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 920)) (4.25.3)
# inv update| Requirement already satisfied: py-moneyed==3.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 935)) (3.0)
# inv update| Requirement already satisfied: pycparser==2.22 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 939)) (2.22)
# inv update| Requirement already satisfied: pydyf==0.10.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 943)) (0.10.0)
# inv update| Requirement already satisfied: pyjwt==2.8.0 in ./env/lib/python3.10/site-packages (from pyjwt[crypto]==2.8.0->-r src/backend/requirements.txt (line 947)) (2.8.0)
# inv update| Requirement already satisfied: pyphen==0.15.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 953)) (0.15.0)
# inv update| Requirement already satisfied: pypng==0.20220715.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 957)) (0.20220715.0)
# inv update| Requirement already satisfied: python-barcode==0.15.1 in ./env/lib/python3.10/site-packages (from python-barcode[images]==0.15.1->-r src/backend/requirements.txt (line 961)) (0.15.1)
# inv update| Requirement already satisfied: python-dateutil==2.9.0.post0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 964)) (2.9.0.post0)
# inv update| Requirement already satisfied: python-dotenv==1.0.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 970)) (1.0.1)
# inv update| Requirement already satisfied: python-fsutil==0.14.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 973)) (0.14.1)
# inv update| Requirement already satisfied: python3-openid==3.2.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 977)) (3.2.0)
# inv update| Requirement already satisfied: pytz==2024.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 981)) (2024.1)
# inv update| Requirement already satisfied: pyyaml==6.0.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 988)) (6.0.1)
# inv update| Requirement already satisfied: qrcode==7.4.2 in ./env/lib/python3.10/site-packages (from qrcode[pil]==7.4.2->-r src/backend/requirements.txt (line 1043)) (7.4.2)
# inv update| Requirement already satisfied: rapidfuzz==3.9.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1047)) (3.9.0)
# inv update| Requirement already satisfied: redis==5.0.4 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1138)) (5.0.4)
# inv update| Requirement already satisfied: referencing==0.35.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1142)) (0.35.1)
# inv update| Requirement already satisfied: regex==2024.4.28 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1148)) (2024.4.28)
# inv update| Requirement already satisfied: requests==2.31.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1228)) (2.31.0)
# inv update| Requirement already satisfied: requests-oauthlib==2.0.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1236)) (2.0.0)
# inv update| Requirement already satisfied: rpds-py==0.18.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1240)) (0.18.1)
# inv update| Requirement already satisfied: sentry-sdk==2.1.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1343)) (2.1.1)
# inv update| Collecting setuptools==69.5.1 (from -r src/backend/requirements.txt (line 1347))
# inv update|   Downloading setuptools-69.5.1-py3-none-any.whl (894 kB/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Backing Up Database: /opt/inventree/data/database.sqlite3
Backup size: 480.4 KiB
Writing file to default-spectrum-ASM100-2024-05-27-052935.dump.gz
/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
Backup size: 133.0 MiB
Writing file to spectrum-ASM100-2024-05-27-052938.tar.gz
/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
)
# inv update|      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 894.6/894.6 kB 10.7 MB/s eta 0:00:00
# inv update| Requirement already satisfied: sgmllib3k==1.0.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1353)) (1.0.0)
# inv update| Requirement already satisfied: six==1.16.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1356)) (1.16.0)
# inv update| Requirement already satisfied: sqlparse==0.5.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1363)) (0.5.0)
# inv update| Requirement already satisfied: tablib==3.5.0 in ./env/lib/python3.10/site-packages (from tablib[html,ods,xls,xlsx,yaml]==3.5.0->-r src/backend/requirements.txt (line 1369)) (3.5.0)
# inv update| Requirement already satisfied: tinycss2==1.2.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1373)) (1.2.1)
# inv update| Requirement already satisfied: typing-extensions==4.11.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1380)) (4.11.0)
# inv update| Requirement already satisfied: uritemplate==4.1.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1389)) (4.1.1)
# inv update| Requirement already satisfied: urllib3==2.2.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1395)) (2.2.1)
# inv update| Requirement already satisfied: wcwidth==0.2.13 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1402)) (0.2.13)
# inv update| Requirement already satisfied: weasyprint==61.2 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1406)) (61.2)
# inv update| Requirement already satisfied: webencodings==0.5.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1410)) (0.5.1)
# inv update| Requirement already satisfied: whitenoise==6.6.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1418)) (6.6.0)
# inv update| Requirement already satisfied: wrapt==1.16.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1421)) (1.16.0)
# inv update| Requirement already satisfied: xlrd==2.0.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1496)) (2.0.1)
# inv update| Requirement already satisfied: xlwt==1.3.0 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1500)) (1.3.0)
# inv update| Requirement already satisfied: zipp==3.18.1 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1504)) (3.18.1)
# inv update| Requirement already satisfied: zopfli==0.2.3 in ./env/lib/python3.10/site-packages (from -r src/backend/requirements.txt (line 1508)) (0.2.3)
# inv update| Installing collected packages: setuptools
# inv update|   Attempting uninstall: setuptools
# inv update|     Found existing installation: setuptools 70.0.0
# inv update|     Uninstalling setuptools-70.0.0:
# inv update|       Successfully uninstalled setuptools-70.0.0
# inv update| Successfully installed setuptools-69.5.1
# inv update| Installing plugin packages from '/etc/inventree/plugins.txt'
# inv update| Backing up InvenTree database...
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| Backing up InvenTree media files...
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| Running InvenTree database migrations...
# inv update| ========================================
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| No changes detected
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| /opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
# inv update|   warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
#/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
fatal: not a git repository (or any of the parent directories): .git
/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
/opt/inventree/env/lib/python3.10/site-packages/allauth/exceptions.py:9: UserWarning: allauth.exceptions is deprecated, use allauth.core.exceptions
  warnings.warn("allauth.exceptions is deprecated, use allauth.core.exceptions")
 inv update| Operations to perform:
# inv update|   Apply all migrations: InvenTree, account, admin, auth, build, common, company, contenttypes, django_q, error_report, exchange, flags, label, machine, order, otp_static, otp_totp, part, plugin, report, socialaccount, stock, taggit, user_sessions, users
# inv update| Running migrations:
# inv update|   Applying users.0011_auto_20240523_1640...Cleared all user sessions to deal with GHSA-2crp-q9pc-457j
# inv update|  OK
# inv update| Maintenance mode was not disabled - forcing it now
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| Operations to perform:
# inv update|   Synchronize unmigrated apps: allauth, allauth_2fa, corsheaders, crispy_forms, dbbackup, dj_rest_auth, django_cleanup, django_filters, django_ical, django_otp, djmoney, drf_spectacular, formtools, generic, import_export, maintenance_mode, markdownify, messages, mptt, registration, rest_framework, runserver_nostatic, sslserver, staticfiles, web
# inv update|   Apply all migrations: InvenTree, account, admin, auth, build, common, company, contenttypes, django_q, error_report, exchange, flags, label, machine, order, otp_static, otp_totp, part, plugin, report, socialaccount, stock, taggit, user_sessions, users
# inv update| Synchronizing apps without migrations:
# inv update|   Creating tables...
# inv update|     Running deferred SQL...
# inv update| Running migrations:
# inv update|   No migrations to apply.
# inv update| ========================================
# inv update| InvenTree database migrations completed!
# inv update| Updating frontend...
# inv update| Downloading frontend...
# inv update| [ERROR] Cannot get current ref via 'git rev-parse HEAD'
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| Rendered all files in /opt/inventree/src/backend/InvenTree/templates/js/translated
# inv update| Collecting static files...
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| Python version 3.10.12 - /opt/inventree/env/bin/python3
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/es/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/zh/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/fa/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/pt/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/ja/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/ko/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/lv/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/en/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/pt_br/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/sk/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/el/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/hi/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/vi/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/cs/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/nl/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/it/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/fi/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/zh_hant/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/th/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/id/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/pl/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/es_MX/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/fr/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/tr/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/uk/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/bg/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/da/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/no/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/ru/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/sl/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/hu/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/he/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/sv/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/zh_Hans/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/de/LC_MESSAGES
# inv update| processing file django.po in /opt/inventree/src/backend/InvenTree/locale/sr/LC_MESSAGES
# inv update| InvenTree translation coverage: 19%
# Set permissions for data dir and media: /opt/inventree/data
# Starting InvenTree
####################################################################################
This InvenTree install uses nginx, the settings for the webserver can be found in
/etc/nginx/sites-enabled/inventree.conf
Try opening InvenTree with either
http://localhost/ or http:/xxxxxxxxxxx

Admin user data:
   Email:
   Username:
   Password:
####################################################################################
spectrum@spectrum-ASM100:~$
matmair commented 5 months ago

pressing Auto Allocate opens the popup 👍 image

pressing the submit button shoudl to my expectation result in the allocated column: image

change but nothing happens.

pressing the auto allcoate button a second time image

does work: image

Original post in https://github.com/inventree/InvenTree/issues/7338#issuecomment-2133854060 by @mabroens

SchrodingersGat commented 5 months ago

@mabroens I cannot reproduce this issue locally. Can you reproduce on the demo server?

github-actions[bot] commented 3 months ago

This issue seems stale. Please react to show this is still important.