2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-06 15:28:49 +00:00
Oliver b657fb4405
Pricing bug fix (#4422)
* Control when a new PartPricing object can be created

- Prevent this when calling from an on_delete signal
- There is an edge case where deleting a part triggers a series of on_delete signals inside an atomic transaction
- When the new PartPricing object is created,

* Add unit testing:

- Ensure PartPricing gets created when a new StockItem is added
- Part.delete() works without error
- PartPricing instances are deleted also

* style fixes
2023-02-26 16:36:11 +11:00
..
2023-02-26 16:36:11 +11:00
2022-06-02 01:37:39 +10:00
2023-02-26 16:36:11 +11:00
2022-11-14 15:58:22 +11:00
2022-06-02 01:37:39 +10:00
2023-02-17 13:33:36 +11:00
2023-02-17 13:33:36 +11:00