If something takes a long time, capturing a trace should reveal that which piece consumes the most amount of time.
So what were your findings when you have looked at the AX Trace, and at the SQL Server queries during the execution?
Do you have any customizations for tables and forms involved (EcoRes* and Invent*)?