I receive these message when I try to open Close Journal - Periods.
You try to read records that don't exist anymore.
(Document type: account.period)
To reproduce it follow these steps in http://demo5.0.tryton.org:
1. The default company is Michael Scott Paper Company
2. If you open "Close Journal - Periods" all its fine.
3. Change user company to Dunder Mifflin inc company and change and login again.
4. Open "Close Journal - Periods", you will receive the message.
I think that is caused by the ir.rule of account.period and account.journal.period has no company field to filter each one. I will thenk how can I see correctly the "Close Journal - Periods".