erp5_accounting: Fix Query parameters and add more explanations about the Query

The category uid should be passed to the query. With this, is possible generate queries like stock.project_uid is NULL.