I get this error when I try to upgrade my custom module in odoo 13.
File "/opt/odoo/odoo13/odoo/api.py", line 463, in __getitem__ return self.r