Skip to content

Export data not using latest values from table. #11440

@neilbeukes

Description

@neilbeukes

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

Describe the bug*

Hi,

Im using the data Download function to export all our stock from a specific location. Using (CSV, Inventree Exporter)

All the data seems correct but the Stocktake Date does not correlate with what im seeing on the table.

So the date in the Table is Correct

The Field on the CSV is Incorrect

See screenshot for the same stock item.

Image Image

Any idea if this is a bug or something I'm not understanding?

If its confirmed a bug I can dig deeper and see if I can raise a PR.

Thanks

Steps to Reproduce

  1. Go to stock items for a specific location
  2. Download data (CSV, Inventree exporter)

Expected behaviour

Expect all data to correlate between table and exported data but it seems Stocktake Date Is incorrect (does not show latest stocktake date.

Deployment Method

Docker

Version Information

InvenTree-Version: 1.1.11
Django Version: 4.2.26
Commit Hash: 0f45e3e
Commit Date: 2026-02-02
Commit Branch: null
Database: django.db.backends.postgresql
Debug-Mode: False
Deployed using Docker: True
Platform: Linux-6.1.155-176.282.amzn2023.aarch64-aarch64-with-glibc2.41
Installer: DOC
Active plugins: [{"name":"InvenTreeBarcode","slug":"inventreebarcode","version":"2.1.0"},{"name":"BOM Exporter","slug":"bom-exporter","version":"1.1.0"},{"name":"InvenTree Exporter","slug":"inventree-exporter","version":"1.0.0"},{"name":"Part Parameter Exporter","slug":"parameter-exporter","version":"1.0.0"},{"name":"Part Stocktake Exporter","slug":"inventree-stocktake-exporter","version":"1.0.0"},{"name":"InvenTreeEmailNotifications","slug":"inventree-email-notification","version":"1.0.0"},{"name":"InvenTreeUINotifications","slug":"inventree-ui-notification","version":"1.0.0"},{"name":"InvenTreeCurrencyExchange","slug":"inventreecurrencyexchange","version":"1.0.0"},{"name":"InvenTreeMachines","slug":"inventree-machines","version":"1.0.0"},{"name":"InvenTreeLabel","slug":"inventreelabel","version":"1.1.0"},{"name":"InvenTreeLabelMachine","slug":"inventreelabelmachine","version":"1.0.0"}]

Try to reproduce on the demo site

I did not try to reproduce

Is the bug reproducible on the demo site?

Not reproducible

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    import / exportData importing, exporting and processingquestionThis is a questionstockRelated to Stock models

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions