How to modify AOT query to use expression in AX 2012 R3?


I’m using AX 2012 R3, i want to modify query to display production orders in fact box on project details page.

My requirement is to display production orders related to a project if ProjId field on production order is field or a custom project id field is field.

It’s using info part which allows using only AOT query.

I require to add an OR condition in the query.

Is it possible to achieve this? If yes, then how?