I'm trying to override the list view for Products. I would like to drop the "Status" column, which appears to be displaying the "state" field from product.template. I had no problem removing the "Product Type" column, but for "Status", Odoo says:
Error: NameError: name 'state' is not defined
http://localhost:8069/web/static/lib/py.js/lib/py.js:370
The field is listed in the original view, and the column displays just fine. Looking in the database table, I see that there are no values in the state column (all are null) for all records. Why can't I remove the column, then?
It's being called for and if it is not defined (or has been removed) you will get that error. Rather than beat your brains our trying to delete it, just hide is with the invisible attribute in the view Like Ivan suggested below.