<div dir="ltr">Hey guys,<div><br><div><br></div><div>I'm trying to edit a SalesOrder field from within my custom module.</div><div>I've got no problem editing the field but after the save of the record the attached items/products disappear.</div><div><br></div><div>Has someone encountered this issues before ?</div><div><br></div><div>I'm using the following code to edit the Record:</div><div><br></div><div><pre>$recordModel = Vtiger_Record_Model::getInstanceById($salesorderid, 'SalesOrder');
$recordModel->set('mode','edit');
$recordModel->set('cf_762','1');
$recordModel->save();</pre><pre><br></pre></div>
<div>Hopefully someone knows why this happening and can give me a push in the right direction.</div><div><br></div><div><br></div><div>Thanks in advance!</div><div><br></div><div>Kind regards,</div><div><br></div><div>Lennart</div></div></div>