HAHA.
I’m hopeless at playing with suitecrm, and i want to run off and cry in a sulking heap
OK. So in the Opportunities Module. It has Account Name as a required field, so when you create an opportunity it has to be linked to an account.
Well I don’t want this. So with my limited understanding I thought it through and as I cannot see Account Name as a field in studio. I decided ahh ok it’s simple it’s in the vardefs.php file for Opportunities and in there it must have requires set to true… All i have to do is change that to false… Copy it over to custom so both the live and the custom version both have false in, do a quick rebuild and hey presto… .it will no longer say this is a required field.
So I have vardefs.php in both places, both with the correct owner and group for our system Run the repair and NOPE IT STILL SAYS ACCOUNT NAME IS A REQUIRED FIELD Arrrrrrgh!!! Just for once I was giving myself a high five, thinking YES I am starting to understand it… But, NOPE!! What else should i be doing to stop Account Name in opportunities from being a required field? Please someone call me an idiot by all means but tell me where i’m going wrong
Below is the text
‘account_name’ =>
array (
‘name’ => ‘account_name’,
‘rname’ => ‘name’,
‘id_name’ => ‘account_id’,
‘vname’ => ‘LBL_ACCOUNT_NAME’,
‘type’ => ‘relate’,
‘table’ => ‘accounts’,
‘join_name’=>‘accounts’,
‘isnull’ => ‘true’,
‘module’ => ‘Accounts’,
‘dbType’ => ‘varchar’,
‘link’=>‘accounts’,
‘len’ => ‘255’,
‘source’=>‘non-db’,
‘unified_search’ => true,
‘required’ => false,
‘importable’ => ‘required’,
‘required’ => false,
),