account_voucher is 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.