← Back to team overview

openerp-india team mailing list archive

[Bug 1207692] [NEW] [7.0] --update=all FAILS because of Parse error in /opt/openerp/21069-fb-greenenergy/addons/sale_crm/sale_crm_view.xml:80

 

Public bug reported:

How to reproduce:

1.) Checkout latest 7.0 Stable
2.) Install sale and sale_crm
3.) Try to update the base module or update with --update=all

Upgrade process FAILS with:
--------------------------------------
IndexError: list index out of range
2013-08-02 10:00:14,965 6085 ERROR fb_greenenergy openerp.tools.convert: Parse error in /opt/openerp/21069-fb-greenenergy/addons/sale_crm/sale_crm_view.xml:80: 
<record model="ir.ui.view" id="account_invoice_form">
            <field name="name">Account Invoice</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="arch" type="xml">
                <data>
                    <xpath expr="//field[@name='user_id']" position="after">
                        <field name="section_id"/>
                    </xpath>
                </data>
            </field>
        </record>



Full error Log:
-------------------
2013-08-02 10:00:14,963 6085 ERROR fb_greenenergy openerp.addons.base.ir.ir_ui_view: Can't render view sale_crm.account_invoice_form for model: account.invoice
Traceback (most recent call last):
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_ui_view.py", line 126, 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 "/opt/openerp/21069-fb-greenenergy/addons/account/account_invoice.py", line 363, in fields_view_get
    res = super(account_invoice,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 2260, in fields_view_get
    xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1913, in __view_look_dom_arch
    fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
    fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1776, in __view_look_dom
    xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1932, in __view_look_dom_arch
    model = res[0][1]
IndexError: list index out of range
2013-08-02 10:00:14,965 6085 ERROR fb_greenenergy openerp.tools.convert: Parse error in /opt/openerp/21069-fb-greenenergy/addons/sale_crm/sale_crm_view.xml:80: 
<record model="ir.ui.view" id="account_invoice_form">
            <field name="name">Account Invoice</field>
            <field name="model">account.invoice</field>
            <field name="inherit_id" ref="account.invoice_form"/>
            <field name="arch" type="xml">
                <data>
                    <xpath expr="//field[@name='user_id']" position="after">
                        <field name="section_id"/>
                    </xpath>
                </data>
            </field>
        </record>
Traceback (most recent call last):
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 814, 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 "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_model.py", line 937, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
    return super(view, self).write(cr, uid, ids, vals, context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 4201, in write
    self._validate(cr, user, ids, context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1544, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Fehler w\xe4hrend der Pr\xfcfung des Feldes field(s) arch: Invalid XML for View Architecture!')
2013-08-02 10:00:14,966 6085 ERROR fb_greenenergy openerp.netsvc: ValidateError
Fehler während der Prüfung des Feldes field(s) arch: Invalid XML for View Architecture!
Traceback (most recent call last):
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/netsvc.py", line 292, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/service/web_services.py", line 433, in dispatch
    return fn(*params)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/service/web_services.py", line 444, in exp_authenticate
    res_users = pooler.get_pool(db).get('res.users')
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/pooler.py", line 49, in get_pool
    return get_db_and_pool(db_name, force_demo, status, update_module)[1]
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/pooler.py", line 33, in get_db_and_pool
    registry = RegistryManager.get(db_name, force_demo, status, update_module)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/registry.py", line 192, in get
    update_module)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/registry.py", line 218, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 341, in load_modules
    processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 256, in load_marked_modules
    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 188, in load_module_graph
    load_data(module_name, idref, mode)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 76, in <lambda>
    load_data = lambda *args: _load_data(cr, *args, kind='data')
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 954, in convert_xml_import
    obj.parse(doc.getroot())
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 814, 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 "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_model.py", line 937, in _update
    model_obj.write(cr, uid, [res_id], values, context=context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
    return super(view, self).write(cr, uid, ids, vals, context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 4201, in write
    self._validate(cr, user, ids, context)
  File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1544, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Fehler w\xe4hrend der Pr\xfcfung des Feldes field(s) arch: Invalid XML for View Architecture!')

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/1207692

Title:
  [7.0] --update=all FAILS because of Parse error in /opt/openerp/21069
  -fb-greenenergy/addons/sale_crm/sale_crm_view.xml:80

Status in OpenERP Addons (modules):
  New

Bug description:
  How to reproduce:

  1.) Checkout latest 7.0 Stable
  2.) Install sale and sale_crm
  3.) Try to update the base module or update with --update=all

  Upgrade process FAILS with:
  --------------------------------------
  IndexError: list index out of range
  2013-08-02 10:00:14,965 6085 ERROR fb_greenenergy openerp.tools.convert: Parse error in /opt/openerp/21069-fb-greenenergy/addons/sale_crm/sale_crm_view.xml:80: 
  <record model="ir.ui.view" id="account_invoice_form">
              <field name="name">Account Invoice</field>
              <field name="model">account.invoice</field>
              <field name="inherit_id" ref="account.invoice_form"/>
              <field name="arch" type="xml">
                  <data>
                      <xpath expr="//field[@name='user_id']" position="after">
                          <field name="section_id"/>
                      </xpath>
                  </data>
              </field>
          </record>



  
  Full error Log:
  -------------------
  2013-08-02 10:00:14,963 6085 ERROR fb_greenenergy openerp.addons.base.ir.ir_ui_view: Can't render view sale_crm.account_invoice_form for model: account.invoice
  Traceback (most recent call last):
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_ui_view.py", line 126, 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 "/opt/openerp/21069-fb-greenenergy/addons/account/account_invoice.py", line 363, in fields_view_get
      res = super(account_invoice,self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar, submenu=submenu)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 2260, in fields_view_get
      xarch, xfields = self.__view_look_dom_arch(cr, user, result['arch'], view_id, context=ctx)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1913, in __view_look_dom_arch
      fields_def = self.__view_look_dom(cr, user, node, view_id, False, fields, context=context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
      fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
      fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
      fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1859, in __view_look_dom
      fields.update(self.__view_look_dom(cr, user, f, view_id, in_tree_view, model_fields, context))
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1776, in __view_look_dom
      xarch, xfields = relation.__view_look_dom_arch(cr, user, f, view_id, ctx)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1932, in __view_look_dom_arch
      model = res[0][1]
  IndexError: list index out of range
  2013-08-02 10:00:14,965 6085 ERROR fb_greenenergy openerp.tools.convert: Parse error in /opt/openerp/21069-fb-greenenergy/addons/sale_crm/sale_crm_view.xml:80: 
  <record model="ir.ui.view" id="account_invoice_form">
              <field name="name">Account Invoice</field>
              <field name="model">account.invoice</field>
              <field name="inherit_id" ref="account.invoice_form"/>
              <field name="arch" type="xml">
                  <data>
                      <xpath expr="//field[@name='user_id']" position="after">
                          <field name="section_id"/>
                      </xpath>
                  </data>
              </field>
          </record>
  Traceback (most recent call last):
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 847, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 814, 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 "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_model.py", line 937, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
      return super(view, self).write(cr, uid, ids, vals, context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 4201, in write
      self._validate(cr, user, ids, context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1544, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  except_orm: ('ValidateError', u'Fehler w\xe4hrend der Pr\xfcfung des Feldes field(s) arch: Invalid XML for View Architecture!')
  2013-08-02 10:00:14,966 6085 ERROR fb_greenenergy openerp.netsvc: ValidateError
  Fehler während der Prüfung des Feldes field(s) arch: Invalid XML for View Architecture!
  Traceback (most recent call last):
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/netsvc.py", line 292, in dispatch_rpc
      result = ExportService.getService(service_name).dispatch(method, params)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/service/web_services.py", line 433, in dispatch
      return fn(*params)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/service/web_services.py", line 444, in exp_authenticate
      res_users = pooler.get_pool(db).get('res.users')
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/pooler.py", line 49, in get_pool
      return get_db_and_pool(db_name, force_demo, status, update_module)[1]
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/pooler.py", line 33, in get_db_and_pool
      registry = RegistryManager.get(db_name, force_demo, status, update_module)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/registry.py", line 192, in get
      update_module)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/registry.py", line 218, in new
      openerp.modules.load_modules(registry.db, force_demo, status, update_module)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 341, in load_modules
      processed = load_marked_modules(cr, graph, states_to_load, force, status, report, loaded_modules, update_module)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 256, in load_marked_modules
      loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 188, in load_module_graph
      load_data(module_name, idref, mode)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 76, in <lambda>
      load_data = lambda *args: _load_data(cr, *args, kind='data')
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/modules/loading.py", line 124, in _load_data
      tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 954, in convert_xml_import
      obj.parse(doc.getroot())
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 847, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/tools/convert.py", line 814, 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 "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_model.py", line 937, in _update
      model_obj.write(cr, uid, [res_id], values, context=context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/addons/base/ir/ir_ui_view.py", line 208, in write
      return super(view, self).write(cr, uid, ids, vals, context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 4201, in write
      self._validate(cr, user, ids, context)
    File "/opt/openerp/21069-fb-greenenergy/server/openerp/osv/orm.py", line 1544, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  except_orm: ('ValidateError', u'Fehler w\xe4hrend der Pr\xfcfung des Feldes field(s) arch: Invalid XML for View Architecture!')

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


Follow ups

References