[FIX] if a special period is present, it must be selected fist

This is a fix for issue : https://github.com/odoo/odoo/issues/3946