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

AttributeError on one2many field

By
willie ho
on 12/19/14, 4:17 AM 649 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'}" />
</field>

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

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

2 follower(s)

Stats

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