Production Order - To assign a worker in CREATED or ESTIMATED stage

Hi,

I need to achieve the following:

In Production orders, the Production Manager will assign an Employee responsible for a particular Production order and he will be assigning the Employee prior to Release stage. In other words he can assign an employee when the Production order has the status as Created or Estimated only. Once it is released, no body should change it.

I created a new field in the ProdTable as ‘WorkerResponsible’ and created the relationship too

ProdTable.WorkerResponsible == HcmWorker.RecID

Where do I place the code to check the status of the Production order and if it is not equal to Created or Estimated, then

DISABLE it make the EDIT false & make SKIP true

Thanks

Thomas

Tsdf