My third party 's page extension code has a part to prevent to enter Transfer order line.
trigger OnInsertRecord(BelowxRec: Boolean): Boolean
var
TransferLine: Record "Transfer Line";
begin
TransferLine.SetRange("Document No.", Rec."Document No.");
TransferLine.setfilter("Release Prod. Order No.", '<>%1', '');
if not TransferLine.IsEmpty then
error('You can not add new lines in case this Transfer Order is used to transfer for Production orders');
end;
How can I disable it through my code ?
Thank you.