My Odoo version 9 instance now returns a "500 Internal Server Error" after I changed the name of a model and an attribute inside. They both have since been renamed and old tables dropped from the database. I've also cleared all tuples in the current table, and restarted the server, but no success. My code follows the guide on "Building a Website" from Odoo. The code I originally changed was class Teachers to Customers and attribute fix_tribe.teachers to fix_tribe.customers. My current code is below:
from models.py
class Teachers(models.Model):
_name = 'fix_tribe.teachers'
name = fields.Char()
biography = fields.Html()
course_ids = fields.One2many('fix_tribe.courses', 'teacher_id', string="Courses")
from views.xml
<record id="action_fix_tribe_customers" model="ir.actions.act_window">
<field name="name">Customers</field>
<field name="res_model">fix_tribe.teachers</field>
</record><record id="fix_tribe_teacher_form" model="ir.ui.view">
<field name="name">FixTribe teachers: form</field>
<field name="model">fix_tribe.teachers</field>
<field name="arch" type="xml">
<form>
<sheet>
<label for="name"/> <field name="name"/>
<label for="biography"/>
<field name="biography"/>
<field name="course_ids">
<tree string="Courses" editable="bottom">
<field name="name"/>
</tree>
</field>
</sheet>
</form>
</field>
</record>