def decrease_stock_amount(self, amount):
        if self.manage_stock_amount:
            self.stock_amount -= amount
        self.save()
If the stock amount is managed by LFS, it decreases stock amount by
dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.decrease_stock_amount