Skip to content

Cancel purchase order - Error object #6136

Closed

Description

@pdsccode

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

  1. Create purchase order with a supplier
  2. Add order items (optional)
  3. Issue order (optional)
  4. 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

  1. added
    bug
    question
    triage:not-checked
    on Dec 26, 2023
  2. removed
    question
    triage:not-checked
    on Dec 27, 2023
  3. added this to the 0.13.1 milestone on Dec 27, 2023
  4. self-assigned this
    on Dec 27, 2023
  5. matmair commented on Dec 27, 2023

    @matmair
    Member

    Ca reporduce on stable. Thank you for the report @pdsccode !

  6. added a commit that references this issue on Dec 27, 2023
    16ef075
  7. matmair commented on Dec 27, 2023

    @matmair
    Member

    @pdsccode bugfix is in review; we are currently on holiday break so it might take a few days till latest receives the fix - stay tuned on #6137

  8. pdsccode commented on Dec 27, 2023

    @pdsccode
    Author

    No Problem. Not a dealbreaker for me so take your time and relax a bit. 😉

  9. added a commit that references this issue on Dec 27, 2023
    88f86ef
  10. added a commit that references this issue on Dec 27, 2023
    f3c4839
  11. added a commit that references this issue on Dec 27, 2023
    264b560
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions