I want to create new form view associated to new data model, I create a new menu item "menu1" that has a submenu "menus" and then, I want to customize the action view. This is my code:
My xml file:
My data model:
from openerp.osv import fields, osv
class hr_cutomization(osv.osv):
_inherit = "hr.employee"
_columns = {
'new_field_ID': fields.char('new filed ID',size=11)
}
_default={
'new_field_ID':0
}
hr_cutomization()
class hr_newmodel(osv.osv):
_name = "hr.newmodel"
_columns = {
'field1': fields.char('new filed1',size=11),
'field2': fields.char('new filed2',size=11)
}
_default={
'field1':0
}
hr_newmodel()
When I update my module, I got this error:
ParseError: "ValidateError Field(s)
arch
failed against a constraint: Invalid view definition Error details: Element '
what's doing wrong in my code ?