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.
Odoo8 - Building a module using official documentation - inherit - add instructor boolean field - Field `instructor` does not exist
Hello dear community,
i am trying to build a module in Odoo 8 following the offifial documentation of odoo.com.
Now I came to my recent error  (Field `instructor` does not exist). This error occured after the implementation of the exercise of chapter "View Inheritance". My __init__.py , __openerp__.py and the relevant partner.py and partner.xml are copy and pasted from the doc. Nevertheless I post them into this topic as , ,  and . The error dissapears if "instructor" is replaced by "name" in partner.xml or if the code is deleted . It semms for me that 'inherit' dosen't work properly because the field 'name' is propably in the form that should be extended and using it doesn't produce the error.
Things I've tried:
- building the module from scratch by using the given code, no effect
thank you very much in advance
ParseError: "ValidateError Field(s) `arch` failed against a constraint: Invalid view definition Error details: Field `instructor` does not exist Error context: View `partner.instructor` [view_id: 413, xml_id: openacademy.partner_instructor_form_view, model: res.partner, parent_id: 126]" while parsing file:///C:/myaddons/openacademy/views/partner.xml:4, near <record model="ir.ui.view" id="partner_instructor_form_view"> <field name="name">partner.instructor</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> <field name="arch" type="xml"> <notebook position="inside"> <page string="Sessions"> <group> <field name="instructor"/> </group> </page> </notebook> </field> </record>
Odoo, like any Python based program, reads the source code and compiles it at runtime.
Did you restart the server before updating your module as you built it? Odoo won't see any changes to Python files between reboots. And, you must UPDATE the module each time your Python code affects field definitions, and every time you make XML changes. It is safest to ALWAYS update your module each time you make ANY changes to it.
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: 8/10/16, 7:36 PM|
|Seen: 383 times|
|Last updated: 8/10/16, 7:47 PM|