7.0 pxgo_bank_statement_analytic: crash at install

Bug #1296652 reported by Alexandre Fayolle - camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Additional payment, bank statement and voucher addons for OpenERP
Fix Released
High
Alexandre Fayolle - camptocamp

Bug Description

Upon install ot pxgo_bank_statement_analytic on a fresh instance:

2014-03-24 10:45:24,023 14634 INFO test_ocb_oca70 openerp.modules.loading: module pxgo_bank_statement_analytic: loading bank_statement_view.xml
2014-03-24 10:45:24,036 14634 WARNING test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Setting the `type` field is deprecated in the `ir.ui.view` model.
2014-03-24 10:45:24,102 14634 WARNING test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Setting the `type` field is deprecated in the `ir.ui.view` model.
2014-03-24 10:45:24,126 14634 ERROR test_ocb_oca70 openerp.addons.base.ir.ir_ui_view: Can't render view for model: account.bank.statement
Traceback (most recent call last):
  File "/home/afayolle/work/oerp/server/ocb-7.0/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 "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 2248, in fields_view_get
    arch=apply_view_inheritance(cr, user, source, sql_res['id']),
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 2206, in apply_view_inheritance
    source = apply_inheritance_specs(source, view_arch, view_id)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 2190, in apply_inheritance_specs
    raise_view_error("Element '%s' not found in parent view '%%(parent_xml_id)s'" % tag, inherit_id)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 2083, in raise_view_error
    % (child_view.xml_id, self._name, error_msg))
AttributeError: View definition error for inherited view '' on model 'account.bank.statement': Element '<xpath expr="//field[@name='line_ids']/form/field[@name='account_id']">' not found in parent view 'account.view_bank_statement_form'
2014-03-24 10:45:24,132 14634 ERROR test_ocb_oca70 openerp.tools.convert: Parse error in /home/afayolle/work/oca/account-payment/7.0/pxgo_bank_statement_analytic/bank_statement_view.xml:20:
<record id="view_bank_statement_form_analytic_2" model="ir.ui.view">
            <field name="name">account.bank.statement.form.add_analytic_2</field>
            <field name="model">account.bank.statement</field>
            <field name="type">form</field>
            <field name="inherit_id" ref="account.view_bank_statement_form"/>
            <field name="arch" type="xml">
                <xpath expr="//field[@name='line_ids']/form/field[@name='account_id']" position="after">
                    <field name="analytic_account_id"/>
                </xpath>
            </field>
        </record>
Traceback (most recent call last):
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/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 "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_model.py", line 969, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_ui_view.py", line 103, in create
    return super(view, self).create(cr, uid, values, context)
  File "/home/afayolle/work/oca/openerp-connector/7.0/connector/producer.py", line 42, in create
    record_id = create_original(self, cr, uid, vals, context=context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 4543, in create
    self._validate(cr, user, [id_new], context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1557, 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!')
Traceback (most recent call last):
  File "bin/openerp_command", line 65, in <module>
    openerpcommand.main.run()
  File "/home/afayolle/work/oerp/testbox-ocb+oca/openerp-command/openerpcommand/main.py", line 7, in run
    args.run(args)
  File "/home/afayolle/work/oerp/testbox-ocb+oca/openerp-command/openerpcommand/initialize.py", line 74, in run
    registry = install_openerp(args.database, not args.no_create, module_names, not config['without_demo'])
  File "/home/afayolle/work/oerp/testbox-ocb+oca/openerp-command/openerpcommand/initialize.py", line 24, in install_openerp
    database_name, update_module=True, force_demo=install_demo_data)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/registry.py", line 203, in get
    update_module)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/registry.py", line 233, in new
    openerp.modules.load_modules(registry.db, force_demo, status, update_module)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 354, in load_modules
    loaded_modules, update_module)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/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 "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 187, in load_module_graph
    load_update_xml(module_name, idref, mode)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 74, in <lambda>
    load_update_xml = lambda *args: _load_data(cr, *args, kind='update_xml')
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/modules/loading.py", line 124, in _load_data
    tools.convert_xml_import(cr, module_name, fp, idref, mode, noupdate, report)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 954, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/tools/convert.py", line 847, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/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 "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_model.py", line 969, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/home/afayolle/work/oerp/server/ocb-7.0/openerp/addons/base/ir/ir_ui_view.py", line 103, in create
    return super(view, self).create(cr, uid, values, context)
  File "/home/afayolle/work/oca/openerp-connector/7.0/connector/producer.py", line 42, in create
    record_id = create_original(self, cr, uid, vals, context=context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 4543, in create
    self._validate(cr, user, [id_new], context)
  File "/home/afayolle/work/oerp/openobject-server/ocb-7.0/openerp/osv/orm.py", line 1557, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
openerp.osv.orm.except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

Related branches

Changed in account-payment:
importance: Undecided → High
importance: High → Undecided
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote :

I think this module has never been ported to 7.0. BTW, pxgo_ name must be truncated to avoid company names.

Changed in account-payment:
importance: Undecided → High
Changed in account-payment:
assignee: nobody → Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c)
Changed in account-payment:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.