[REF] Refactor pos_details_report - created seach domain function

This refactoring allows to easily inherit the report if there is a need to alter the selection of pos order lines.
The state expression is passed in `extra_arg` so should not be here