Fixes fix of #188 (dual redirect) & add a test for it
Merge branch '1-0-stable' of github.com:ekylibre/erp into 1-0-stable