Fix an inventory bug. When there are more than 300 inventories which are cancelled by inventory document, inventory document creates wrong stock records.
Unit Test: Add a test to make sure a Inventory Cache corner case behavior.
Revive a test which is wrongly removed at ec80f06e1b6f40cbc99b249e21a77b3138d10980.
Unit Test: Move the test steps to the right place, and Correct the comments.
Monkey patch DCWorkflowGraph to translate Workflow States/Transitions titles (Localizer).

Use IPAexGothic to make sure that Japanese is displayed properly. Also, make
sure that all the files are properly closed even if an exception occurs thanks
to 'with' and 'NamedTemporaryFile'.
A new Z SQL method has been introduced in 'Fix an inventory bug', so fix
banking bt5 which override z_catalog_stock_list.

Just copy z_catalog_stock_list.xml as the new Z SQL method in banking bt5 as
it does not make sense to have more than 300 Inventory Lines in this case.
Default Accounting Transaction Module sorting has been removed (8f9bc61) for
performance reasons, so fix improved listbox sort feature accordingly.

This fixes testFunctionalCore failures.
Add 'does' to the closed-class words list in naming convention checking script.
DCWorkflowGraph: do not pass request params to os.system for security reasons.

Also, remove copy and paste code from DCWorkflowGraph in ERP5Workflow and
allow to override getPOT() like ERP5Workflow does.

Signed-off-by: Arnaud Fontaine <arnaud.fontaine@nexedi.com>