← Back to team overview

openerp-india team mailing list archive

[Bug 1090711] Re: 7.0 xml parse error on view hr_timesheet_sheet

 

Also happen to me.

we are running

openerp-server -d my_old_7.0_database -u all

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1090711

Title:
  7.0 xml parse error on view hr_timesheet_sheet

Status in OpenERP Addons (modules):
  Invalid

Bug description:
  When i updated my 7.0 beta version to the latest 7.0 alpha (nightly
  6-12-12) I start getting an error on the databases that use the
  hr_timesheets module.

  Underneath I have added the error messages I get when running it in
  Eclipse. It says that it cannot render the view hr_timesheet_sheet and
  that the XML is invalid for the architecture.

  Further info:
  running on Ubuntu 12.04
  postgres 9.1

  2012-12-15 13:43:58,545 4800 ERROR PG_PR openerp.addons.base.ir.ir_ui_view: Can't render view hr_timesheet_sheet.hr_timesheet_sheet_company for model: res.company
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_ui_view.py", line 124, in _check_render_view
      fvg = self.pool.get(view.model).fields_view_get(cr, uid, view_id=view.id, view_type=view.type, context=context)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 2262, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1934, in __view_look_dom_arch
      model = res[0][1]
  IndexError: list index out of range
  2012-12-15 13:43:58,563 4800 ERROR PG_PR openerp.tools.convert: Parse error in /usr/lib/pymodules/python2.7/openerp/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml:219: 
  <record id="hr_timesheet_sheet_company" model="ir.ui.view">
              <field name="name">res.company.sheet</field>
              <field name="model">res.company</field>
              <field name="inherit_id" ref="base.view_company_form"/>
              <field name="arch" type="xml">
                  <xpath expr="//group[@name='account_grp']" position="after">
                      <group name="timesheets_grp" string="Timesheets">
                          <field name="timesheet_range"/>
                          <field name="timesheet_max_difference"/>
                      </group>
                  </xpath>
              </field>
          </record>
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 848, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 815, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 929, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_ui_view.py", line 206, in write
      return super(view, self).write(cr, uid, ids, vals, context)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4170, in write
      self._validate(cr, user, ids, context)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1546, 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!')
  2012-12-15 13:43:58,564 4800 ERROR PG_PR openerp: Failed to initialize database `PG_PR`.
  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/openerp/cli/server.py", line 97, in preload_registry
      db, registry = openerp.pooler.get_db_and_pool(dbname, update_module=openerp.tools.config['init'] or openerp.tools.config['update'], pooljobs=False)
    File "/usr/lib/pymodules/python2.7/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module, pooljobs)
    File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 156, in get
      update_module, pooljobs)
    File "/usr/lib/pymodules/python2.7/openerp/modules/registry.py", line 178, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 336, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules)
    File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 251, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules)
    File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 187, in load_module_graph
      load_data(module_name, idref, mode)
    File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 77, in <lambda>
      load_data = lambda *args: _load_data(cr, *args, kind='data')
    File "/usr/lib/pymodules/python2.7/openerp/modules/loading.py", line 128, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 955, in convert_xml_import
      obj.parse(doc.getroot())
    File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 848, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/lib/pymodules/python2.7/openerp/tools/convert.py", line 815, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_model.py", line 929, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_ui_view.py", line 206, in write
      return super(view, self).write(cr, uid, ids, vals, context)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 4170, in write
      self._validate(cr, user, ids, context)
    File "/usr/lib/pymodules/python2.7/openerp/osv/orm.py", line 1546, 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!')

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1090711/+subscriptions


References