Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
2924 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää