I'm having the same issue. I'm adding one more field to project module and i have to remove the view, update module, add back the view, update module again.
--------
File "/home/mrks/openerp7/server/openerp/osv/orm.py", line 1544, in _validate
raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
-------------------
The error is exactly the same, the fix is the same and annoying during development.
Hello,
I'm having the same issue. I'm adding one more field to project module and i have to remove the view, update module, add back the view, update module again.
My code: ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- project_ form_bom" > >project. task.form< /field> >project. task</field> view_task_ form2" />
<field name="user_id" position="after">
< field name="bom_id"/>
</field>
</ field>
-------
<record model="ir.ui.view" id="view_
<field name="name"
<field name="model"
<field name="inherit_id" ref="project.
<field name="arch" type="xml">
</record>
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---- task(osv. Model):
'sub_ products' :fields. one2many( 'mrp.subproduct ', 'bom_id', 'Byproducts'),
'bom_ id': fields. many2one( 'mrp.bom' , 'BOM', ondelete='set null', domain= [('in_project' , '=', True)]),
'daily_ journal' :fields. one2many( 'construction. journal' , 'task_id', 'Journals'),
'tasks_ id': fields. many2one( 'construction. task', 'Task', ondelete='set null'),
class project_
_inherit = 'project.task'
_columns = {
}
project_task()
------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- -
the error:
2013-04-23 16:11:15,118 6683 ERROR construction openerp. addons. base.ir. ir_ui_view: Can't render view construction. view_project_ form_bom for model: project.task
------- ------- ------- ------- -----
xarch, xfields = relation. __view_ look_dom_ arch(cr, user, f, view_id, ctx) _view_look_ dom_arch' tools.convert: Parse error in /home/mrks/ openerp7/ vion_addons/ construction/ project_ bom_view. xml:17: project_ form_bom" > >project. task.form< /field> >project. task</field> view_task_ form2"/ >
<field name="user_id" position="after">
< field name="bom_id"/>
</field>
</ field>
AttributeError: 'NoneType' object has no attribute '_BaseModel_
2013-04-23 16:11:15,120 6683 ERROR construction openerp.
<record model="ir.ui.view" id="view_
<field name="name"
<field name="model"
<field name="inherit_id" ref="project.
<field name="arch" type="xml">
</record>
-------- mrks/openerp7/ server/ openerp/ osv/orm. py", line 1544, in _validate orm('ValidateEr ror', '\n'.join( error_msgs) )
File "/home/
raise except_
except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
-------------------
The error is exactly the same, the fix is the same and annoying during development.
Regards,
Nikola