inventree / inventree-python

Python library for communication with inventree via API
https://docs.inventree.org/en/latest/api/python/python/
MIT License
26 stars 34 forks source link

`Part.get_category_parameter_templates` fails to return parameters #131

Closed eeintech closed 2 years ago

eeintech commented 2 years ago

Step to reproduce:

  1. Add category parameters through InvenTree UI (Settings > Categories)
  2. Navigate to <inventree-url>/api/part/category/<category-id>/parameters/
  3. There should be a list of parameters associated to category, currently they are missing

The fetch_parent option should also be tested when fixed.

SchrodingersGat commented 2 years ago

@eeintech the URL format is wrong. It should be something like:

http://localhost:8000/api/part/category/parameters/?category=82
SchrodingersGat commented 2 years ago

@eeintech fixed, and 0.8.1 is now available via pypi

eeintech commented 2 years ago

@SchrodingersGat Lightning fast fix! Amazing! Thanks a lot :smiley: