Skip to Content
Menu
This question has been flagged
1 Reply
2711 Views

Hello, everyone,


I have this error, according to the print, but I've searched and I can't find where it could be passing a variable that is of boolean type and can't, from what I understood from the error it was that. 


Is there any way around this situation, this error?


Thank you in advance for your help.


Thank you.


Avatar
Discard
Best Answer

The error message "TypeError: 'bool' object is not subscriptable" indicates that you are trying to use square brackets to access an element of a boolean (bool) object in your Odoo template, but booleans in Python are not subscriptable.

To fix this issue, you need to review your Odoo template code and identify where you are trying to subscript a boolean.


Avatar
Discard