Odoo Help

Welcome!

This community 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.

0

Got error " Field `message_follower_ids` does not exist" without not calling this field in view

By
Phong Vy
on 11/22/16, 5:48 AM 110 views

this is my view file

 <record id='social_insurance_tab' model='ir.ui.view'>
     <field name='social.insurance.tab'></field>

     <field name='model'>hr.insurance</field>

    <field name='inherit_id' ref='hr.view_employee_form'></field>

    <field name='arch' type='xml'>

        <data>

             <xpath expr="//notebook" position="inside">

                     <page string='Insurance'>

                             <field name='name'></field>

                      </page>

             </xpath>

        </data>

     </field>

here is my models file

from openerp import models, fields, api
class hr_insurance(models.Model):
     _name = 'hr.insurance'

     name = fields.Many2one('hr.contract', 'Insurance', required=True)


Just a simple code to add new tab into Employee but I got error : "ParseError: "Invalid view definition

Error details:

Field `message_follower_ids` does not exist"

without I don't call field "message_follower_ids" into my inherit view, how can I resolve this ? 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/22/16, 5:48 AM
Seen: 110 times
Last updated: 11/22/16, 6:38 AM