Hello @everyone,
I would like to create a customization where I link sales orders of different types together and have this relationship accessible by displaying the related/linked order.
I have created a custom order type PL which will be linked to the order type SO such that 1 SO order can be linked to more than 1 PL order.
I have created 2 custom fields: a checkbox will appear to indicate that a SO order is available for linking and a selector field for PL orders to select the SO order to link to.
I have also created a custom tab which will appear only if the order type is SO to display all PL orders linked to that specific SO order.
This issue I have is a behaviour I have noticed where after I have linked the orders and selected the SO order that has a link, some parts of the screen show the most recently linked PL order while other parts show information on the SO order. When I refresh the screen, that PL order will be in focus. I have attached screenshot of this behaviour.
I have also attached the customization project I am working on.
What could be the issue or where could I have gone wrong on the customization and how do i fix it?