erp5_pdm: speed up the Stock view of products

By pre-fetching some catalog entries to retrieve objects UIDs that can directly
be used in the inventory query, to avoid needless (costly) joins and hinting
the catalog to use the resource_section_node_uid index of the stock table.
20 jobs for for_testrunner_3 in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-TestRunner3

02:30:48

passed ERP5.UnitTest-TestRunner3

03:02:05

passed ERP5.CodingStyleTest-TestRunner3

11:54:56

passed ERP5.CodingStyleTest-TestRunner3

03:03:05

failed ERP5.CodingStyleTest-TestRunner3

passed ERP5.CodingStyleTest-TestRunner3

07:17:14

passed ERP5.CodingStyleTest-TestRunner3

12:48:52

passed ERP5.CodingStyleTest-TestRunner3

04:48:28

passed ERP5.CodingStyleTest-TestRunner3

05:46:39

passed ERP5.CodingStyleTest-TestRunner3

10:55:25

passed ERP5.CodingStyleTest-TestRunner3

05:48:18

passed ERP5.CodingStyleTest-TestRunner3

01:09:37

passed ERP5.UnitTest-TestRunner3

11:07:43

passed ERP5.UnitTest-TestRunner3

13:05:04

passed ERP5.UnitTest-TestRunner3

11:28:42

failed ERP5.UnitTest-TestRunner3

05:56:39

passed ERP5.UnitTest-TestRunner3

03:04:16

passed ERP5.UnitTest-TestRunner3

14:10:16

failed ERP5.UnitTest-TestRunner3

05:15:48

passed ERP5.UnitTest-TestRunner3

01:42:06