diff --git a/shopfloor_shopinvader_base/services/product.py b/shopfloor_shopinvader_base/services/product.py index 3e30952745..696e7f3d6c 100644 --- a/shopfloor_shopinvader_base/services/product.py +++ b/shopfloor_shopinvader_base/services/product.py @@ -42,7 +42,8 @@ def _get(self, _id): def _to_json(self, records): # TODO: not super-efficient w/ many records - return [rec._get_shop_data() for rec in records] + # only if used w/ `shopinvader_data_stored` + return [rec.get_shop_data() for rec in records] # Validator def _validator_get(self):