Hi,
I’m encountering an intermittent issue in my Odoo 16 instance after restoring a database. Sometimes, everything works fine, but other times, I get the following error (same db, same code)
500: Internal Server Error
Error while render the template
TypeError: object of type 'NoneType' has no len()
Template: web.login
Path: /t/t/t
Node: <t t-set="form_small" t-value="True" t-if="len(providers) > 2"/>
My Questions:
- Has anyone else encountered this issue, especially after restoring a database?
- What could cause providers to be None in this context, and how do you ensure it’s always properly initialized?
- Are there specific database records or configurations I should double-check after restoring to prevent this issue?
Any suggestions would be greatly appreciated! Thank you in advance!