Grocy-SwiftUI icon indicating copy to clipboard operation
Grocy-SwiftUI copied to clipboard

Products created without default quantity units are not editable after creating a single stock unit for it

Open ShadowJonathan opened this issue 5 months ago • 2 comments

Happens at least on grocy 4.5

Related: https://github.com/grocy/grocy/issues/2822, https://github.com/grocy/grocy/issues/2823

(Grocy 4.5 isn't officially supported by this app, but because the deprecation warning is easily able to be bypassed, and because this issue is relevant for future version support, i'm still filing this)

Currently, it appears that grocy expects products to have default quantity units (on all 4 inputs), and on the web interface, will not allow you to save it without selecting these.

The API has no such limitations, making this is a client-side enforcement.

However, if products are entered this way, and then stock items are created from these products, it means that the products become unable to be edited, because the client-side still expects quantity unit to be selected, while they become unselectable, because stock items with the "null" QU still exist.

Consuming the stock item won't make this go away, meaning the product needs to be deleted and remade before it can be fixed.

ShadowJonathan avatar Oct 12 '25 13:10 ShadowJonathan

Took me 2 hours to find out this is the issue why I cannot edit my products. I scanned them via app, because the browser cannot scan the barcodes. It is very annoying and took me quite some time to figure it out. Please fix

Elektrobarista avatar Oct 31 '25 23:10 Elektrobarista

@Elektrobarista I'd suggest to create an issue in the upstream repo about this problem.

ShadowJonathan avatar Nov 01 '25 08:11 ShadowJonathan