List of action models */ public function getLinks() { $relationModel = $this->getRelationModel(); $parentModel = $this->getParentRecordModel(); $isSubProduct = false; if($parentModel->getModule()->getName() == $relationModel->getRelationModuleModel()->getName()) { $isSubProduct = $relationModel->isSubProduct($parentModel->getId()); } if(!$isSubProduct){ return parent::getLinks(); } } public function getHeaders() { $headerFields = parent::getHeaders(); if($this->getRelationModel()->getRelationModuleModel()->getName() == 'PriceBooks') { //Added to support Unit Price $unitPriceField = new Vtiger_Field_Model(); $unitPriceField->set('name', 'unit_price'); $unitPriceField->set('column', 'unit_price'); $unitPriceField->set('label', 'Unit Price'); $headerFields['unit_price'] = $unitPriceField; //Added to support List Price $field = new Vtiger_Field_Model(); $field->set('name', 'listprice'); $field->set('column', 'listprice'); $field->set('label', 'List Price'); $headerFields['listprice'] = $field; } return $headerFields; } }