Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2923 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.


Ảnh đại diện
Huỷ bỏ