period_id in account_voucher was not multi company safe

Now set period_id and company_id according to the journal used.

Updated the default method for period_id and the onchange method for journal.