def validate_step(self): if (self.wizard.product_type == Product.TYPE_GRID and not GridGroup.has_group(self.wizard.store)): warning(_("You need to register an attribute group first")) return False return True