def test_is_product_being_produced(self): order = self.create_production_order() production_item = self.create_production_item(order=order) product = production_item.product self.assertFalse(ProductionOrderProducingView.is_product_being_produced(product)) order.start_production() self.assertTrue(ProductionOrderProducingView.is_product_being_produced(product))
def test_is_product_being_produced(self): order = self.create_production_order() production_item = self.create_production_item(order=order) product = production_item.product self.assertFalse( ProductionOrderProducingView.is_product_being_produced(product)) order.start_production(self.current_user) self.assertTrue( ProductionOrderProducingView.is_product_being_produced(product))
def is_being_produced(self): from stoqlib.domain.production import ProductionOrderProducingView return ProductionOrderProducingView.is_product_being_produced(self)
def _validate_components(self): return not ProductionOrderProducingView.is_product_being_produced( self.model.product)
def _validate_components(self): return not ProductionOrderProducingView.is_product_being_produced( self.model.product)
def is_being_produced(self): from stoqlib.domain.production import ProductionOrderProducingView return ProductionOrderProducingView.is_product_being_produced(self)