Odoo Help


Odoo8 - Building a module using official documentation - inherit - add instructor boolean field - Field `instructor` does not exist

Julian Scherrer
on 8/10/16, 7:36 PM 563 views

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 [1] (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 [2], [3], [4] and [5]. 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

[2...5]:  https://codedump.io/share/MIwoMPIShmxa/1/odoo8---building-a-module---inherit---add-instructor-boolean-field---field-instructor-does-not-exist

[1] -error:

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">
                            <field name="instructor"/>


I.'ll comment here as an answer to you Ray Carnes from 11.08.16 01:47 am. I lack one karma point to beeing able to comment your answer.

Thank you very much for your answer, Ray.

Yes, I restarted the Odoo server as well as the PostgreSQL server. And I also updated every time before looking for any changes. In fact, the error shows up when upgrading. I forgot to write that earlier, my bad.

Am I the only one that experiences this error following the mentioned Howto?

Julian Scherrer
on 8/11/16, 8:20 AM

Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 8/10/16, 7:47 PM

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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/10/16, 7:36 PM
Seen: 563 times
Last updated: 11/30/17, 3:53 AM