@property
    def code(self):
        if self.num_available > 0:
            return self.CODE_IN_STOCK
        return self.CODE_OUT_OF_STOCK
dataset/ETHPy150Open django-oscar/django-oscar/src/oscar/apps/partner/availability.py/StockRequired.code/original