def post_init(self): PurchaseItemStep.post_init(self) if not self.has_next_step(): self.wizard.enable_finish()
def validate(self, value): PurchaseItemStep.validate(self, value) can_quote = not self.model.get_items().is_empty() self.wizard.refresh_next(value and can_quote)
def setup_slaves(self): PurchaseItemStep.setup_slaves(self) self.cost_label.hide() self.cost.hide()