odoo fieldValue.indexOf is not a funtion

在attrs中使用ilike 就会引起这个错误,

错误原因:

1,这个字段的类型不是字符类型,

2,该字段的值为空或者false.

原文地址:https://www.cnblogs.com/qianxunman/p/12134191.html