Hi all,<div><br></div><div>I&#39;m having an issue for every New Entity Module that I create.</div><div><br></div><div>I create all my new entities modules using as base the Payslip sample (including the ModuleDir/5.4.0)</div>

<div><br></div><div>When I try to save a record for the new entity, I&#39;m getting this error message:</div><div><br></div><div>Sorry! Attempt to access restricted file.</div><div><br></div><div>I enabled the database debug (include/database/PearDatabase.php) and I can see this error message:</div>

<div><br></div><div>1048: Column &#39;smownerid&#39; cannot be null<br>
<pre align="left">               <font face="Courier New,Courier">ADOConnection._Execute(insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,modifiedby,createdtime,modifiedtime) values(8,&#39;1&#39;,N...)</font><font color="#808080" size="-1"> % line  842, file: <a href="file://var/www/clients/client14/web16/web/crmdev/adodb/adodb.inc.php">adodb.inc.php</a></font>
            <font face="Courier New,Courier">ADOConnection.Execute(insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,modifiedby,createdtime,modifiedtime) values(?,?,?,?..., Array[8])</font><font color="#808080" size="-1"> % line  468, file: <a href="file://var/www/clients/client14/web16/web/crmdev/include/database/PearDatabase.php">PearDatabase.php</a></font>
         <font face="Courier New,Courier">PearDatabase.pquery(insert into vtiger_crmentity (crmid,smcreatorid,smownerid,setype,description,modifiedby,createdtime,modifiedtime) values(?,?,?,?..., Array[8])</font><font color="#808080" size="-1"> % line  348, file: <a href="file://var/www/clients/client14/web16/web/crmdev/data/CRMEntity.php">CRMEntity.php</a></font>
      <font face="Courier New,Courier">CRMEntity.insertIntoCrmEntity(PoliticalParty, )</font><font color="#808080" size="-1"> % line   84, file: <a href="file://var/www/clients/client14/web16/web/crmdev/data/CRMEntity.php">CRMEntity.php</a></font>
   <font face="Courier New,Courier">CRMEntity.saveentity(PoliticalParty, )</font><font color="#808080" size="-1"> % line  801, file: <a href="file://var/www/clients/client14/web16/web/crmdev/data/CRMEntity.php">CRMEntity.php</a></font>
</pre><pre align="left"><br></pre>My question is, is it obligatory have a smownerid field on all entities module? Should I create one?</div><div><br></div><div>Thanks in advance</div><div><br></div>