Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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:
_name = 'fix_tribe.teachers'
name = fields.Char()
biography = fields.Html()
course_ids = fields.One2many('fix_tribe.courses', 'teacher_id', string="Courses")
<record id="action_fix_tribe_customers" model="ir.actions.act_window">
<record id="fix_tribe_teacher_form" model="ir.ui.view">
<field name="name">FixTribe teachers: form</field>
<field name="arch" type="xml">
<label for="name"/> <field name="name"/>
<tree string="Courses" editable="bottom">
I went into the log file /server/openerp-server.log and it showed that my __openerp__.py file was attempting to reference a data file that does not exist. Removing this reference solved the error.
Happy Odoo's answer did in fact cause the server to start, but not solve the problem.
Dr Obx's answer only would work for Linux and I am running Windows
I strongly recommend to run Odoo server from the console if You testing a new code. If there is any problem it will tell you what cause it.
To do it:
1. Open Terminal
2. type 'service odoo stop'
3. as a root type: sudo su - odoo -s /bin/bash
4. run 'openerp-server'
then watch the console against the errors.
You can see there all messages generated by openerp-server also if there is any problem you can copy and paste it in your posts, it can be very helpful :)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 12/23/15, 8:23 PM|
|Seen: 2487 times|
|Last updated: 12/24/15, 12:20 PM|