From d0ffb36c9a4f61064ca787bdfe682e71a12f01b6 Mon Sep 17 00:00:00 2001 From: Lutz Lehmann Date: Tue, 24 Mar 2026 12:11:13 +0100 Subject: [PATCH] fix: correct ProductModelsPool resource mixins Use CodeBasedResource instead of IdentifierBasedResource since product models are identified by code, not identifier. Add DeletableResource and UpdatableListResource to match the Akeneo API capabilities. --- pyakeneo/resources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyakeneo/resources.py b/pyakeneo/resources.py index f529433..5458f16 100644 --- a/pyakeneo/resources.py +++ b/pyakeneo/resources.py @@ -172,11 +172,13 @@ class ProductsPool( class ProductModelsPool( ResourcePool, - IdentifierBasedResource, + CodeBasedResource, CreatableResource, + DeletableResource, GettableResource, SearchAfterListableResource, UpdatableResource, + UpdatableListResource, ): """https://api.akeneo.com/api-reference.html#Productmodel"""