Repository navigation
Description
Please verify that this bug has NOT been raised before.
- I checked and didn't find a similar issue
Describe the bug*
When trying to cancel a purchase order, I get an error and the order does not get cancelled.
Steps to Reproduce
- Create purchase order with a supplier
- Add order items (optional)
- Issue order (optional)
- Cancel order
Expected behaviour
Order gets cancelled.
Deployment Method
- Docker
- Bare metal
Version Information
Version Information:
InvenTree-Version: 0.13.0
Django Version: 3.2.23
Commit Hash: 301afaa
Commit Date: 2023-12-15
Database: postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-5.15.0-91-generic-x86_64-with
Installer: DOC
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': '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.
- I can reproduce this bug on the demo site.
Relevant log output
192.168.2.3 - - [26/Dec/2023:13:44:47 +0000] "GET /api/order/po-line/?search=&offset=0&limit=25&order=1&part_detail=true HTTP/1.0" 200 2162 "https://inventree-server/order/purchase-order/1/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0"
'bool' object is not callable
/root/.local/lib/python3.10/site-packages/django/db/models/fields/__init__.py:1358: RuntimeWarning: DateTimeField NotificationEntry.updated received a naive datetime (2023-12-25 00:00:00) while time zone support is active.
warnings.warn("DateTimeField %s.%s received a naive datetime "
Internal Server Error: /api/order/po/1/cancel/
Activity
matmair commentedon Dec 27, 2023
Ca reporduce on stable. Thank you for the report @pdsccode !
Cancel purchase order - Error object
matmair commentedon Dec 27, 2023
@pdsccode bugfix is in review; we are currently on holiday break so it might take a few days till
latestreceives the fix - stay tuned on #6137pdsccode commentedon Dec 27, 2023
No Problem. Not a dealbreaker for me so take your time and relax a bit. 😉
Cancel purchase order - Error object (#6137)
Cancel purchase order - Error object (#6137)
Cancel purchase order - Error object (#6137) (#6138)