Odoo Help


AttributeError on one2many field

willie ho
on 12/19/14, 4:17 AM 872 views

in manufacturing order, I replace the workcenter line

<field name="workcenter_lines" position="replace">    
          <field name="workcenter_lines" string="Work Center" readonly="1" context="{'form_view_ref':'mrp_operations.mrp_production_workcenter_form_view_inherit','tree_view_ref':'mrp_operations.mrp_production_workcenter_tree_view_inherit'}" />

when I run it it gives the error:

AttributeError: View definition error for inherited view 'mrp_operations.mrp_production_form_inherit_view2' on model 'mrp.production': Element '<xpath expr="//field[@name='workcenter_lines']/tree/field[@name='hour']">' not found in parent view 'mrp.mrp_production_form_view'

what should I do to solve the problem?

@willie can you post your view here

Emipro Technologies Pvt. Ltd.
on 12/19/14, 5:09 AM

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

2 follower(s)


Asked: 12/19/14, 4:17 AM
Seen: 872 times
Last updated: 3/16/15, 8:10 AM