mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Fix for 'price_breaks' field in PartSerializer (#10659)
* Fix for 'price_breaks' field in PartSerializer - Revert change made in https://github.com/inventree/InvenTree/pull/10654 * Bump API version
This commit is contained in:
		| @@ -1,11 +1,14 @@ | ||||
| """InvenTree API version information.""" | ||||
|  | ||||
| # InvenTree API version | ||||
| INVENTREE_API_VERSION = 418 | ||||
| INVENTREE_API_VERSION = 419 | ||||
| """Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" | ||||
|  | ||||
| INVENTREE_API_TEXT = """ | ||||
|  | ||||
| v419 -> 2025-10-24 : https://github.com/inventree/InvenTree/pull/10659 | ||||
|     - Fixes regression introduced in v417 which reverted the changes from v416 | ||||
|  | ||||
| v418 -> 2025-10-24 : https://github.com/inventree/InvenTree/pull/10657 | ||||
|     - Add "project_code" field(s) to OrderLineItem API endpoint(s) | ||||
|     - Add "project_code" field(s) to ExtraOrderLineItem API endpoint(s) | ||||
|   | ||||
| @@ -1042,7 +1042,9 @@ class PartSerializer( | ||||
|     ) | ||||
|  | ||||
|     price_breaks = enable_filter( | ||||
|         PartSalePriceSerializer(source='salepricebreaks', many=True, read_only=True), | ||||
|         PartSalePriceSerializer( | ||||
|             source='salepricebreaks', many=True, read_only=True, allow_null=True | ||||
|         ), | ||||
|         False, | ||||
|         filter_name='price_breaks', | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user