On the sales order form when I select ship to address using lookup address, the shipping method is set to null.
I tried to add javascript onchange event handler for shipping address and set the shipping method there but it never gets called.
How can I fix this?
Hi,
It does look like a bug. It appears that some system javascript/ logic is trigger on lookup address which clears the field. And this logic is triggering at the end so even if you add your own custom logic to set shipping method, the system js is overriding the previous value and clearing it. I would suggest to use business rule on and entity level, though it won't work on address change by it will work when you save the record.
Hope this helps.