/** * Check - field is editable or not * * @return boolean */ protected function isEditable() { return parent::isEditable() && !$this->getEntity()->isDefaultPrice(); }
/** * Check - field is editable or not * * @return boolean */ protected function isEditable() { return parent::isEditable() && $this->getEntity()->getInventory()->getEnabled(); }