The "createpo" field in SO line is disabled once SO is submitted. i.e when I try to edit the saved SO record - its disabled.
I want this field to be enabled/editable.
So I tried getting the field using rec.getfield and . isDisabled=false. Its not enabling!
Why is this ?
c
CD
02/15/2023, 8:43 AM
It feels like this is something you shouldn't be changing - if a PO has been created automatically from the SO you don't want the user changing the createpo type, it just doesn't make sense from a data point of view
n
NickSuite
02/15/2023, 12:05 PM
I am curious, what's your use case? When the PO is already generated, why do you need the field to be active?
s
shree sashti
02/15/2023, 12:15 PM
If By default the item is special order while saving the Sales order. Before the po is created If I have to change it to drop shipment . I need that field to be enabled while I edit the sales order . This is one use case . @NickSuite, @CD
n
NickSuite
02/15/2023, 12:16 PM
Then do it before the order is saved.
NickSuite
02/15/2023, 12:16 PM
It doesn't make sense to enable that field after the order is saved and PO is created. You are approaching the problem from wrong direction.