[FIX] account_voucher: multicompany compatibility

When the company or the journal is changed, change the period accordingly to make sure to always keep coherant values.